镜像构建历史
# 2022-04-28 05:54:28 0.00B
/bin/sh -c #(nop) CMD ["jshell"]
# 2022-04-28 05:54:28 321.28MB
/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/jdk17.0.2/dfd4a8d0985749f896bed50d7138ee7f/8/GPL/openjdk-17.0.2_linux-x64_bin.tar.gz'; downloadSha256='0022753d0cceecacdd3a795dd4cea2bd7ffdf9dc06e22ffd1be98411742fbb44'; ;; 'aarch64') downloadUrl='https://download.java.net/java/GA/jdk17.0.2/dfd4a8d0985749f896bed50d7138ee7f/8/GPL/openjdk-17.0.2_linux-aarch64_bin.tar.gz'; downloadSha256='13bfd976acf8803f862e82c7113fb0e9311ca5458b1decaef8a09ffd91119fa4'; ;; *) 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
# 2022-04-28 05:54:18 0.00B
/bin/sh -c #(nop) ENV JAVA_VERSION=17.0.2
# 2022-04-28 05:54:18 0.00B
/bin/sh -c #(nop) ENV LANG=C.UTF-8
# 2022-04-28 05:54:18 0.00B
/bin/sh -c #(nop) ENV PATH=/usr/java/openjdk-17/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2022-04-28 05:54:18 0.00B
/bin/sh -c #(nop) ENV JAVA_HOME=/usr/java/openjdk-17
# 2022-04-28 05:53:12 39.67MB
/bin/sh -c set -eux; microdnf install gzip tar binutils freetype fontconfig ; microdnf clean all
# 2022-04-28 04:33:05 0.00B
/bin/sh -c #(nop) CMD ["/bin/bash"]
# 2022-04-28 04:33:04 110.52MB
/bin/sh -c #(nop) ADD file:9893213a9ea238f53ac68d87a3cf2f05d86763688392e5ddb6a2c9b60d3550a6 in /
镜像信息
{
"Id": "sha256:5e28ba2b4cdb3a7c3bd0ee2e635a5f6481682b77eabf8b51a17ea8bfe1c05697",
"RepoTags": [
"openjdk:17",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openjdk:17"
],
"RepoDigests": [
"openjdk@sha256:528707081fdb9562eb819128a9f85ae7fe000e2fbaeaf9f87662e7b3f38cb7d8",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/openjdk@sha256:98f0304b3a3b7c12ce641177a99d1f3be56f532473a528fda38d53d519cafb13"
],
"Parent": "",
"Comment": "",
"Created": "2022-04-27T21:54:28.871350186Z",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "20.10.12",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/java/openjdk-17/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"JAVA_HOME=/usr/java/openjdk-17",
"LANG=C.UTF-8",
"JAVA_VERSION=17.0.2"
],
"Cmd": [
"jshell"
],
"Image": "sha256:abebacc87491dc71242de0d2ce1c4e89a89cc85fd436481bf92f49dee63c76c3",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": null,
"OnBuild": null,
"Labels": null
},
"Architecture": "amd64",
"Os": "linux",
"Size": 471468088,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/0c2c821e53c0ffe71d344d4c6fdd5feb8a3ee346bff1d56330bbed3fb4e43452/diff:/var/lib/docker/overlay2/37c2cd5def8bf867c2d3f5f244f4edd07348a36cf2cc22c78578565b95b7f72e/diff",
"MergedDir": "/var/lib/docker/overlay2/cb21b09d28dd1771ee5636219afe4a7fde3f4742b581ed5ed97ff7abae840b28/merged",
"UpperDir": "/var/lib/docker/overlay2/cb21b09d28dd1771ee5636219afe4a7fde3f4742b581ed5ed97ff7abae840b28/diff",
"WorkDir": "/var/lib/docker/overlay2/cb21b09d28dd1771ee5636219afe4a7fde3f4742b581ed5ed97ff7abae840b28/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:c8dd97366670ed499701572c321fb87ef4f9287308536563a8f1e3fd39ff2166",
"sha256:27ee19dc88f2661d3e42161a9b0b5f4c59089269ee71c9f212c71139ea9edf52",
"sha256:dc9fa3d8b576eada8a4f97ca296d0db470ea7342d544e7e2f3c42715d20c2798"
]
},
"Metadata": {
"LastTagTime": "2024-07-03T21:43:27.029343321+08:00"
}
}