Mercurial > gemma
annotate docker/Dockerfile.geoserv @ 823:d7ae7338872d
client: add morphtool again
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Thu, 27 Sep 2018 19:26:38 +0200 |
parents | ac61b03c0eaf |
children | 1ce42139ea0a |
rev | line source |
---|---|
458 | 1 FROM ubuntu:bionic |
2 LABEL authors="tom@intevation.de" | |
3 | |
528
076996a41c31
fix: Dockerfile.geoserv - adding "universe" to sources.list
Thomas Junk <thomas.junk@intevation.de>
parents:
458
diff
changeset
|
4 RUN sed -i 's/\(deb.*\)$/\1 universe/' /etc/apt/sources.list |
458 | 5 |
6 RUN apt-get update &&\ | |
7 apt-get -y install --no-install-recommends \ | |
528
076996a41c31
fix: Dockerfile.geoserv - adding "universe" to sources.list
Thomas Junk <thomas.junk@intevation.de>
parents:
458
diff
changeset
|
8 curl unzip openjdk-8-jre-headless tomcat8 |
458 | 9 |
10 ENV CATALINA_HOME /usr/share/tomcat8 | |
11 ENV CATALINA_BASE /var/lib/tomcat8 | |
12 ENV CATALINA_TMPDIR /tmp/tomcat8-tmp | |
13 | |
552
ac61b03c0eaf
Fixed gesoserv download link to use https.
Sascha Wilde <wilde@intevation.de>
parents:
528
diff
changeset
|
14 ENV GS_URL https://downloads.sourceforge.net/project/geoserver/GeoServer |
458 | 15 ENV GS_VERSION 2.13.2 |
16 ENV GS_DATADIR /opt/geoserver/data | |
17 | |
18 ENV CATALINA_OPTS="-DGEOSERVER_DATA_DIR=$GS_DATADIR" | |
19 | |
20 RUN mkdir -p $GS_DATADIR && chown tomcat8 $GS_DATADIR | |
21 | |
22 RUN curl -L $GS_URL/$GS_VERSION/geoserver-$GS_VERSION-war.zip > gs.zip &&\ | |
23 unzip -d $CATALINA_BASE/webapps/ gs.zip geoserver.war &&\ | |
24 rm gs.zip | |
25 | |
26 EXPOSE 8080 | |
27 | |
28 USER tomcat8 | |
29 | |
30 RUN mkdir $CATALINA_TMPDIR | |
31 | |
32 CMD ["/usr/share/tomcat8/bin/catalina.sh", "run"] |