Hello again,

with the new GeoServer release 2.26.0, the Docker image is built on top of the official tomcat base image for the first time. We now realized that in the old approach (changed by https://github.com/geoserver/docker/pull/45) "gdal-bin" was installed, but "apt install gdal-bin" is currently missing in the new approach (so in the 2.26.0 image).

In case your deployment depends on GDAL (for example by using extensions that need it), things will probably fail. I attached a Dockerfile to this mail that demonstrates a fix/workaround for this scenario.

I will soon start a discussion on https://discourse.osgeo.org/c/geoserver regarding GDAL to address this issue.

Best regards
Nils


On 7/29/24 10:19, Nils Bühner wrote:
Hi all,

last friday we merged a bigger change in the Docker Image repository: https://github.com/geoserver/docker/pull/45

This changes the base image, so we now use the official tomcat docker image as a base instead of installing tomcat ourselves. We succesfully tested all the functionality that the GeoServer image provides. Nonetheless - with the next GeoServer release (which also results in a new docker image) - minor adjustments might be necessary in your scenario.

Please note: The main change is the internal tomcat path. Previously it was something like (containing the tomcat version) "/opt/apache-tomcat-9.0.89". In future it will always be the same generic path "/usr/local/tomcat/" (as provided by the tomcat base image), which means: In case you use mounts to directories within the tomcat path, you will have to adjust them!

The current versions of GeoServer (2.25.3/2.24.4) were still built with the old approach, but all future releases will be built with the new base image.

Please let us know here if you encounter unexpected problems.

Best regards
Nils
FROM docker.osgeo.org/geoserver:2.26.0

RUN chmod 1777 /tmp \
    && apt update \
    && apt install -y --no-install-recommends gdal-bin \
    && apt clean \
    && rm -rf /var/lib/apt/lists/*
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to