trampgeek / jobeinabox

The dockerfile and doc for building the Docker image JobeInABox
MIT License
12 stars 29 forks source link

Utilize Dockerized jdk over Ubuntu JDK #10

Open chriswier opened 2 years ago

chriswier commented 2 years ago

This merge creates a multi-layer Docker container for jobeinabox, utilizing the published Docker containers for openjdk and Ubuntu 20.04 LTS. The openjdk containers are typically patched for security issues much quicker than Ubuntu team patches their packages. This commit pulls in the latest openjdk:16-jdk image, and places it into the same location that Ubuntu does in the filesystem (/usr/lib/jvm/java-16-openjdk-amd64). It utilizes the update-alternatives system in Ubuntu to correctly set paths for the java and javac binary.

The end result is that the Java version goes from the Ubuntu 16.0.1 version to the Dockerize openjdk:16-jdk version, which is 16.0.2.