Skip to content

Commit

Permalink
geoserver: do not alter image on startup, to keep reproducibility
Browse files Browse the repository at this point in the history
Altering image on startup is okay only for testing, not for production
deployment.
  • Loading branch information
tlvu committed Aug 12, 2022
1 parent b26e1c2 commit f3b9896
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
10 changes: 10 additions & 0 deletions birdhouse/config/geoserver/Dockerfile
@@ -0,0 +1,10 @@
# Temp fix to avoid altering docker image on startup, which makes the image not reproducible.
# docker build -t pavics/geoserver:2.19.0-kartoza-build20210329-r2-with-snakeyaml .

FROM pavics/geoserver:2.19.0-kartoza-build20210329

# Add missing jar for the metadata-plugin.
# Should be fixed by newer version of Geoserver and matching new version of the plugin.
# https://osgeo-org.atlassian.net/browse/GEOS-10078
RUN wget https://repo1.maven.org/maven2/org/yaml/snakeyaml/1.30/snakeyaml-1.30.jar \
-O /usr/local/tomcat/webapps/geoserver/WEB-INF/lib/snakeyaml-1.30.jar
7 changes: 0 additions & 7 deletions birdhouse/config/geoserver/entrypointwrapper
Expand Up @@ -43,13 +43,6 @@ if ! grep "<param-name>cors.allowed.methods</param-name>" $WEB_XML_FILE; then
fi


# Add missing jar for the metadata-plugin.
# Should be fixed by newer version of Geoserver and matching new version of the plugin.
# https://osgeo-org.atlassian.net/browse/GEOS-10078
wget https://repo1.maven.org/maven2/org/yaml/snakeyaml/1.30/snakeyaml-1.30.jar \
-O /usr/local/tomcat/webapps/geoserver/WEB-INF/lib/snakeyaml-1.30.jar


# chain existing entrypoint
/scripts/entrypoint.sh

Expand Down
2 changes: 1 addition & 1 deletion birdhouse/default.env
Expand Up @@ -17,7 +17,7 @@ export THREDDS_IMAGE="unidata/thredds-docker:4.6.18"
# Cache kartoza/geoserver docker build on pavics org since their tags are
# "moving" tags, meaning not reproducible behavior !
# See https://github.com/kartoza/docker-geoserver/issues/232#issuecomment-808754831
export GEOSERVER_IMAGE="pavics/geoserver:2.19.0-kartoza-build20210329"
export GEOSERVER_IMAGE="pavics/geoserver:2.19.0-kartoza-build20210329-r2-with-snakeyaml"

export BASH_IMAGE="bash:5.1.4"

Expand Down

0 comments on commit f3b9896

Please sign in to comment.