tomcat icon indicating copy to clipboard operation
tomcat copied to clipboard

Latest 9.0 docker image missing curl

Open cvatterodt opened this issue 4 months ago β€’ 5 comments

We are using the image tomcat:9.0 as a base image for a custom docker image. Inside our image, we are calling curl to download artifacts into the image. Recently the docker build for our image failed with the following exception:

The command '/bin/sh -c curl [...] returned a non-zero code: 127

I checked the image, which currently resolves to 9.0.109-jdk25-temurin-noble and it does indeed not have curl installed any more. The image tagged 9.0.108 still has curl. Am I correct in assuming this is an involuntary regression?

cvatterodt avatar Oct 02 '25 11:10 cvatterodt

πŸ€” hmm, they stopped including curl in JDK 22 (https://github.com/adoptium/containers/issues/630), but 25 is the next LTS since then. Since we only create tomcat images for LTS releases, this is the first one to see the change. Unsure if we should follow their change or add curl to the jdk25 images. Please, vote on the opening comment above to voice your support πŸ‘ or disagreement πŸ‘Ž.

Edit: for clarification use πŸ‘to add curl in the tomcat images; useπŸ‘Žto leaving curl not installed in the tomcat JDK 25+ images (following the Eclipse Temurin change).

If you need curl right now, then make swap back to jdk21 images; be sure to pin your JDK version, variant, and OS version to minimize possible breaking changes: e.g. tomcat:9.0-jdk21-temurin-noble. Or install curl in your dependent image (it'll become a no op if we add it back).

Edit: see also https://github.com/adoptium/containers/issues/814

yosifkit avatar Oct 02 '25 18:10 yosifkit

Please, vote on the opening comment above to voice your support πŸ‘ or disagreement πŸ‘Ž.

Sorry but I'm not sure how this should be interpreted: πŸ‘ to add curl in Tomcat, πŸ‘Ž to be aligned with Eclipse Temurin?

I didn't yet get a definitive answer from Eclipse Temurin folks, maybe this will be added back anyways 🀷

gaeljw avatar Oct 03 '25 13:10 gaeljw

Sorry but I'm not sure how this should be interpreted: πŸ‘ to add curl in Tomcat, πŸ‘Ž to be aligned with Eclipse Temurin?

Yes, that is what I meant. Sorry that I was unclear.

yosifkit avatar Oct 03 '25 20:10 yosifkit

I think we should keep curl out of the images -- it's not necessary for Tomcat itself, so it doesn't belong in the images (but we shouldn't go out of our way if the base image makes a different choice, as before).

tianon avatar Oct 07 '25 20:10 tianon

I think we should keep curl out of the images -- it's not necessary for Tomcat itself, so it doesn't belong in the images (but we shouldn't go out of our way if the base image makes a different choice, as before).

I think it's need to perfom health check if an application provides health-check endpoints.

thaarbach avatar Oct 29 '25 17:10 thaarbach