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
+7 -6
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: If you'd like, you can build the Kubernetes docs using Docker. To get started, build the image locally:
```bash ```bash
$ make docker-image make docker-image
# The underlying command: # The underlying command:
$ docker build . \ docker build . \
--tag kubernetes-hugo \ --tag kubernetes-hugo \
--build-arg HUGO_VERSION=0.40.3 --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: Once the `kubernetes-hugo` image has been built locally, you can build the site:
```bash ```bash
$ make docker-serve make stage
# The underlying command: # The underlying command:
$ docker run \ docker run \
--rm \ --rm \
--interactive \ --interactive \
--tty \ --tty \
--volume $(PWD):/src \ --volume $(PWD):/src \
kubernetes-hugo:latest \ -p 1313:1313 \
hugo 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). 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).