Skip to content
Permalink
Browse files

Use centralized Azavea GeoServer image

  • Loading branch information...
tnation14 authored and Jean Cochrane committed Oct 29, 2018
1 parent 859a395 commit a7cdf8d2bd508f91ffaf23a4a6e516aa0a0c5a7d
Showing with 3 additions and 29 deletions.
  1. +2 −28 geoserver/Dockerfile
  2. +1 −1 scripts/update
@@ -1,30 +1,4 @@
# A GeoServer installation
FROM openjdk:8-jre-slim
FROM quay.io/azavea/geoserver:2.11.2-tomcat9-jre8-slim

ENV GEOSERVER_VERSION 2.11.2
ENV GEOSERVER_ZIP_URL https://s3.amazonaws.com/district-builder-global-artifacts-us-east-1/deps/geoserver-${GEOSERVER_VERSION}-bin.zip

ENV GEOSERVER_DIR /usr/share
ENV GEOSERVER_EXT_DIR $GEOSERVER_DIR/geoserver-$GEOSERVER_VERSION/webapps/geoserver/WEB-INF/lib
ENV PATH /usr/share/geoserver-$GEOSERVER_VERSION/bin:$PATH
ENV JAVA_HOME /usr/lib/jvm/java-1.8.0-openjdk-amd64
ENV GEOSERVER_HOME $GEOSERVER_DIR/geoserver-$GEOSERVER_VERSION/

RUN apt-get update && \
apt-get install -y -qq ca-certificates openssl unzip wget curl && \
update-ca-certificates && \
wget -O $GEOSERVER_DIR/geoserver.zip $GEOSERVER_ZIP_URL && \
unzip -qq $GEOSERVER_DIR/geoserver.zip -d $GEOSERVER_DIR && \
rm $GEOSERVER_DIR/geoserver.zip

ENV GEOSERVER_DATA_DIR /data

VOLUME $GEOSERVER_DATA_DIR

COPY ./jetty.xml $GEOSERVER_DIR/etc/jetty.xml
COPY ./geoserver-startup.sh $GEOSERVER_HOME/bin/geoserver-startup.sh
COPY ./change_admin_password.sh $GEOSERVER_HOME/bin/change_admin_password.sh

WORKDIR $GEOSERVER_HOME

CMD ["sh", "bin/geoserver-startup.sh"]
COPY ./change_admin_password.sh $CATALINA_HOME/bin/change_admin_password.sh
@@ -40,7 +40,7 @@ function write_settings() {

function change_geoserver_admin_password() {
docker-compose \
exec -T geoserver ./bin/change_admin_password.sh
exec -T geoserver change_admin_password.sh
}

if [ "${BASH_SOURCE[0]}" = "${0}" ]

0 comments on commit a7cdf8d

Please sign in to comment.
You can’t perform that action at this time.