Skip to content

Commit

Permalink
make extension installation more resilient
Browse files Browse the repository at this point in the history
  • Loading branch information
adonm authored Dec 17, 2020
1 parent 13c532d commit 0bfb7a1
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ LABEL org.opencontainers.image.source https://github.com/dbca-wa/docker-geoserve
LABEL maintainer "DBCA ASI <[email protected]>"

ARG PLUGIN_URL="https://sourceforge.net/projects/geoserver/files/GeoServer/${GEOSERVER_VERSION}/extensions"
ARG EXTENSIONS="vectortiles css"
ARG EXTENSIONS="authkey vectortiles sldservice wps querylayer mbstyle css"

RUN pushd /var/local/geoserver-exts; \
for EXT in ${EXTENSIONS}; do \
fname="geoserver-${GEOSERVER_VERSION}-${EXT}-plugin.zip" \
wget ${PLUGIN_URL}/${fname} \
unzip -d ${ext} ${fname}; rm ${fname} \
done; popd
RUN mv /var/local/geoserver-exts/*/*.jar /usr/local/geoserver/WEB-INF/lib
RUN cd /var/local/geoserver-exts; for EXT in ${EXTENSIONS}; do \
FNAME="geoserver-${GEOSERVER_VERSION}-${EXT}-plugin.zip"; \
wget --max-redirect=40 ${PLUGIN_URL}/${FNAME}; \
unzip -d ${EXT} ${FNAME}; rm ${FNAME}; \
done; mv */*.jar /usr/local/geoserver/WEB-INF/lib

0 comments on commit 0bfb7a1

Please sign in to comment.