diff Dockerfile @ 954:1856b6b3b8d4

Add dockerised setup with respective Apache config. custom-httpd.conf is a slightly modified version of the original from the httpd:2.4 docker image and might be cleaned up.
author Tom Gottfried <tom@intevation.de>
date Wed, 04 Nov 2015 19:44:44 +0100
parents
children c4c95d340ebe
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Dockerfile	Wed Nov 04 19:44:44 2015 +0100
@@ -0,0 +1,34 @@
+#
+# Build and run LADA-client
+#
+# Build with e.g. `docker build --force-rm=true -t koala/lada_client .'
+# Run from the repository root-dir with e.g.
+# `docker run --name lada_client -v $PWD:/usr/local/apache2/htdocs/
+#             --link lada_wildfly:lada-server -p 8182:80 -d koala/lada_client'
+#
+# The linked container may be created from the Dockerfile in the lada-server
+# repository.
+#
+# The LADA-application will be available under http://yourdockerhost:8182
+#
+
+FROM httpd:2.4
+MAINTAINER tom.gottfried@intevation.de
+
+RUN apt-get update -y && apt-get install -y curl unzip python
+
+ADD . /usr/local/apache2/htdocs/
+WORKDIR /usr/local/apache2/htdocs/
+
+#
+# Install dependencies
+#
+RUN ./install-dependencies.sh
+
+#
+# httpd setup
+#
+RUN ln -sf $PWD/custom-httpd.conf $HTTPD_PREFIX/conf/httpd.conf
+RUN ln -sf $PWD/custom-vhosts.conf $HTTPD_PREFIX/conf/extra/httpd-vhosts.conf
+
+CMD ["httpd-foreground"]

http://lada.wald.intevation.org