annotate Dockerfile_mini @ 1401:7c0045bf1397 release-2.5

added icon
author Evi Huber <ehuber@bfs.de>
date Fri, 17 Mar 2017 08:16:29 +0100
parents a152353eba26
children dc5851d433e8
rev   line source
1277
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
1 #
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
2 # Build and run LADA-client (minified version)
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
3 #
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
4 # Build with e.g. `docker build --force-rm=true -t koala/lada_client_mini .'
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
5 # Run from the repository root-dir with e.g.
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
6 # `docker run --name lada_client
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
7 # --link lada_wildfly:lada-server
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
8 # -p 8180-8184:80-84 -d koala/lada_client_mini'
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
9 #
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
10 # The linked container may be created from the Dockerfile in the lada-server
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
11 # repository.
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
12 #
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
13 # The LADA-application will be available under http://yourdockerhost:8182
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
14 #
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
15 # Add `-v $PWD:/var/www/html/' to the run-command if you want to
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
16 # test your local changes (you'll have to run ./install-dependencies.sh again).
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
17 #
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
18
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
19 FROM debian:jessie
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
20 MAINTAINER mstanko@bfs.de
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
21
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
22 RUN apt-get update -y && apt-get install -y curl unzip python apache2 ruby openjdk-7-jre
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
23
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
24 #
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
25 # Install sencha cmd
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
26 #
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
27 RUN curl -O https://cdn.sencha.com/cmd/4.0.5.87/SenchaCmd-4.0.5.87-linux-x64.run.zip && unzip SenchaCmd-4.0.5.87-linux-x64.run.zip && chmod +x ./SenchaCmd-4.0.5.87-linux-x64.run && ./SenchaCmd-4.0.5.87-linux-x64.run --mode unattended
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
28 ENV PATH=~/bin/Sencha/Cmd/4.0.5.87:$PATH
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
29 ENV SENCHA_CMD_3_0_0="~/bin/Sencha/Cmd/4.0.5.87"
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
30
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
31 ADD . /tmp/lada-client
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
32 WORKDIR /tmp/lada-client
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
33
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
34 #
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
35 # Install dependencies
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
36 #
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
37 RUN ./install-dependencies.sh
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
38
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
39 #
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
40 # compile and minify application
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
41 #
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
42 ENV VERSION=2.4.1
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
43 RUN ./build.sh
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
44 RUN cd /var/www/html && cp -r /tmp/lada-client/lada-client-$VERSION/* .
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
45
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
46 #
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
47 # httpd setup
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
48 #
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
49 RUN a2enmod proxy
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
50 RUN a2enmod proxy_http
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
51 RUN a2enmod headers
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
52 RUN ln -sf $PWD/custom-vhosts.conf /etc/apache2/conf-available/lada.conf
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
53 RUN a2enconf lada
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
54
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
55 EXPOSE 80 81 82 83 84
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
56
a152353eba26 fix build.sh and Dockerfile for minified app
Michael Stanko <mstanko@bfs.de>
parents:
diff changeset
57 CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]

http://lada.wald.intevation.org