diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-05-15 16:38:12 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-05-15 16:38:12 +0200 |
commit | b7f4b439012e1fa75121bcea8c040631d8a979cc (patch) | |
tree | f725cd45196e04a23512d05c4e271787de15a63e /README.md | |
parent | b6cc07030c71a129c7754e94b5b52cfe64d0d117 (diff) | |
download | alpine-infra-docker-master.tar.bz2 alpine-infra-docker-master.tar.xz |
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..7f06715 --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ + +To build the docker images: + + docker build -t alpine-darkhttpd alpine-darkhttpd/ + docker build -t alpine-mksite alpine-mksite/ + +The images are supposed to share a mount named www/ where we have the following dirs: + +- www/tmp: work directory where git repository is checked out +- www/log: where darkhttpd store the logs +- www/htdocs: where the generated pages are copied for darkhttpd + +To create and run an instance of the images. Use -v option to mount $PWD/www +to /www inside the container: + + docker run --name alpine-wwwbuild -v $PWD/www:/www alpine-mksite + docker run --name alpine-www -p 80:80 -v $PWD/www:/www alpine-darkhttpd + + |