镜像构建历史
# 2025-03-18 20:55:22 0.00B 设置默认要执行的命令
CMD ["help"]
# 2025-03-18 20:55:22 0.00B 声明容器运行时监听的端口
EXPOSE map[6123/tcp:{} 8081/tcp:{}]
# 2025-03-18 20:55:22 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/docker-entrypoint.sh"]
# 2025-03-18 20:55:22 5.98KB 复制新文件或目录到容器中
COPY docker-entrypoint.sh / # buildkit
# 2025-03-18 20:55:22 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:54:27 0.00B 设置工作目录为/opt/flink
WORKDIR /opt/flink
# 2025-03-18 20:54: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 20:54: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 20:54:27 0.00B 设置环境变量 FLINK_HOME
ENV FLINK_HOME=/opt/flink
# 2025-03-18 20:54:27 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 20:54: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 20:54:27 0.00B 设置环境变量 GOSU_VERSION
ENV GOSU_VERSION=1.11
# 2025-03-18 20:54:24 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 108.84MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; ARCH="$(dpkg --print-architecture)"; case "${ARCH}" in amd64) ESUM='730fe33b1fc1f7da1e325d007b475d25a063850a167b548ea4bf689d4fcd867d'; BINARY_URL='https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u442-b06/OpenJDK8U-jre_x64_linux_hotspot_8u442b06.tar.gz'; ;; arm64) ESUM='730ed649ee973b7408cf7107e90576b67e8ed4b3aebb9e3e8a1056151f373152'; BINARY_URL='https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u442-b06/OpenJDK8U-jre_aarch64_linux_hotspot_8u442b06.tar.gz'; ;; armhf) ESUM='055c47c5c1dfe8c9c135d87fed7a3745c17374618bc8d5acb9316d1b812c0e6d'; BINARY_URL='https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u442-b06/OpenJDK8U-jre_arm_linux_hotspot_8u442b06.tar.gz'; apt-get update; DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends libatomic1; rm -rf /var/lib/apt/lists/*; ;; ppc64el) ESUM='812ebf110f1d1cfc26a135368850064f96689e7918aa6bbac1c8f210fad5752f'; BINARY_URL='https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u442-b06/OpenJDK8U-jre_ppc64le_linux_hotspot_8u442b06.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; # buildkit
# 2025-01-30 22:32:57 0.00B 设置环境变量 JAVA_VERSION
ENV JAVA_VERSION=jdk8u442-b06
# 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:2e7759ec303bb6f2bcf631d294880d8e0d2d42c0cef915e96384c436adf32bed",
"RepoTags": [
"apache/flink:1.20.1-scala_2.12-java8",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apache/flink:1.20.1-scala_2.12-java8"
],
"RepoDigests": [
"apache/flink@sha256:b3b2967f6e582f37d47b0641baafc1303dfd58ba75c1b2d62e047322fb1ab4cf",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apache/flink@sha256:568b18512838470f4edb079aa6986e2d9c81a442c13fa525538a3b623eb02bdb"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2025-03-18T20:55:22.479874473+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=jdk8u442-b06",
"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": 765695634,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/134d28e62b68e767eb98caa1ee1c89332fca5fef6dd76e2f23c2bc56f1985b39/diff:/var/lib/docker/overlay2/df861c7c7f33ba4c2535ede96e19d66718006408427f2c6bb17ee527bf706b84/diff:/var/lib/docker/overlay2/15d924e0e2513d6ce32122ed0589a713cc6c8d9eef0dc0788800468d9949d8c8/diff:/var/lib/docker/overlay2/65edd71d4fb37662f8f61cbc0761b4e8547123e6bbac38d852d2a0b351359d5d/diff:/var/lib/docker/overlay2/33ebd0b5517e2b464b534b66cae2117c42da6df68c73fd15e4c61c79d8d3679f/diff:/var/lib/docker/overlay2/462eced5ad71f8bfd08c581ace4a03bb8915765e64120bf6319e9a53fa9f18a6/diff:/var/lib/docker/overlay2/f9cf32b52d46c3a87fbcf68cc91a17615c7ff611178da4f49ab873e22e7f004c/diff:/var/lib/docker/overlay2/ac051922e5a77c928631c4b146ae0158530800dad40bdfbf4621bb41353d51e7/diff:/var/lib/docker/overlay2/c21f26fb4502cdffc4e0440e9fe564a7dea5a6c3e589925b25d3caf7aa5638a4/diff:/var/lib/docker/overlay2/ace3f972cf88bd330727fa9a25fd0df2c3fec1df161ac9102bf9f5739b40b82c/diff",
"MergedDir": "/var/lib/docker/overlay2/e758957480f552e19826023bbbc63073a0a0c22d0a17c636ca696e2bae924845/merged",
"UpperDir": "/var/lib/docker/overlay2/e758957480f552e19826023bbbc63073a0a0c22d0a17c636ca696e2bae924845/diff",
"WorkDir": "/var/lib/docker/overlay2/e758957480f552e19826023bbbc63073a0a0c22d0a17c636ca696e2bae924845/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:270a1170e7e398434ff1b31e17e233f7d7b71aa99a40473615860068e86720af",
"sha256:cddfdb38b57be05a5236126febb008424fa0009160faa43da63f15c437783bbd",
"sha256:276ec6cf47b157061095f6ce08f465f39d6ab5d0ebb176bc4183818542b656ef",
"sha256:64fc4e3c1ecd0351484f6740061a2a41112c7f345918dedd38733fd2b2457536",
"sha256:e219f242d42ca07208f21b8c5e66539d2b70a90a04a8d957be20a14bf3210b0f",
"sha256:012cee81d21ae35a367fa9d9868c504dc4e29852469a35b4b658790eb4febb7d",
"sha256:97c0b016de2a4768bca35441a1ba20312657a4c2ef714817d02982272841dccf",
"sha256:de2013ea0ba22846d764fd5fcb55ab9dcc685916f79423f8721613744982979d",
"sha256:58837233717e9b3edb3e0fa396be8dae34e82cc5c98ca739c8bae39da8636c92",
"sha256:a1177c21e2507095db5b61d2571337d27f157f5fd18318dd980ab5805ab5d5a5",
"sha256:dd20da9ff75664c8d1a19b81eb677e784cca5382f5ebd2fc0b4a14da13b72ec8"
]
},
"Metadata": {
"LastTagTime": "2025-04-02T16:07:06.087830033+08:00"
}
}