diff options
author | Matthew Marchese <maffblaster@gentoo.org> | 2022-02-12 14:06:34 -0800 |
---|---|---|
committer | Matthew Marchese <maffblaster@gentoo.org> | 2022-02-12 14:06:34 -0800 |
commit | 3dffa948418a2bad85b189c2b3deebe48a62391f (patch) | |
tree | 7c06f5d91e122cdd152630ba0b5bfdc38d038a1b /README.md | |
parent | Dockerfile: Add one line as suggested by antarus. (diff) | |
download | www-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>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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: |