Target docker-serve does not exist + removed $ (#9450)

This commit is contained in:
Lucian Maly
2018-07-13 22:31:26 +02:00
committed by k8s-ci-robot
parent 8315bd0a08
commit ebb19326b8
+8 -7
View File
@@ -21,10 +21,10 @@ For more information about contributing to the Kubernetes documentation, see:
If you'd like, you can build the Kubernetes docs using Docker. To get started, build the image locally:
```bash
$ make docker-image
make docker-image
# The underlying command:
$ docker build . \
docker build . \
--tag kubernetes-hugo \
--build-arg HUGO_VERSION=0.40.3
```
@@ -33,16 +33,17 @@ You can create an image for a different version of Hugo by changing the value of
Once the `kubernetes-hugo` image has been built locally, you can build the site:
```bash
$ make docker-serve
make stage
# The underlying command:
$ docker run \
docker run \
--rm \
--interactive \
--tty \
--volume $(PWD):/src \
kubernetes-hugo:latest \
hugo
-p 1313:1313 \
kubernetes-hugo \
hugo server --watch --bind 0.0.0.0
```
As when building without using a Docker container, the results of the build will be published to the `public` directory (the default output directory for [Hugo](https://gohugo.io), the static site generator used to build this site).
@@ -50,4 +51,4 @@ As when building without using a Docker container, the results of the build will
## Thank you!
Kubernetes thrives on community participation, and we really appreciate your
contributions to our site and our documentation!
contributions to our site and our documentation!