![]() ![]() ![]() UPD: as a solutions for these challenges one could use this answer: Java 11 application as docker image What is this modules file which brings 135 MB in OpenJDK 11?.Why is the slim/headless/JRE package for OpenJDK 11 so large compared to the similar OpenJDK 8 package? Why is the unstable sid version used for LTS Java images? Why is alpine not used any more as a base image for Java 11 slim images? Going deeper I discovered the "root" of this heaviness - it's the modules file of the JDK: # ls -lhG /usr/lib/jvm/java-11-openjdk-amd64/lib/modulesġ35M /usr/lib/jvm/java-11-openjdk-amd64/lib/modules The openjdk-11-jre-headless package installed in the image is 3 times larger than openjdk8-jre (inside running Docker container): The openjdk:11-jre-slim image uses the base image debian:sid-slim. (I'm considering only the official OpenJDK and the most lightweight images for each Java version.)ĭeeper digging uncovered the following "things": However, the base Docker image for Java 11 is much larger than the equivalent for Java 8: So, we're trying to start new services based on this Java version. Update apt database with apt-get using the following command.Java 11 is announced to be the most recent LTS version. ![]() Install openjdk-11-jre-headless Using apt-get In the following sections we will describe each method. There are three methods to install openjdk-11-jre-headless on Ubuntu 20.04. Suggests: libnss-mdns, fonts-dejavu-extra, fonts-ipafont-gothic, fonts-ipafont-mincho, fonts-wqy-microhei | fonts-wqy-zenhei, fonts-indicĬonflicts: openjdk-11-jdk-headless (« 11~18-2), oracle-java11-installer Minimal Java runtime - needed for executing non GUI Java programs, In this tutorial we learn how to install openjdk-11-jre-headless on Ubuntu 20.04. openjdk-11-jre-headless is OpenJDK Java runtime, using Hotspot JIT (headless) OpenJDK Java runtime, using Hotspot JIT (headless) Introduction ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |