aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-05-15 16:38:12 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2018-05-15 16:38:12 +0200
commitb7f4b439012e1fa75121bcea8c040631d8a979cc (patch)
treef725cd45196e04a23512d05c4e271787de15a63e
parentb6cc07030c71a129c7754e94b5b52cfe64d0d117 (diff)
downloadalpine-infra-docker-b7f4b439012e1fa75121bcea8c040631d8a979cc.tar.bz2
alpine-infra-docker-b7f4b439012e1fa75121bcea8c040631d8a979cc.tar.xz
add README.mdHEADmaster
-rw-r--r--README.md19
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
+
+