aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Marchese <maffblaster@gentoo.org>2022-02-12 14:06:34 -0800
committerMatthew Marchese <maffblaster@gentoo.org>2022-02-12 14:06:34 -0800
commit3dffa948418a2bad85b189c2b3deebe48a62391f (patch)
tree7c06f5d91e122cdd152630ba0b5bfdc38d038a1b
parentDockerfile: Add one line as suggested by antarus. (diff)
downloadwww-3dffa948418a2bad85b189c2b3deebe48a62391f.tar.gz
www-3dffa948418a2bad85b189c2b3deebe48a62391f.tar.bz2
www-3dffa948418a2bad85b189c2b3deebe48a62391f.zip
Fix manual docker build and add robin's automagic build script.
Better define instructions for docker setup. Signed-off-by: Matthew Marchese <maffblaster@gentoo.org>
-rw-r--r--README.md12
1 files changed, 11 insertions, 1 deletions
diff --git a/README.md b/README.md
index 960cacf..0210e84 100644
--- a/README.md
+++ b/README.md
@@ -7,13 +7,23 @@ This repository is the home of www.gentoo.org.
### Using docker
+#### Automagic build and run
+
+From the root of the repository:
+
+`bash bin/docker-setup.sh jekyll build
+bash ./bin/update.sh
+bash bin/docker-setup.sh jekyll serve`
+
+#### Building and running manually
+
Run the Dockerfile to build the container:
`docker build --tag "wwwgo:Dockerfile" .`
Once the container is built, run the container:
-`docker container run --name wwwgo --rm --mount type=bind,source=$(pwd),target=/srv/jekyll --publish=4000:4000 -it wwwgo jekyll serve`
+`docker container run --name wwwgo --rm --mount type=bind,source="${PWD}",target=/srv/jekyll --publish=4000:4000 --env JEKYLL_UID="$(id -u)" --env JEKYLL_GID="$(id -g)" --interactive=true --tty=true wwwgo:Dockerfile jekyll serve`
To removing all containers sourced from the wwwgo image: