镜像构建历史
# 2025-03-18 20:42:05 0.00B 设置默认要执行的命令
CMD ["help"]
# 2025-03-18 20:42:05 0.00B 声明容器运行时监听的端口
EXPOSE map[6123/tcp:{} 8081/tcp:{}]
# 2025-03-18 20:42:05 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/docker-entrypoint.sh"]
# 2025-03-18 20:42:05 5.98KB 复制新文件或目录到容器中
COPY docker-entrypoint.sh / # buildkit
# 2025-03-18 20:42:05 525.71MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -ex; wget -nv -O flink.tgz "$FLINK_TGZ_URL"; if [ "$CHECK_GPG" = "true" ]; then wget -nv -O flink.tgz.asc "$FLINK_ASC_URL"; export GNUPGHOME="$(mktemp -d)"; for server in ha.pool.sks-keyservers.net $(shuf -e hkp://p80.pool.sks-keyservers.net:80 keyserver.ubuntu.com hkp://keyserver.ubuntu.com:80 pgp.mit.edu) ; do gpg --batch --keyserver "$server" --recv-keys "$GPG_KEY" && break || : ; done && gpg --batch --verify flink.tgz.asc flink.tgz; gpgconf --kill all; rm -rf "$GNUPGHOME" flink.tgz.asc; fi; tar -xf flink.tgz --strip-components=1; rm flink.tgz; chown -R flink:flink .; CONF_FILE="$FLINK_HOME/conf/flink-conf.yaml"; if [ ! -e "$FLINK_HOME/conf/flink-conf.yaml" ]; then CONF_FILE="${FLINK_HOME}/conf/config.yaml"; /bin/bash "$FLINK_HOME/bin/config-parser-utils.sh" "${FLINK_HOME}/conf" "${FLINK_HOME}/bin" "${FLINK_HOME}/lib" "-repKV" "rest.address,localhost,0.0.0.0" "-repKV" "rest.bind-address,localhost,0.0.0.0" "-repKV" "jobmanager.bind-host,localhost,0.0.0.0" "-repKV" "taskmanager.bind-host,localhost,0.0.0.0" "-rmKV" "taskmanager.host=localhost"; else sed -i 's/rest.address: localhost/rest.address: 0.0.0.0/g' "$CONF_FILE"; sed -i 's/rest.bind-address: localhost/rest.bind-address: 0.0.0.0/g' "$CONF_FILE"; sed -i 's/jobmanager.bind-host: localhost/jobmanager.bind-host: 0.0.0.0/g' "$CONF_FILE"; sed -i 's/taskmanager.bind-host: localhost/taskmanager.bind-host: 0.0.0.0/g' "$CONF_FILE"; sed -i '/taskmanager.host: localhost/d' "$CONF_FILE"; fi; # buildkit
# 2025-03-18 20:41:09 0.00B 设置工作目录为/opt/flink
WORKDIR /opt/flink
# 2025-03-18 20:41:09 3.24MB 执行命令并创建新的镜像层
RUN /bin/sh -c groupadd --system --gid=9999 flink && useradd --system --home-dir $FLINK_HOME --uid=9999 --gid=flink flink # buildkit
# 2025-03-18 19:53:59 0.00B 设置环境变量 PATH
ENV PATH=/opt/flink/bin:/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2025-03-18 19:53:59 0.00B 设置环境变量 FLINK_HOME
ENV FLINK_HOME=/opt/flink
# 2025-03-18 19:53:59 0.00B 设置环境变量 FLINK_TGZ_URL FLINK_ASC_URL GPG_KEY CHECK_GPG
ENV FLINK_TGZ_URL=https://dlcdn.apache.org/flink/flink-1.20.1/flink-1.20.1-bin-scala_2.12.tgz FLINK_ASC_URL=https://downloads.apache.org/flink/flink-1.20.1/flink-1.20.1-bin-scala_2.12.tgz.asc GPG_KEY=5575E80D59BBB73C15A479B88C1FC56D16B0029D CHECK_GPG=true
# 2025-03-18 19:53:59 2.30MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -ex; wget -nv -O /usr/local/bin/gosu "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture)"; wget -nv -O /usr/local/bin/gosu.asc "https://github.com/tianon/gosu/releases/download/$GOSU_VERSION/gosu-$(dpkg --print-architecture).asc"; export GNUPGHOME="$(mktemp -d)"; for server in ha.pool.sks-keyservers.net $(shuf -e hkp://p80.pool.sks-keyservers.net:80 keyserver.ubuntu.com hkp://keyserver.ubuntu.com:80 pgp.mit.edu) ; do gpg --batch --keyserver "$server" --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 && break || : ; done && gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; gpgconf --kill all; rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; chmod +x /usr/local/bin/gosu; gosu nobody true # buildkit
# 2025-03-18 19:53:59 0.00B 设置环境变量 GOSU_VERSION
ENV GOSU_VERSION=1.11
# 2025-03-18 19:53:55 4.84MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -ex; apt-get update; apt-get -y install gpg libsnappy1v5 gettext-base libjemalloc-dev; rm -rf /var/lib/apt/lists/* # buildkit
# 2025-01-30 22:32:57 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/__cacert_entrypoint.sh"]
# 2025-01-30 22:32:57 5.31KB 复制新文件或目录到容器中
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh # buildkit
# 2025-01-30 22:32:57 0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; echo "Verifying install ..."; echo "java --version"; java --version; echo "Complete." # buildkit
# 2025-01-30 22:32:57 141.00MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; ARCH="$(dpkg --print-architecture)"; case "${ARCH}" in amd64) ESUM='d26c566a7010d1303d3979b6f076e7911b49419a609c9e4d81f27262bf47f87c'; BINARY_URL='https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.26%2B4/OpenJDK11U-jre_x64_linux_hotspot_11.0.26_4.tar.gz'; ;; arm64) ESUM='4ececb5c229763107e9e4acf3b7035db38cf18a98a47176fa5ed1be3f3d15518'; BINARY_URL='https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.26%2B4/OpenJDK11U-jre_aarch64_linux_hotspot_11.0.26_4.tar.gz'; ;; armhf) ESUM='e4a00a3ea318a63ba97236633f34c8a5477f6cdb643cf6883788840818110f5f'; BINARY_URL='https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.26%2B4/OpenJDK11U-jre_arm_linux_hotspot_11.0.26_4.tar.gz'; ;; ppc64el) ESUM='69b38f0dde128d8c606012335cd60f1f55afa09b4135582188943bee699ebf03'; BINARY_URL='https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.26%2B4/OpenJDK11U-jre_ppc64le_linux_hotspot_11.0.26_4.tar.gz'; ;; s390x) ESUM='5d9552b1fb699da6052cbd600e750dd8ff48a89a384d537919a3c999257979dc'; BINARY_URL='https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.26%2B4/OpenJDK11U-jre_s390x_linux_hotspot_11.0.26_4.tar.gz'; ;; *) echo "Unsupported arch: ${ARCH}"; exit 1; ;; esac; wget --progress=dot:giga -O /tmp/openjdk.tar.gz ${BINARY_URL}; wget --progress=dot:giga -O /tmp/openjdk.tar.gz.sig ${BINARY_URL}.sig; export GNUPGHOME="$(mktemp -d)"; gpg --batch --keyserver keyserver.ubuntu.com --recv-keys 3B04D753C9050D9A5D343F39843C48A565F8F04B; gpg --batch --verify /tmp/openjdk.tar.gz.sig /tmp/openjdk.tar.gz; rm -rf "${GNUPGHOME}" /tmp/openjdk.tar.gz.sig; echo "${ESUM} */tmp/openjdk.tar.gz" | sha256sum -c -; mkdir -p "$JAVA_HOME"; tar --extract --file /tmp/openjdk.tar.gz --directory "$JAVA_HOME" --strip-components 1 --no-same-owner ; rm -f /tmp/openjdk.tar.gz; find "$JAVA_HOME/lib" -name '*.so' -exec dirname '{}' ';' | sort -u > /etc/ld.so.conf.d/docker-openjdk.conf; ldconfig; java -Xshare:dump; # buildkit
# 2025-01-30 22:32:57 0.00B 设置环境变量 JAVA_VERSION
ENV JAVA_VERSION=jdk-11.0.26+4
# 2025-01-30 22:32:57 42.90MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; apt-get update; DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends curl wget gnupg fontconfig ca-certificates p11-kit tzdata locales ; echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen; locale-gen en_US.UTF-8; rm -rf /var/lib/apt/lists/* # buildkit
# 2025-01-30 22:32:57 0.00B 设置环境变量 LANG LANGUAGE LC_ALL
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
# 2025-01-30 22:32:57 0.00B 设置环境变量 PATH
ENV PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2025-01-30 22:32:57 0.00B 设置环境变量 JAVA_HOME
ENV JAVA_HOME=/opt/java/openjdk
# 2025-01-26 13:31:11 0.00B
/bin/sh -c #(nop) CMD ["/bin/bash"]
# 2025-01-26 13:31:10 77.86MB
/bin/sh -c #(nop) ADD file:1b6c8c9518be42fa2afe5e241ca31677fce58d27cdfa88baa91a65a259be3637 in /
# 2025-01-26 13:31:07 0.00B
/bin/sh -c #(nop) LABEL org.opencontainers.image.version=22.04
# 2025-01-26 13:31:07 0.00B
/bin/sh -c #(nop) LABEL org.opencontainers.image.ref.name=ubuntu
# 2025-01-26 13:31:07 0.00B
/bin/sh -c #(nop) ARG LAUNCHPAD_BUILD_ARCH
# 2025-01-26 13:31:07 0.00B
/bin/sh -c #(nop) ARG RELEASE
镜像信息
{
"Id": "sha256:cbe27da3e74ecd4fa13ca5a51adff2d7dd344c78ce4dd4d0fe7ec8ca4c7bd6b8",
"RepoTags": [
"apache/flink:1.20.1-scala_2.12-java11",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apache/flink:1.20.1-scala_2.12-java11"
],
"RepoDigests": [
"apache/flink@sha256:aa9c2c13c275a0d617cad2166e6f2f82c1081d7fdd87d32cf74da5a6b756418b",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apache/flink@sha256:ea8c44eadb32d779afc7e81d541df6ca048e3efc88ec8b796487960172acae12"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-03-18T20:42:05.163161878+08:00",
"Container": "",
"ContainerConfig": null,
"DockerVersion": "",
"Author": "",
"Config": {
"Hostname": "",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"6123/tcp": {},
"8081/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/opt/flink/bin:/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"JAVA_HOME=/opt/java/openjdk",
"LANG=en_US.UTF-8",
"LANGUAGE=en_US:en",
"LC_ALL=en_US.UTF-8",
"JAVA_VERSION=jdk-11.0.26+4",
"GOSU_VERSION=1.11",
"FLINK_TGZ_URL=https://dlcdn.apache.org/flink/flink-1.20.1/flink-1.20.1-bin-scala_2.12.tgz",
"FLINK_ASC_URL=https://downloads.apache.org/flink/flink-1.20.1/flink-1.20.1-bin-scala_2.12.tgz.asc",
"GPG_KEY=5575E80D59BBB73C15A479B88C1FC56D16B0029D",
"CHECK_GPG=true",
"FLINK_HOME=/opt/flink"
],
"Cmd": [
"help"
],
"ArgsEscaped": true,
"Image": "",
"Volumes": null,
"WorkingDir": "/opt/flink",
"Entrypoint": [
"/docker-entrypoint.sh"
],
"OnBuild": null,
"Labels": {
"org.opencontainers.image.ref.name": "ubuntu",
"org.opencontainers.image.version": "22.04"
}
},
"Architecture": "amd64",
"Os": "linux",
"Size": 797855786,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/a30633eb9f9eb33628f87aef65111f55472e6099c834ef2ab3659651be502dd4/diff:/var/lib/docker/overlay2/84cd310361e29e2dc6a05021a2c16b8d884c27a24e37910c846b2f9b8f2a116a/diff:/var/lib/docker/overlay2/d4d8e5fd2b08251f79f3b8184839b5f49883b10d68eed8662379511593eb8e1d/diff:/var/lib/docker/overlay2/18824e3e940ec7781c76fe1087cc4fa6c852a832be8b2793b03d6347c7cb487e/diff:/var/lib/docker/overlay2/edffbdc4ab1c6dace815152bfc7d8c40c696b6280c8e089ec3f084db087aa4dc/diff:/var/lib/docker/overlay2/e80f0557d37d5e4f2acaa652974f5b13274ca1093fc904de828fd45334b9fc69/diff:/var/lib/docker/overlay2/3993b1e3cfcafb7f61e7e368ba10e71b60a6bd67a616ca30b65b04eca29e65b5/diff:/var/lib/docker/overlay2/ebd6b2874f9da19fe2cc5ef361f4696e5b2063896280822eb09c64377fa74a1c/diff:/var/lib/docker/overlay2/3d57ba0361bc66f927d29e6f322ccdec80fed01c7479268b3026b4ba82e9617e/diff:/var/lib/docker/overlay2/ace3f972cf88bd330727fa9a25fd0df2c3fec1df161ac9102bf9f5739b40b82c/diff",
"MergedDir": "/var/lib/docker/overlay2/0df926fe6cb6e8bf245fb6a3dc224d193bdbe94ad1d3a2267cd7fbe80ec4b4db/merged",
"UpperDir": "/var/lib/docker/overlay2/0df926fe6cb6e8bf245fb6a3dc224d193bdbe94ad1d3a2267cd7fbe80ec4b4db/diff",
"WorkDir": "/var/lib/docker/overlay2/0df926fe6cb6e8bf245fb6a3dc224d193bdbe94ad1d3a2267cd7fbe80ec4b4db/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:270a1170e7e398434ff1b31e17e233f7d7b71aa99a40473615860068e86720af",
"sha256:5e41c8687e796153526944cd81682a207e79816f0d85f8905c2144faf29391e2",
"sha256:f1f4dc9155bde7e9f446f327891114756476f5f7ed5545a926af684f88093e89",
"sha256:c4c0b62ea5bf06172e6c50876a38c125c61d5fb47d4c2d2ff9f8887a021caf86",
"sha256:d2e07a5d820ed71d5eb3c898089293a1d366d54bd28dde3716af33097df31fb6",
"sha256:bc945e38c5bf199262b7402b58329b7a4815a336ba1f06abe438c7972ec67f92",
"sha256:b39a1290c10e58543837e7b0690c7d226079a40576e0a1739b7746a09d3802fb",
"sha256:10b12d1ad4217cf521b248ea72b63d957fcdac15470bb80bffff2e6ca9472cb5",
"sha256:419d9adfe9120fac34d1f49ea173d93961a85939d7a73ecd48d5b1cc92e7dfe9",
"sha256:27da638f2dc584e162ad6be8749c24553dd665c887dbcfc40fda1d409f9760b3",
"sha256:dd20da9ff75664c8d1a19b81eb677e784cca5382f5ebd2fc0b4a14da13b72ec8"
]
},
"Metadata": {
"LastTagTime": "2025-04-02T16:10:41.484596812+08:00"
}
}