corretto-docker icon indicating copy to clipboard operation
corretto-docker copied to clipboard

Missing JRE builds for 11.x and 15.x

Open nikoncode opened this issue 3 years ago • 10 comments

Guys, I am not able to find JRE images for 11.x and 15.x.

Does it related to end-user dependent jlink minification or what?

Do you have any plans to maintain generic JRE image?

Thanks.

nikoncode avatar Oct 28 '20 14:10 nikoncode

I'm interested in knowing whether there are plans to maintain JRE images for these as well. Particularly, for the alpine variants. Does anyone know?

skuby2 avatar Nov 18 '20 19:11 skuby2

We too would like to know what happened to amazoncorretto:11-alpine-jre and what the future plan is - any references will be appreciated!

The jre tags have been deleted from the README.md on September 15. However the Dockerfile for JRE 11 alpine is still there.

EugenDueck avatar Nov 19 '20 04:11 EugenDueck

Hello!

Any UPDATE on this?

gabrieldobrescu1892 avatar Jan 26 '21 10:01 gabrieldobrescu1892

It's almost 5 months since this is opened and no reaction at all. Hi @cliveverghese, any idea/explanation why alpine JRE for 11 has been deleted ?

Constantin07 avatar Feb 12 '21 11:02 Constantin07

I can't speak for JDK 11 but for JDK 15 we made a great improvement to the Corretto Docker repository recently with the new 'slim' variant of the JDK Dockerfiles: https://github.com/corretto/corretto-docker/tree/master/15/slim

I've just added issue #51 to promote these slim builds being published.

It should be pretty easy to create a JDK 11 version too.

They are not exactly JRE's in the sense that whilst cut down they are still fully functional JDKs. I think if you wanted to build a real JRE version of Corretto that would have to be a concern of the core Corretto team rather than something you could do in the docker image. The slim dockerfile just uses jlink to remove documentation, debug and header files. Other than that the whole JDK is there. Maybe it's splitting hairs on the name, but if you look at the contents of the original JRE packages they are quite different. i.e.

jlink --add-modules "$(java --list-modules | sed -e 's/@[0-9].*$/,/' | tr -d \\n)" --no-man-pages --no-header-files --strip-debug --output /opt/corretto-jdk-slim

Even though it's not a JRE, just a slim JDK, the size saved is still significant:

Uncompressed: Alpine Linux: 175 MB (183 MB smaller) Amazon Linux 2: 357 MB (113 MB smaller)

Compressed: Alpine Linux: 58 MB (140 MB smaller) Amazon Linux 2: 123 MB (83 MB smaller)

If we can get these published I think it will wind up saving a huge amount of data transfer and result in great increases in startup performance too.

luketn avatar Feb 25 '21 03:02 luketn

Same question as everyone else has. @cliveverghese Is there a reason why the 11-alpine-jre image is not available?

Anyone know what size it was? 11-alpine is 323MB.

dankirkd avatar Mar 04 '21 00:03 dankirkd

+1 why 11-alpine-jre image is not available at dockerhub?

jbaris avatar Aug 19 '21 19:08 jbaris

no 15 dockerfile?

debu99 avatar Oct 08 '21 11:10 debu99

no 15 dockerfile?

Corretto-15 is no longer supported, please use Corretto-17 to get the latest features and improvements.

lutkerd avatar Oct 08 '21 15:10 lutkerd

Related: https://github.com/corretto/corretto-11/issues/176

chrizel avatar Jan 10 '22 16:01 chrizel