Skip to content

Commit

Permalink
Change stage target to docker-serve in Makefile (#9216)
Browse files Browse the repository at this point in the history
* Change stage target to docker-serve in Makefile

docker-serve is documented in the readme (from #9128).

* Update underlying command for make docker-serve

The underlying command listed in the README wasn't exactly the
same as the command in the Makefile.

* Remove old Dockerfile for Jekyll site

PR #9128 added a new Dockerfile for the Hugo site. The old
staging container is no longer needed.
  • Loading branch information
tfogo authored and k8s-ci-robot committed Jul 27, 2018
1 parent 380613c commit f59c0e8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 35 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ docker-image:
docker-build:
$(DOCKER_RUN) $(DOCKER_IMAGE) hugo

stage:
docker-serve:
$(DOCKER_RUN) -p 1313:1313 $(DOCKER_IMAGE) hugo server --watch --bind 0.0.0.0
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ docker run \
--volume $(PWD):/src \
-p 1313:1313 \
kubernetes-hugo \
hugo server --watch --bind 0.0.0.0
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).
Expand Down
26 changes: 0 additions & 26 deletions staging-container/Dockerfile

This file was deleted.

7 changes: 0 additions & 7 deletions staging-container/start.sh

This file was deleted.

0 comments on commit f59c0e8

Please sign in to comment.