镜像构建历史
# 2025-03-18 19:29:47 0.00B 设置默认要执行的命令
CMD ["help"]
# 2025-03-18 19:29:47 0.00B 声明容器运行时监听的端口
EXPOSE map[6123/tcp:{} 8081/tcp:{}]
# 2025-03-18 19:29:47 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/docker-entrypoint.sh"]
# 2025-03-18 19:29:47 5.98KB 复制新文件或目录到容器中
COPY docker-entrypoint.sh / # buildkit
# 2025-03-18 19:29:47 610.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/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"; # buildkit
# 2025-03-18 19:28:27 0.00B 设置工作目录为/opt/flink
WORKDIR /opt/flink
# 2025-03-18 19:28:27 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:28:27 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:28:27 0.00B 设置环境变量 FLINK_HOME
ENV FLINK_HOME=/opt/flink
# 2025-03-18 19:28:27 0.00B 设置环境变量 FLINK_TGZ_URL FLINK_ASC_URL GPG_KEY CHECK_GPG
ENV FLINK_TGZ_URL=https://dlcdn.apache.org/flink/flink-2.0.0/flink-2.0.0-bin-scala_2.12.tgz FLINK_ASC_URL=https://downloads.apache.org/flink/flink-2.0.0/flink-2.0.0-bin-scala_2.12.tgz.asc GPG_KEY=F8E419AA0B60C28879E876859DFF40967ABFC5A4 CHECK_GPG=true
# 2025-03-18 19:28:27 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:28:27 0.00B 设置环境变量 GOSU_VERSION
ENV GOSU_VERSION=1.11
# 2025-03-18 19:28:16 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 140.31MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; ARCH="$(dpkg --print-architecture)"; case "${ARCH}" in amd64) ESUM='a4b0015872758aac6a5d17139e952a3951ee536ae6d9a99828823a80a71add56'; BINARY_URL='https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.14%2B7/OpenJDK17U-jre_x64_linux_hotspot_17.0.14_7.tar.gz'; ;; arm64) ESUM='bab3f352fc7144ac1435924f056872d16f4b32c8bcda58b9a77b636eb1c664f4'; BINARY_URL='https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.14%2B7/OpenJDK17U-jre_aarch64_linux_hotspot_17.0.14_7.tar.gz'; ;; armhf) ESUM='7ac439bce4d5ecddb250b31401b1c1a6da2762f51652eafedd53584a0d9e3130'; BINARY_URL='https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.14%2B7/OpenJDK17U-jre_arm_linux_hotspot_17.0.14_7.tar.gz'; ;; ppc64el) ESUM='2a730e9d34cce4d588739b626a034ed68c065a2db61048ee7886be48ec9fe460'; BINARY_URL='https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.14%2B7/OpenJDK17U-jre_ppc64le_linux_hotspot_17.0.14_7.tar.gz'; ;; s390x) ESUM='3887f14f95a14e65a985cfcee6696e01aadee06d3347ab70eb7d6b16ce397238'; BINARY_URL='https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.14%2B7/OpenJDK17U-jre_s390x_linux_hotspot_17.0.14_7.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-17.0.14+7
# 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:a895aaabb05146cfae0e6d81bcdd45405526a2ecb9a945609de6ec7fd0b46ec8",
"RepoTags": [
"apache/flink:2.0.0-scala_2.12-java17",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apache/flink:2.0.0-scala_2.12-java17"
],
"RepoDigests": [
"apache/flink@sha256:6888647edf90d1b14f4e7d518dec8655a79df55fabcbe3faade54a4709f2c7c9",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apache/flink@sha256:9a8ce84784925e3f7344ba2a605567198ceed05fcc6c6e75c1398daa3bc55e85"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-03-18T19:29:47.629879154+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-17.0.14+7",
"GOSU_VERSION=1.11",
"FLINK_TGZ_URL=https://dlcdn.apache.org/flink/flink-2.0.0/flink-2.0.0-bin-scala_2.12.tgz",
"FLINK_ASC_URL=https://downloads.apache.org/flink/flink-2.0.0/flink-2.0.0-bin-scala_2.12.tgz.asc",
"GPG_KEY=F8E419AA0B60C28879E876859DFF40967ABFC5A4",
"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": 882162190,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/8ced5696d727b53063a8f4e64c5825a9f242fe89547f460a7e6c118ee498137f/diff:/var/lib/docker/overlay2/68cfbd24dace19b50df224c02689d87c58e70536475c9529041c261659783f99/diff:/var/lib/docker/overlay2/ca29572f30719330f1a3e5d97903b9facc9475a22065102f2e2d6c403b92f2a6/diff:/var/lib/docker/overlay2/b395f0ffdb02848d8d001faf851f98bb840c3f5fd513382d27b920d446e4c45e/diff:/var/lib/docker/overlay2/5298526cd3005c30a33c22e9d17fc6cbe2a664bf6abc1845dbf97146e5d40b00/diff:/var/lib/docker/overlay2/70454a507bcb03fbbf4fe2e7a89c7ef6dff54e772bc88e2b005bc196ff150f59/diff:/var/lib/docker/overlay2/2d33e5fdcb4bd4e100b1fda335e2c664828343f762378ce4d2ca307e7bdda696/diff:/var/lib/docker/overlay2/5e94dc1e6406841c331c500bb35bb0b2a07f07959cd57c9de78c016bc8d97229/diff:/var/lib/docker/overlay2/afdf12aafe8a312f3aded20e760e82779a07619f4d195e4fe57585df4d5e680d/diff:/var/lib/docker/overlay2/ace3f972cf88bd330727fa9a25fd0df2c3fec1df161ac9102bf9f5739b40b82c/diff",
"MergedDir": "/var/lib/docker/overlay2/296aba0b80e7f84d5e64959b4fc70d081b62c36fb271c0621aa9223693e05b6b/merged",
"UpperDir": "/var/lib/docker/overlay2/296aba0b80e7f84d5e64959b4fc70d081b62c36fb271c0621aa9223693e05b6b/diff",
"WorkDir": "/var/lib/docker/overlay2/296aba0b80e7f84d5e64959b4fc70d081b62c36fb271c0621aa9223693e05b6b/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:270a1170e7e398434ff1b31e17e233f7d7b71aa99a40473615860068e86720af",
"sha256:ffa4ffba3162cc4d41220d898690e6c5efb52fb5d8d40363312eeb3ec3380bb6",
"sha256:aef5f989e628b1b21af56f021cefe8daed8e997c6784dadaab8194e59159c43f",
"sha256:ca55ecdc5962a3faf6b940c0be1657c2a030591fddfdc88f2f8c4a1e9d50e762",
"sha256:bb0c083cd5a3966b607efab6c291ce9b56530606eb7a446a32de2068819b6d5b",
"sha256:de88ad5a89122fd51e75b378df4d98f3d3076420fce7d70d2a08a0eaa915fb6d",
"sha256:997e8d1572666ce290206b0066a174b6b55b95b4804fd42ccbd25b6abd961d7b",
"sha256:f2b1c75f5bff4ada5e0be00d0881f90990cea390f537651ec03d82636cacd8ce",
"sha256:a21f8d3c3df6e797e13495b93986e37964447f11a71c426d0fd7b6c5f56a0e6d",
"sha256:fe77a6aebb6f75040507bab8a3fbd555b98a902fd166fac336d1284714f05159",
"sha256:dd20da9ff75664c8d1a19b81eb677e784cca5382f5ebd2fc0b4a14da13b72ec8"
]
},
"Metadata": {
"LastTagTime": "2025-04-02T15:59:21.654459336+08:00"
}
}