Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run Java 12 application in Docker

Tags:

I took a look at OpenJDK Docker repository and found no JRE image for Java 12. There is one for Java 11 (openjdk:11.0.2-jre), but for 12 there are only JDK images.

Q: How to use OpenJDK JRE 12 to run an application in Docker without using a full JDK image?

like image 365
Sasha Shpota Avatar asked Apr 05 '19 12:04

Sasha Shpota


1 Answers

AdoptOpenJDK is already providing Java 12 JRE docker images (adoptopenjdk/openjdk12:jre-12.33)

AdoptOpenJDK is a Java community based effort and from its about page:

AdoptOpenJDK.net started in 2017 following years of discussions about the general lack of an open and reproducible build & test system for OpenJDK source across multiple platforms.

And one key point of their mission is:

Provide a reliable source of OpenJDK binaries for all platforms, for the long term future!

There is no pull request for 12 jre on OpenJdk official image repository yet (which is maintained by Docker community.

like image 195
Gonzalo Matheu Avatar answered Nov 15 '22 05:11

Gonzalo Matheu