comparison 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
comparison
equal deleted inserted replaced
953:c3feae5ee714 954:1856b6b3b8d4
1 #
2 # Build and run LADA-client
3 #
4 # Build with e.g. `docker build --force-rm=true -t koala/lada_client .'
5 # Run from the repository root-dir with e.g.
6 # `docker run --name lada_client -v $PWD:/usr/local/apache2/htdocs/
7 # --link lada_wildfly:lada-server -p 8182:80 -d koala/lada_client'
8 #
9 # The linked container may be created from the Dockerfile in the lada-server
10 # repository.
11 #
12 # The LADA-application will be available under http://yourdockerhost:8182
13 #
14
15 FROM httpd:2.4
16 MAINTAINER tom.gottfried@intevation.de
17
18 RUN apt-get update -y && apt-get install -y curl unzip python
19
20 ADD . /usr/local/apache2/htdocs/
21 WORKDIR /usr/local/apache2/htdocs/
22
23 #
24 # Install dependencies
25 #
26 RUN ./install-dependencies.sh
27
28 #
29 # httpd setup
30 #
31 RUN ln -sf $PWD/custom-httpd.conf $HTTPD_PREFIX/conf/httpd.conf
32 RUN ln -sf $PWD/custom-vhosts.conf $HTTPD_PREFIX/conf/extra/httpd-vhosts.conf
33
34 CMD ["httpd-foreground"]

http://lada.wald.intevation.org