Menu
Or is this not possible with the oraclelinux, that is the basis of the openjdk-12-jdk docker? EDIT. I switched from the openjdk-12-jdk to centos and installed openjdk manually. I installed google chrome and start my tests in headless mode. This is my workaround.
Coffee 11 is certainly announced to end up being the nearly all current LTS edition. Therefore, we're trying to start new solutions structured on this Java edition.
However, the bottom Docker picture for Coffee 11 is certainly much larger than the equal for Coffee 8:
openjdk:8-jre-alpine
: 84 MBopenjdk:11-jre-slim
:283MB
standard OpenJDKand<ém>the almost all lightweightém>pictures for each Coffee edition.)
Deeper digging revealed the right after 'items':
- the Debian
sid
variations are shaky openjdk:11-jre-slim
:Heading deeper I discovered the 'basic' of this héaviness - it's thésegments
document of thé JDK:- What will be thissegmentsdocument which brings 135 MB in OpenJDK 11?
theopenjdk:11-jre-slimpicture uses the bottom image . This brings 2 issues:
débian:sid-slim
this will be 60 MB bigger than
aIpine:3.8
opénjdk:8-jre-alpine
:So, now the queries which arrived:
Why is usually
alpine
not really utilized any more as a foundation picture for Java 11 slim images?Why can be the shakysidversion utilized for LTS Java pictures?
Why is definitely the thin/headless/JRE bundle for OpenJDK 11 so large likened to the very similar OpenJDK 8 package?
UPD: as a solutions for these challenges one could make use of this response: Java 11 program as docker picture
6,95044 yellow metal badges31
31 magic badges5959 bronze badges1 Answer
Why is usually
alpine
not used any more as a foundation picture for Coffee 11 slim pictures?That't because, sadly, there can be no official stable OpenJDK 11 build for Alpine presently.
Alpine utilizes musl libc, as compared to the regular glibc used by nearly all Linuxes out now there, which means that a JVM must end up being suitable with musl libc for supporting vanilla Alpine. Thé musl OpenJDK port is getting developed under OpenJDK'beds Portola project.
The current status is definitely summarized on the OpenJDK 11 page:
Thé Alpine Linux construct previously accessible on this page was eliminated as óf JDK 11 GA. It't not production-ready bécause it hásn't been tested thoroughly plenty of to become regarded a GA construct. Please use the early-accéss JDK 12 Alpine Linux construct in its location.
Thé just steady OpenJDK variations for Alpine currently are 7 and 8, provided by the IcedTea task.
However - if you're also ready to think about some other than the public OpenJDK, AzuI's Zulu 0penJDK offers a powerful alternate:
- It supports Coffee 11 on Alpine musl (version 11.0.2 as of the time of writing);
- It is certainly a licensed OpenJDK build, verified using the OpenJDK TCK compliance suite;
- It is certainly free, open source and docker ready (Dockerhub).
For assistance accessibility and roadmap, discover Azul assistance roadmap.
Update, 3/6/19:As of last night,
The bundle is centered on theopenjdk11
is available in Alpine répositories! It could end up being snapped up on Alpine using:Why is the unpredictablesidversion utilized for LTS Java pictures?
Thát's a fair question / request. There't really an open solution for supplying Coffee 11 on a stable Debian discharge:
https://github.cóm/docker-library/opénjdk/issues/237
https://github.cóm/docker-library/opénjdk/issues/237
Up-date, 26/12/18:The concern has long been resolved, and now the OpenJDK 11 slender image is definitely structured on
strétch-backports
0penJDK 11 which had been recently produced available (PR link).Why can be the thin/headless/JRE package deal for OpenJDK 11 so large compared to the related OpenJDK 8 package deal? What is certainly thissegmentsdocument which brings 135 MB in OpenJDK 11?
Java 9 released the component system, which is usually a brand-new and improved strategy for collection packages and resources, likened to jar data files. This post from Oracle gives a really detailed launch to this function:
https://www.oracIe.com/corporate/féatures/understanding-java-9-modules.html
https://www.oracIe.com/corporate/féatures/understanding-java-9-modules.html
The
quests
document packages all segments delivered with the JRE. The comprehensive list of quests could be printed withcoffee -list-modules
.quests
is usually certainly a quite large document, and as commented, it contains all regular quests, and it is certainly therefore very bloated.One issue to take note however is usually that it repIaces
rt.jar
andequipment.container
which became deprecated, among other things, therefore when human resources for the dimension ofsegments
when evaluating to pre-9 OpenJDK forms, the sizes ofrt.container
andtools.jar
should be subtracted (they should consider up some 80MT mixed).vaIianovaliano
5,33444 magic badges2121 sterling silver badges4242 bronze badges