镜像构建历史
# 2023-08-12 08:04:27 0.00B
/bin/sh -c #(nop) CMD ["jshell"]
# 2023-08-12 08:04:26 352.01MB
/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/GA/jdk21/fd2272bbf8e04c3dbaee13770090416c/35/GPL/openjdk-21_linux-x64_bin.tar.gz'; downloadSha256='a30c454a9bef8f46d5f1bf3122830014a8fbe7ac03b5f8729bc3add4b92a1d0a'; ;; 'aarch64') downloadUrl='https://download.java.net/java/GA/jdk21/fd2272bbf8e04c3dbaee13770090416c/35/GPL/openjdk-21_linux-aarch64_bin.tar.gz'; downloadSha256='e8f4ed1a69815ddf56d7da365116eefc1e5a1159396dffee3dd21616a86d5d28'; ;; *) 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-08-12 08:04:16 0.00B
/bin/sh -c #(nop) ENV JAVA_VERSION=21
# 2023-06-14 17:57:19 0.00B
/bin/sh -c #(nop) ENV LANG=en_US.UTF-8
# 2023-06-14 17:57:19 0.00B
/bin/sh -c #(nop) ENV PATH=/usr/java/openjdk-21/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2023-06-14 17:57:19 0.00B
/bin/sh -c #(nop) ENV JAVA_HOME=/usr/java/openjdk-21
# 2023-06-14 17:56:49 39.26MB
/bin/sh -c set -eux; yum install -y --setopt=skip_missing_names_on_install=False gzip tar binutils freetype fontconfig ; rm -rf /var/cache/yum
# 2023-06-14 15:21:40 0.00B
/bin/sh -c #(nop) CMD ["/bin/bash"]
# 2023-06-14 15:21:40 138.17MB
/bin/sh -c #(nop) ADD file:733a37449d62d6e9f530185b9244e06cd8ff0ee896632576ae644437d0a1f852 in /
镜像信息
{
"Id": "sha256:1ccb5b97833fef2e9076f34ab89587687a31553177ecde189ed2c91be9d2b75c",
"RepoTags": [
"openjdk:21-jdk-oraclelinux7",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openjdk:21-jdk-oraclelinux7"
],
"RepoDigests": [
"openjdk@sha256:ab175488b7428dd1958ae9f889ece1f43ee584d03b0df5bb24618614d239d00e",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openjdk@sha256:671078207cd92b3638be12f52380c97974a9a6833001b4f2135453f43714d36f"
],
"Parent": "",
"Comment": "",
"Created": "2023-08-12T00:04:27.3923781Z",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "20.10.23",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/java/openjdk-21/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"JAVA_HOME=/usr/java/openjdk-21",
"LANG=en_US.UTF-8",
"JAVA_VERSION=21"
],
"Cmd": [
"jshell"
],
"Image": "sha256:0e78e633490910aa0b68c5672bd9570cef2e30541a622c2f8d137b20d11cdf9f",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": null,
"OnBuild": null,
"Labels": null
},
"Architecture": "amd64",
"Os": "linux",
"Size": 529435861,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/e0ce48b8da9da224fd0699873442e04154ae4f56efec3a3957ac270f7e2db8dd/diff:/var/lib/docker/overlay2/fa974b717d99c2d711cf985c519993c97e764dddf4ce6df676c15c772592fd60/diff",
"MergedDir": "/var/lib/docker/overlay2/ba38f6262460be6e67220164b1aa5125c2590df7dc869c3551fd316a290dcea1/merged",
"UpperDir": "/var/lib/docker/overlay2/ba38f6262460be6e67220164b1aa5125c2590df7dc869c3551fd316a290dcea1/diff",
"WorkDir": "/var/lib/docker/overlay2/ba38f6262460be6e67220164b1aa5125c2590df7dc869c3551fd316a290dcea1/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:616461b0543d6905f05f2b384bc403d268886c8845a6de09629a2b022388c830",
"sha256:948f13aa2492bc7550f1bbbc64ec84b39649dee827d457df84f3a64337fdfbde",
"sha256:e7426f1c117e390acec0247058ca8942f151da877648f792534e8ec0dd707885"
]
},
"Metadata": {
"LastTagTime": "2024-12-01T14:09:12.380314631+08:00"
}
}