Mercurial > dive4elements > river
comparison docker/Dockerfile.gwt-client @ 9684:537fe44f2792 3.2.x
Add basic Docker setup for development
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 30 Jul 2020 19:00:44 +0200 |
parents | |
children | 2dad42df79a8 |
comparison
equal
deleted
inserted
replaced
9681:8e5a8430b89c | 9684:537fe44f2792 |
---|---|
1 # Docker file for D4E River GWT client | |
2 | |
3 FROM centos:7 | |
4 MAINTAINER tom@intevation.de | |
5 | |
6 # Install prerequisites | |
7 RUN yum -y install maven mercurial tomcat | |
8 | |
9 WORKDIR /opt/d4e | |
10 ENV REPO_URL https://scm.wald.intevation.org/hg/dive4elements/ | |
11 ENV BRANCH 3.2.x | |
12 RUN hg clone -b $BRANCH $REPO_URL/framework | |
13 RUN hg clone -b $BRANCH $REPO_URL/http-client | |
14 | |
15 RUN mvn -q -f framework/pom.xml install | |
16 RUN mvn -q -f http-client/pom.xml install | |
17 | |
18 # Use latest patch release and fake version=4.1-p20141119 to work around | |
19 # the actual version (which is known to work properly) | |
20 # is not publicly available | |
21 RUN curl -O https://www.smartclient.com/builds/SmartGWT/4.1p/LGPL/latest/smartgwt.jar | |
22 | |
23 ADD . river | |
24 | |
25 RUN mvn -q install:install-file -Dfile=smartgwt.jar -Dversion=4.1-p20141119 \ | |
26 -DartifactId=smartgwt-lgpl -DgroupId=com.isomorphic.smartgwt.lgpl \ | |
27 -Dpackaging=jar | |
28 RUN mvn -q -f river/gwt-client/pom.xml package && \ | |
29 mv river/gwt-client/target/gwt-client-*.war /usr/share/tomcat/webapps | |
30 | |
31 ADD docker/flys_user_file /root/ | |
32 | |
33 EXPOSE 8080 | |
34 CMD ["/usr/libexec/tomcat/server", "start"] |