Mercurial > lada > lada-client
annotate Dockerfile @ 1314:8ace34d9352a
changed behaviour of ortserstellung window on save; fix update (form)
author | Maximilian Krambach <mkrambach@intevation.de> |
---|---|
date | Fri, 03 Feb 2017 11:08:44 +0100 |
parents | 5489ae5ef9e0 |
children |
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 # |
1188
5489ae5ef9e0
Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents:
1041
diff
changeset
|
15 # Add `-v $PWD:/var/www/html/' to the run-command if you want to |
986
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 |
1188
5489ae5ef9e0
Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents:
1041
diff
changeset
|
19 FROM debian:jessie |
954
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 |
1188
5489ae5ef9e0
Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents:
1041
diff
changeset
|
22 RUN apt-get update -y && apt-get install -y curl unzip python apache2 |
954
1856b6b3b8d4
Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
23 |
1188
5489ae5ef9e0
Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents:
1041
diff
changeset
|
24 ADD . /var/www/html |
5489ae5ef9e0
Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents:
1041
diff
changeset
|
25 WORKDIR /var/www/html |
954
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 # |
1188
5489ae5ef9e0
Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents:
1041
diff
changeset
|
35 RUN a2enmod proxy |
5489ae5ef9e0
Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents:
1041
diff
changeset
|
36 RUN a2enmod proxy_http |
5489ae5ef9e0
Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents:
1041
diff
changeset
|
37 RUN a2enmod headers |
5489ae5ef9e0
Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents:
1041
diff
changeset
|
38 RUN ln -sf $PWD/custom-vhosts.conf /etc/apache2/conf-available/lada.conf |
5489ae5ef9e0
Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents:
1041
diff
changeset
|
39 RUN a2enconf lada |
954
1856b6b3b8d4
Add dockerised setup with respective Apache config.
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
40 |
1041
3ef492b5240b
Add access with a role for Stammdatenpflege.
Tom Gottfried <tom@intevation.de>
parents:
1018
diff
changeset
|
41 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
|
42 |
1188
5489ae5ef9e0
Migrate Dockerfile to Debian.
Tom Gottfried <tom@intevation.de>
parents:
1041
diff
changeset
|
43 CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"] |