Mercurial > gemma
view docker/Dockerfile.geoserv @ 528:076996a41c31
fix: Dockerfile.geoserv - adding "universe" to sources.list
Adding universe to every line of sources.list leads with vanilla images to problems.
https://wiki.ubuntuusers.de/sources.list/#Bionic
There are empty lines, which would contain "universe".
Adding "universe" at the end of lines containing "deb" at the beginning does the trick.
The solution is valued as "good enough" for now.
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Tue, 28 Aug 2018 11:50:13 +0200 |
parents | 01deefb7ec7a |
children | ac61b03c0eaf |
line wrap: on
line source
FROM ubuntu:bionic LABEL authors="tom@intevation.de" RUN sed -i 's/\(deb.*\)$/\1 universe/' /etc/apt/sources.list RUN apt-get update &&\ apt-get -y install --no-install-recommends \ curl unzip openjdk-8-jre-headless tomcat8 ENV CATALINA_HOME /usr/share/tomcat8 ENV CATALINA_BASE /var/lib/tomcat8 ENV CATALINA_TMPDIR /tmp/tomcat8-tmp ENV GS_URL http://sourceforge.net/projects/geoserver/files/GeoServer ENV GS_VERSION 2.13.2 ENV GS_DATADIR /opt/geoserver/data ENV CATALINA_OPTS="-DGEOSERVER_DATA_DIR=$GS_DATADIR" RUN mkdir -p $GS_DATADIR && chown tomcat8 $GS_DATADIR RUN curl -L $GS_URL/$GS_VERSION/geoserver-$GS_VERSION-war.zip > gs.zip &&\ unzip -d $CATALINA_BASE/webapps/ gs.zip geoserver.war &&\ rm gs.zip EXPOSE 8080 USER tomcat8 RUN mkdir $CATALINA_TMPDIR CMD ["/usr/share/tomcat8/bin/catalina.sh", "run"]