comparison docker/Dockerfile.gwt-client @ 9781:7b7a58a93864 3.2.x

Leverage build cache for downloading dependencies
author Tom Gottfried <tom@intevation.de>
date Fri, 31 Mar 2023 13:15:31 +0200
parents a517ed28f133
children df61a569a289
comparison
equal deleted inserted replaced
9780:a517ed28f133 9781:7b7a58a93864
27 RUN curl -sLO https://www.smartclient.com/builds/SmartGWT/4.1p/LGPL/latest/smartgwt.jar 27 RUN curl -sLO https://www.smartclient.com/builds/SmartGWT/4.1p/LGPL/latest/smartgwt.jar
28 RUN mvn -q install:install-file -Dfile=smartgwt.jar -Dversion=4.1-p20141119 \ 28 RUN mvn -q install:install-file -Dfile=smartgwt.jar -Dversion=4.1-p20141119 \
29 -DartifactId=smartgwt-lgpl -DgroupId=com.isomorphic.smartgwt.lgpl \ 29 -DartifactId=smartgwt-lgpl -DgroupId=com.isomorphic.smartgwt.lgpl \
30 -Dpackaging=jar 30 -Dpackaging=jar
31 31
32 # Download dependencies before adding sources to leverage build cache
33 ADD gwt-client/pom.xml river/gwt-client/
34 RUN mvn -q -f river/gwt-client/pom.xml dependency:go-offline
35
32 ADD checkstyle.xml river/ 36 ADD checkstyle.xml river/
33 ADD gwt-client river/gwt-client/ 37 ADD gwt-client river/gwt-client/
34 38
35 RUN tar -C river/gwt-client/src/main/webapp \ 39 RUN tar -C river/gwt-client/src/main/webapp \
36 --exclude=OpenLayers-2.11/doc --exclude=OpenLayers-2.11/tests \ 40 --exclude=OpenLayers-2.11/doc --exclude=OpenLayers-2.11/tests \
37 --exclude=OpenLayers-2.11/examples -xf OpenLayers-2.11.tar.gz 41 --exclude=OpenLayers-2.11/examples -xf OpenLayers-2.11.tar.gz
38 RUN rm OpenLayers-2.11.tar.gz 42 RUN rm OpenLayers-2.11.tar.gz
43
39 RUN mvn -q -f river/gwt-client/pom.xml package && \ 44 RUN mvn -q -f river/gwt-client/pom.xml package && \
40 mv river/gwt-client/target/gwt-client-*.war \ 45 mv river/gwt-client/target/gwt-client-*.war \
41 /usr/share/tomcat/webapps/d4e-river.war 46 /usr/share/tomcat/webapps/d4e-river.war
42 47
43 # Configure tomcat 48 # Configure tomcat

http://dive4elements.wald.intevation.org