2023-05-04 23:36:42 UTC
249 MB
/usr/java/openjdk-21
JAVA_VERSION21-ea+21
LANGC.UTF-8
PATH/usr/java/openjdk-21/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[#000] sha256:328ba678bf27575937f8b9dfbf5b5f39b21941af068f8e5960de8131e289da85 - 17.05% (42.5 MB)
[#001] sha256:55560f49b1cd4515e5c12b0a190ca11492533ca3757e761c254daf809031bdc5 - 5.74% (14.3 MB)
[#002] sha256:0cbcaf598be57fb62fd8091c936361772a1ef5864880b450391d097af939cc31 - 77.21% (193 MB)
/bin/sh -c #(nop) ADD file:61a2085af5116916e7b117c2e7ad7116bdc0282d8fa9ce76191c4101f5e866ff in /
2023-04-06 18:20:32 UTC/bin/sh -c #(nop) CMD ["/bin/bash"]
2023-04-06 18:37:15 UTC/bin/sh -c set -eux; microdnf install gzip tar binutils freetype fontconfig ; microdnf clean all
2023-04-06 18:37:15 UTC/bin/sh -c #(nop) ENV JAVA_HOME=/usr/java/openjdk-21
2023-04-06 18:37:15 UTC/bin/sh -c #(nop) ENV PATH=/usr/java/openjdk-21/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2023-04-06 18:37:16 UTC/bin/sh -c #(nop) ENV LANG=C.UTF-8
2023-05-04 23:36:32 UTC/bin/sh -c #(nop) ENV JAVA_VERSION=21-ea+21
2023-05-04 23:36:42 UTC/bin/sh -c set -eux; arch="$(objdump="$(command -v objdump)" && objdump --file-headers "$objdump" | awk -F '[:,]+[[:space:]]+' '$1 == "architecture" { print $2 }')"; case "$arch" in 'i386:x86-64') downloadUrl='https://download.java.net/java/early_access/jdk21/21/GPL/openjdk-21-ea+21_linux-x64_bin.tar.gz'; downloadSha256='218aa2d9ef829851d8eafe470922cefd372aa31b68cdab3aa0691c0492e6adde'; ;; 'aarch64') downloadUrl='https://download.java.net/java/early_access/jdk21/21/GPL/openjdk-21-ea+21_linux-aarch64_bin.tar.gz'; downloadSha256='449a26a88e27c331c9565a95892533f33792094f23f28a71b880a60588ddf0c2'; ;; *) echo >&2 "error: unsupported architecture: '$arch'"; exit 1 ;; esac; curl -fL -o openjdk.tgz "$downloadUrl"; echo "$downloadSha256 *openjdk.tgz" | sha256sum --strict --check -; mkdir -p "$JAVA_HOME"; tar --extract --file openjdk.tgz --directory "$JAVA_HOME" --strip-components 1 --no-same-owner ; rm openjdk.tgz*; rm -rf "$JAVA_HOME/lib/security/cacerts"; ln -sT /etc/pki/ca-trust/extracted/java/cacerts "$JAVA_HOME/lib/security/cacerts"; ln -sfT "$JAVA_HOME" /usr/java/default; ln -sfT "$JAVA_HOME" /usr/java/latest; for bin in "$JAVA_HOME/bin/"*; do base="$(basename "$bin")"; [ ! -e "/usr/bin/$base" ]; alternatives --install "/usr/bin/$base" "$base" "$bin" 20000; done; java -Xshare:dump; fileEncoding="$(echo 'System.out.println(System.getProperty("file.encoding"))' | jshell -s -)"; [ "$fileEncoding" = 'UTF-8' ]; rm -rf ~/.java; javac --version; java --version
2023-05-04 23:36:42 UTC/bin/sh -c #(nop) CMD ["jshell"]
2023-05-05 00:02:27 UTC
248 MB
/usr/java/openjdk-21
JAVA_VERSION21-ea+21
LANGC.UTF-8
PATH/usr/java/openjdk-21/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[#000] sha256:6425367b44c9c3f59fd1e81f8fa2e9170ca2ef552d63f35a08ef3969ee4ff557 - 16.75% (41.5 MB)
[#001] sha256:57603b9946d65e0ac1577d90598fe906f0885a24be64058c4412b3d03b03a59a - 6.1% (15.1 MB)
[#002] sha256:bea4c362c99a98e6dc7e8a66e16cc575d85041f2e2b7fee35758b557ad1d8a96 - 77.14% (191 MB)
/bin/sh -c #(nop) ADD file:c798bcae4b9271a204dc37f132bce1f0042c02cb1ad5a2237f56dec227d44438 in /
2023-04-06 18:40:07 UTC/bin/sh -c #(nop) CMD ["/bin/bash"]
2023-04-06 18:59:01 UTC/bin/sh -c set -eux; microdnf install gzip tar binutils freetype fontconfig ; microdnf clean all
2023-04-06 18:59:01 UTC/bin/sh -c #(nop) ENV JAVA_HOME=/usr/java/openjdk-21
2023-04-06 18:59:01 UTC/bin/sh -c #(nop) ENV PATH=/usr/java/openjdk-21/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2023-04-06 18:59:01 UTC/bin/sh -c #(nop) ENV LANG=C.UTF-8
2023-05-05 00:02:15 UTC/bin/sh -c #(nop) ENV JAVA_VERSION=21-ea+21
2023-05-05 00:02:25 UTC/bin/sh -c set -eux; arch="$(objdump="$(command -v objdump)" && objdump --file-headers "$objdump" | awk -F '[:,]+[[:space:]]+' '$1 == "architecture" { print $2 }')"; case "$arch" in 'i386:x86-64') downloadUrl='https://download.java.net/java/early_access/jdk21/21/GPL/openjdk-21-ea+21_linux-x64_bin.tar.gz'; downloadSha256='218aa2d9ef829851d8eafe470922cefd372aa31b68cdab3aa0691c0492e6adde'; ;; 'aarch64') downloadUrl='https://download.java.net/java/early_access/jdk21/21/GPL/openjdk-21-ea+21_linux-aarch64_bin.tar.gz'; downloadSha256='449a26a88e27c331c9565a95892533f33792094f23f28a71b880a60588ddf0c2'; ;; *) echo >&2 "error: unsupported architecture: '$arch'"; exit 1 ;; esac; curl -fL -o openjdk.tgz "$downloadUrl"; echo "$downloadSha256 *openjdk.tgz" | sha256sum --strict --check -; mkdir -p "$JAVA_HOME"; tar --extract --file openjdk.tgz --directory "$JAVA_HOME" --strip-components 1 --no-same-owner ; rm openjdk.tgz*; rm -rf "$JAVA_HOME/lib/security/cacerts"; ln -sT /etc/pki/ca-trust/extracted/java/cacerts "$JAVA_HOME/lib/security/cacerts"; ln -sfT "$JAVA_HOME" /usr/java/default; ln -sfT "$JAVA_HOME" /usr/java/latest; for bin in "$JAVA_HOME/bin/"*; do base="$(basename "$bin")"; [ ! -e "/usr/bin/$base" ]; alternatives --install "/usr/bin/$base" "$base" "$bin" 20000; done; java -Xshare:dump; fileEncoding="$(echo 'System.out.println(System.getProperty("file.encoding"))' | jshell -s -)"; [ "$fileEncoding" = 'UTF-8' ]; rm -rf ~/.java; javac --version; java --version
2023-05-05 00:02:27 UTC/bin/sh -c #(nop) CMD ["jshell"]
Please be careful as this will not just delete the reference but also the actual content!
For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.