diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/docker/Dockerfile.gwt-client	Thu Jul 30 19:00:44 2020 +0200
@@ -0,0 +1,34 @@
+# Docker file for D4E River GWT client
+
+FROM centos:7
+MAINTAINER tom@intevation.de
+
+# Install prerequisites
+RUN yum -y install maven mercurial tomcat
+
+WORKDIR /opt/d4e
+ENV REPO_URL https://scm.wald.intevation.org/hg/dive4elements/
+ENV BRANCH 3.2.x
+RUN hg clone -b $BRANCH $REPO_URL/framework
+RUN hg clone -b $BRANCH $REPO_URL/http-client
+
+RUN mvn -q -f framework/pom.xml install
+RUN mvn -q -f http-client/pom.xml install
+
+# Use latest patch release and fake version=4.1-p20141119 to work around
+# the actual version (which is known to work properly)
+# is not publicly available
+RUN curl -O https://www.smartclient.com/builds/SmartGWT/4.1p/LGPL/latest/smartgwt.jar
+
+ADD . river
+
+RUN mvn -q install:install-file -Dfile=smartgwt.jar -Dversion=4.1-p20141119 \
+    -DartifactId=smartgwt-lgpl -DgroupId=com.isomorphic.smartgwt.lgpl \
+    -Dpackaging=jar
+RUN mvn -q -f river/gwt-client/pom.xml package && \
+    mv river/gwt-client/target/gwt-client-*.war /usr/share/tomcat/webapps
+
+ADD docker/flys_user_file /root/
+
+EXPOSE 8080
+CMD ["/usr/libexec/tomcat/server", "start"]

http://dive4elements.wald.intevation.org