docker icon indicating copy to clipboard operation
docker copied to clipboard

Switch to official Tomcat 9 - jre 11 base image

Open ahennr opened this issue 1 year ago • 3 comments

In this PR a change of the base image to the official Tomcat 9 (tomcat:9.0.85-jre11-temurin-jammy) image is suggested (internally based on ubuntu 22.04). In particular, I see the following advantages of this change:

  • By using this image, Java and Tomcat do not have to be installed manually and they are pre-configured in a consistent way
  • Since the Tomcat image is regularly updated on the operating system level as well as on the Tomcat side, this can be used to continuously update the built images and release them with the same tag but different digest when updating the base image, if the GeoServer version remains the same.
    • See also the discussion in https://osgeo-org.atlassian.net/browse/GEOS-11231
  • The resulting GeoServer image is about 38% smaller than the one currently provided

ahennr avatar Feb 07 '24 11:02 ahennr

Thank you. I like this change and will take some time soon to test this extensively to ensure that all available features are still working with such a "basic" change.

buehner avatar Feb 07 '24 11:02 buehner

Would be great if you could resolve the conflicts @ahennr :pray:

buehner avatar Feb 09 '24 08:02 buehner

Would be great if you could resolve the conflicts @ahennr 🙏

🏁

ahennr avatar Feb 09 '24 09:02 ahennr

Thx a lot for the work @ahennr

I really like this for different reasons:

  • ~30% reduced image size (even with JDK)
  • better support with https://github.com/geoserver/docker/pull/48
  • simpler Dockerfile
  • probably more...

I think I'll merge this soon (probably other PRs that might be merged before lead to new merge conflicts)

buehner avatar Jul 18 '24 15:07 buehner

I made some final extensive testing and everything was fine, so i will merge this now. Thx again :pray:

buehner avatar Jul 26 '24 10:07 buehner