view docker/Dockerfile.gwt-client @ 9713:aef987124822 3.2.x

Do not rely on database default for setting hws_lines.official to 0 It's not under the control of the importer whether the field is rendered into an INSERT statement, whether it's actually set or not. If it is unset but rendered into the statement, the field would be set to NULL. Thus, always set it explicitly. While here, remove an unused import.
author Tom Gottfried <tom@intevation.de>
date Fri, 12 Mar 2021 15:11:44 +0100
parents 25532d3c0af2
children 278d285a16bf
line wrap: on
line source
# Docker file for D4E River GWT client

FROM centos:7
MAINTAINER tom@intevation.de

# Install prerequisites
RUN yum -y install maven mercurial tomcat gnu-free-sans-fonts

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

RUN curl -LO "https://github.com/openlayers/ol2/releases/download/release-2.11/OpenLayers-2.11.tar.gz"

# 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 tar -C river/gwt-client/src/main/webapp \
        --exclude=OpenLayers-2.11/doc --exclude=OpenLayers-2.11/tests \
        --exclude=OpenLayers-2.11/examples -xf OpenLayers-2.11.tar.gz
RUN rm OpenLayers-2.11.tar.gz
RUN mvn -q -f river/gwt-client/pom.xml package && \
    mv river/gwt-client/target/gwt-client-*.war \
        /usr/share/tomcat/webapps/d4e-river.war

ADD docker/flys_user_file /root/

EXPOSE 8080
CMD ["/usr/libexec/tomcat/server", "start"]

http://dive4elements.wald.intevation.org