Ubuntu Chisel images for MS Build of OpenJDK (11, 17, 21) #114
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces Dockerfiles to create container images for the Microsoft Build of OpenJDK using Ubuntu Chisel, a lightweight and streamlined version of Ubuntu designed for smaller image sizes.
Key Features
1. Smaller Base Image:
2. Default Configuration:
rootprivileges by default and includes abashshell.javacommand, allowing seamless execution of Java applications.3. Optional Non-Shell User:
appuser, a non-privileged user that does not have access to a shell.Rationale
This PR aims to provide an alternative that strikes a balance between minimalism and usability, catering to users who require a smaller Ubuntu-based image but still need access to a shell for debugging or other purposes.
$ docker git:(ubuntu-chiselled) ✗ docker images | grep ubuntu mcr.microsoft.com/openjdk/jdk 21-ubuntu-chisel 16a311bf8191 38 minutes ago 169MB mcr.microsoft.com/openjdk/jdk 17-ubuntu-chisel 3948e6292841 38 minutes ago 156MB mcr.microsoft.com/openjdk/jdk 11-ubuntu-chisel 220b15004ed8 38 minutes ago 156MB mcr.microsoft.com/openjdk/jdk 21-ubuntu aacd344997b6 13 hours ago 673MB mcr.microsoft.com/openjdk/jdk 17-ubuntu e5c6ef2ce7c4 13 hours ago 632MB mcr.microsoft.com/openjdk/jdk 11-ubuntu 380ccaa60052 13 hours ago 613MB