Mercurial > lada > lada-client
annotate Dockerfile @ 1174:6d06ae7c553c schema-update
Updated references for new Database model.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 08 Jul 2016 15:36:17 +0200 |
parents | 3ef492b5240b |
children | 5489ae5ef9e0 |
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 |
1018
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
986
diff
changeset
|
7 # --link lada_wildfly:lada-server |
1041
3ef492b5240b
Add access with a role for Stammdatenpflege.
Tom Gottfried <tom@intevation.de>
parents:
1018
diff
changeset
|
8 # -p 8180-8184:80-84 -d koala/lada_client' |
954
1856b6b3b8d4
Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
9 # |
1856b6b3b8d4
Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
10 # 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
|
11 # repository. |
1856b6b3b8d4
Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
12 # |
1856b6b3b8d4
Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
13 # 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
|
14 # |
986
c4c95d340ebe
Dockerfile: improve comments.
Tom Gottfried <tom@intevation.de>
parents:
954
diff
changeset
|
15 # 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
|
16 # 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
|
17 # |
954
1856b6b3b8d4
Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
18 |
1856b6b3b8d4
Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
19 FROM httpd:2.4 |
1856b6b3b8d4
Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
20 MAINTAINER tom.gottfried@intevation.de |
1856b6b3b8d4
Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
21 |
1856b6b3b8d4
Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
22 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
|
23 |
1856b6b3b8d4
Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
24 ADD . /usr/local/apache2/htdocs/ |
1856b6b3b8d4
Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
25 WORKDIR /usr/local/apache2/htdocs/ |
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 # |
1856b6b3b8d4
Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
28 # Install dependencies |
1856b6b3b8d4
Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
29 # |
1856b6b3b8d4
Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
30 RUN ./install-dependencies.sh |
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 # |
1856b6b3b8d4
Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
33 # httpd setup |
1856b6b3b8d4
Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
34 # |
1856b6b3b8d4
Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
35 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
|
36 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
|
37 |
1041
3ef492b5240b
Add access with a role for Stammdatenpflege.
Tom Gottfried <tom@intevation.de>
parents:
1018
diff
changeset
|
38 EXPOSE 80 81 82 83 84 |
1018
418e25969a16
Serve roles on different ports for easier testing.
Tom Gottfried <tom@intevation.de>
parents:
986
diff
changeset
|
39 |
954
1856b6b3b8d4
Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
40 CMD ["httpd-foreground"] |