docker-library/tomcat

Unzip command missing from latest tomcat:9-jdk11

jpl-jengelke opened this issue · 6 comments

Attempting to run ‘unzip’ in the container results in an error. This impacts deployments that use the container for various operations involving decompressing ZIP archives.

This is an unfortunate consequence of #265 😞

What makes this a "usability question" per se? I think there should be a fundamental expectation that basic tools are included by default in build images. In fact, the Open Group Base Specification lists a number of required POSIX utilities. Now zip/unzip may not be part of that but in usage it's the most common archiving application, I believe. One would reasonably expect basic archiving utilities to be installed in a Java-centered container that deals in JARs/WARs/etc., especially since the Java compilation products are ZIP-based. What else changed?

By the way, here is the tag for the last version in case anyone else is having the same surprise with missing tooling in the image: 9.0.63-jdk11.

docker-library/openjdk#35 (comment)
You're right, it was in the image because of its usefulness and being so small at less than 1 mB

Ow! And I was wondering why extracting tar.xz files failed! Installing xz-utils did the trick.

Any traction on this?

Sorry for the delay. I think I've got better words for my position on this now than I did the last time I looked at this. 😅

Originally, we did not intentionally include unzip, so while it was unintentionally removed as well, I don't believe there's any functionality in Tomcat itself which invokes unzip directly (would love a pointer to the relevant functionality if so!), so we unfortunately do not plan to add it back (unless there's some functionality in Tomcat itself which invokes it). ❤️