tomcat icon indicating copy to clipboard operation
tomcat copied to clipboard

Unzip command missing from latest tomcat:9-jdk11

Open jpl-jengelke opened this issue 2 years ago • 4 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.

jpl-jengelke avatar Jun 23 '22 20:06 jpl-jengelke

This is an unfortunate consequence of #265 :disappointed:

tianon avatar Jun 23 '22 20:06 tianon

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.

jpl-jengelke avatar Jun 23 '22 22:06 jpl-jengelke

https://github.com/docker-library/openjdk/issues/35#issuecomment-102191500 You're right, it was in the image because of its usefulness and being so small at less than 1 mB

wglambert avatar Jun 24 '22 17:06 wglambert

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

abesnier avatar Jun 27 '22 10:06 abesnier

Any traction on this?

jpl-jengelke avatar Feb 22 '23 02:02 jpl-jengelke

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. :sweat_smile:

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). :heart:

tianon avatar Dec 20 '23 00:12 tianon