Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java 11 and future Java version support #236

Closed
anuraaga opened this issue Sep 2, 2018 · 4 comments
Closed

Java 11 and future Java version support #236

anuraaga opened this issue Sep 2, 2018 · 4 comments

Comments

@anuraaga
Copy link
Contributor

anuraaga commented Sep 2, 2018

I noticed a closed bug about Java 9 here and one about Java 10 in jib but didn't find an open issue here so figured it'd be good to track it.

From the jib issue, it sounds like Java 10 will be skipped in favor of Java 11 LTS. This is good news, but I was wondering if there's also a version support plan going forward? LTS-only, LTS + latest non-LTS, or something similar? If distroless always supports the latest Java, at least for 6 months, it means people can use it while staying at the cutting edge of Java :)

@barmic
Copy link

barmic commented Sep 15, 2018

What is the plan? Do you think use https://adoptopenjdk.net/ and there API?

@jabrena
Copy link

jabrena commented Oct 27, 2018

One idea to consider:

jib could allow using complete OpenJDK builds or Java Runtime Images to save memory.

Example:
https://github.com/ev3dev-lang-java/openjdk-ev3/blob/master/scripts/zip.sh

Results:

https://ci.adoptopenjdk.net/view/ev3dev/job/openjdk11_build_ev3_linux/

Complete JDK: 265mb
JRI: 22mb

Juan Antonio

@arashbi
Copy link

arashbi commented Nov 23, 2018

is there any jdk 11 image at the moment?

@chanseokoh
Copy link
Member

Java 11 images (gcr.io/distroless/java:11 and gcr.io/distroless/java:11-debug) are now available, in parity with the Java 8 images (gcr.io/distroless/java:8 and gcr.io/distroless/java:8-debug). The latest and debug continue to point to the Java 8 images (i.e., 8 and 8-debug, respectively).

Like the Java 8 images, the Java 11 images unpack the headless OpenJDK JRE Debian package (openjdk-11-jre-headless). However, I noticed the size of the 11 images are a bit larger than the 8 images.

gcr.io/distroless/java   8                   9c0bc85b4448        49 years ago        119MB
gcr.io/distroless/java   11                  a4338971ab0a        49 years ago        189MB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants