annotate Dockerfile @ 1012:2adc329d90fe stammdatengrids

Replaced Locations with Ortszuordnung
author Dustin Demuth <dustin@intevation.de>
date Tue, 26 Jan 2016 10:40:48 +0100
parents 1856b6b3b8d4
children c4c95d340ebe
rev   line source
954
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
1 #
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
2 # Build and run LADA-client
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
3 #
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
4 # Build with e.g. `docker build --force-rm=true -t koala/lada_client .'
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
5 # Run from the repository root-dir with e.g.
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
6 # `docker run --name lada_client -v $PWD:/usr/local/apache2/htdocs/
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
7 # --link lada_wildfly:lada-server -p 8182:80 -d koala/lada_client'
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
8 #
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
9 # The linked container may be created from the Dockerfile in the lada-server
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
10 # repository.
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
11 #
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
12 # The LADA-application will be available under http://yourdockerhost:8182
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
13 #
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
14
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
15 FROM httpd:2.4
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
16 MAINTAINER tom.gottfried@intevation.de
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
17
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
18 RUN apt-get update -y && apt-get install -y curl unzip python
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
19
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
20 ADD . /usr/local/apache2/htdocs/
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
21 WORKDIR /usr/local/apache2/htdocs/
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
22
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
23 #
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
24 # Install dependencies
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
25 #
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
26 RUN ./install-dependencies.sh
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
27
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
28 #
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
29 # httpd setup
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
30 #
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
31 RUN ln -sf $PWD/custom-httpd.conf $HTTPD_PREFIX/conf/httpd.conf
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
32 RUN ln -sf $PWD/custom-vhosts.conf $HTTPD_PREFIX/conf/extra/httpd-vhosts.conf
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
33
1856b6b3b8d4 Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
34 CMD ["httpd-foreground"]

http://lada.wald.intevation.org