镜像构建历史
# 2023-09-22 07:56:29 0.00B
/bin/sh -c #(nop) CMD ["jshell"]
# 2023-09-22 07:56:28 351.99MB
/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-09-22 07:56:17 0.00B
/bin/sh -c #(nop) ENV JAVA_VERSION=21
# 2023-09-22 07:56:17 0.00B
/bin/sh -c #(nop) ENV LANG=C.UTF-8
# 2023-09-22 07:56:17 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-09-22 07:56:17 0.00B
/bin/sh -c #(nop) ENV JAVA_HOME=/usr/java/openjdk-21
# 2023-09-22 07:55:47 42.17MB
/bin/sh -c set -eux; microdnf install gzip tar binutils freetype fontconfig ; microdnf clean all
# 2023-09-22 07:24:02 0.00B
/bin/sh -c #(nop) CMD ["/bin/bash"]
# 2023-09-22 07:24:01 110.04MB
/bin/sh -c #(nop) ADD file:909c07f3bad92a80d3917d583769a01bf62c2cbf3dd24f450fb303b1db92a83e in /
镜像信息
{
"Id": "sha256:079114de2be199f2ae0f7766ac0187d24a0c3a2d658fc51bffc6af5b8bd85469",
"RepoTags": [
"openjdk:21",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openjdk:21"
],
"RepoDigests": [
"openjdk@sha256:af9de795d1f8d3b6172f6c55ca9ba1c5768baa11bb2dc8af7045c7db9d4c33ac",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openjdk@sha256:c67f402f77197f2e6ae84ff1fca868699ce3b38bfa78604524051420fa2e4383"
],
"Parent": "",
"Comment": "",
"Created": "2023-09-21T23:56:29.331618065Z",
"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=C.UTF-8",
"JAVA_VERSION=21"
],
"Cmd": [
"jshell"
],
"Image": "sha256:bbea55206849d47fe76e730708b155b1500075f2e874158c56765e88820f4955",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": null,
"OnBuild": null,
"Labels": null
},
"Architecture": "amd64",
"Os": "linux",
"Size": 504198270,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/1421854e527c8c6d017a95abba47bb392d75bb7082898a9e4b41950313541fac/diff:/var/lib/docker/overlay2/370ce687329766860ffdcdd9581485c6a00bb919df801d3697b20c13744daecd/diff",
"MergedDir": "/var/lib/docker/overlay2/ee70c9410fd128aec63cd5bf8d89ea1eb908cc777fd6c07b02d933a7f5010475/merged",
"UpperDir": "/var/lib/docker/overlay2/ee70c9410fd128aec63cd5bf8d89ea1eb908cc777fd6c07b02d933a7f5010475/diff",
"WorkDir": "/var/lib/docker/overlay2/ee70c9410fd128aec63cd5bf8d89ea1eb908cc777fd6c07b02d933a7f5010475/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:b42107e741524c1f305a1a4649a4d96a5921c48c5b8c438ad871ab7cc5815231",
"sha256:601b48657e0c06c3f5e9120585d0324813571def81b45674ef859df80a75cc48",
"sha256:10359c5dc4ba0b57b533aa292eab7a8beaf78cb0272f99f45a11eaa39aac15c7"
]
},
"Metadata": {
"LastTagTime": "2024-10-06T17:27:27.06876018+08:00"
}
}