Mercurial > lada > lada-client
annotate Dockerfile @ 991:19b78162e128
reorg mewwert grid
author | Michael Stanko <mstanko@bfs.de> |
---|---|
date | Mon, 28 Dec 2015 12:01:47 +0100 |
parents | c4c95d340ebe |
children | 418e25969a16 |
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. |
986
c4c95d340ebe
Dockerfile: improve comments.
Tom Gottfried <tom@intevation.de>
parents:
954
diff
changeset
|
6 # `docker run --name lada_client |
954
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 # |
986
c4c95d340ebe
Dockerfile: improve comments.
Tom Gottfried <tom@intevation.de>
parents:
954
diff
changeset
|
14 # Add `-v $PWD:/usr/local/apache2/htdocs/' to the run-command if you want to |
c4c95d340ebe
Dockerfile: improve comments.
Tom Gottfried <tom@intevation.de>
parents:
954
diff
changeset
|
15 # test your local changes (you'll have to run ./install-dependencies.sh again). |
c4c95d340ebe
Dockerfile: improve comments.
Tom Gottfried <tom@intevation.de>
parents:
954
diff
changeset
|
16 # |
954
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 FROM httpd:2.4 |
1856b6b3b8d4
Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
19 MAINTAINER tom.gottfried@intevation.de |
1856b6b3b8d4
Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
20 |
1856b6b3b8d4
Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
21 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
|
22 |
1856b6b3b8d4
Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
23 ADD . /usr/local/apache2/htdocs/ |
1856b6b3b8d4
Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
24 WORKDIR /usr/local/apache2/htdocs/ |
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 # |
1856b6b3b8d4
Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
27 # Install dependencies |
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 RUN ./install-dependencies.sh |
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 # |
1856b6b3b8d4
Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
32 # httpd setup |
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 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
|
35 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
|
36 |
1856b6b3b8d4
Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
37 CMD ["httpd-foreground"] |