镜像构建历史
# 2024-10-22 18:01:18 0.00B 设置默认要执行的命令
CMD ["help"]
# 2024-10-22 18:01:18 0.00B 声明容器运行时监听的端口
EXPOSE map[6123/tcp:{} 8081/tcp:{}]
# 2024-10-22 18:01:18 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/docker-entrypoint.sh"]
# 2024-10-22 18:01:18 5.98KB 复制新文件或目录到容器中
COPY docker-entrypoint.sh / # buildkit
# 2024-10-22 18:01:18 526.78MB 执行命令并创建新的镜像层
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
# 2024-10-22 17:58:53 0.00B 设置工作目录为/opt/flink
WORKDIR /opt/flink
# 2024-10-22 17:58:53 3.24MB 执行命令并创建新的镜像层
RUN /bin/sh -c groupadd --system --gid=9999 flink && useradd --system --home-dir $FLINK_HOME --uid=9999 --gid=flink flink # buildkit
# 2024-10-22 17:58:52 0.00B 设置环境变量 PATH
ENV PATH=/opt/flink/bin:/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2024-10-22 17:58:52 0.00B 设置环境变量 FLINK_HOME
ENV FLINK_HOME=/opt/flink
# 2024-10-22 17:58:52 0.00B 设置环境变量 FLINK_TGZ_URL FLINK_ASC_URL GPG_KEY CHECK_GPG
ENV FLINK_TGZ_URL=https://dlcdn.apache.org/flink/flink-1.20.0/flink-1.20.0-bin-scala_2.12.tgz FLINK_ASC_URL=https://downloads.apache.org/flink/flink-1.20.0/flink-1.20.0-bin-scala_2.12.tgz.asc GPG_KEY=B2D64016B940A7E0B9B72E0D7D0528B28037D8BC CHECK_GPG=true
# 2024-10-22 17:58:52 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
# 2024-10-22 17:58:52 0.00B 设置环境变量 GOSU_VERSION
ENV GOSU_VERSION=1.11
# 2024-10-22 17:57:53 11.57MB 执行命令并创建新的镜像层
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
# 2024-08-22 15:58:33 0.00B 配置容器启动时运行的命令
ENTRYPOINT ["/__cacert_entrypoint.sh"]
# 2024-08-22 15:58:33 4.74KB 复制新文件或目录到容器中
COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh # buildkit
# 2024-08-22 15:58:33 0.00B 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; echo "Verifying install ..."; echo "java --version"; java --version; echo "Complete." # buildkit
# 2024-08-22 15:58:33 141.04MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; ARCH="$(dpkg --print-architecture)"; case "${ARCH}" in amd64) ESUM='0e8088d7a3a7496faba7ac8787db09dc0264c2bc6f568ea8024fd775a783e13c'; BINARY_URL='https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jre_x64_linux_hotspot_17.0.12_7.tar.gz'; ;; arm64) ESUM='9dfe4c56463690ae67d22268980d8861eb46b907d7914f8f2e6fc7b25778c8ec'; BINARY_URL='https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jre_aarch64_linux_hotspot_17.0.12_7.tar.gz'; ;; armhf) ESUM='f093094abe0cb2bb5a255d8180810030321073520541f289926c4682eda76136'; BINARY_URL='https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jre_arm_linux_hotspot_17.0.12_7.tar.gz'; ;; ppc64el) ESUM='2759c48e1e56117871b04c851af18b92b6992cf67590f602949b96c3cff15c73'; BINARY_URL='https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jre_ppc64le_linux_hotspot_17.0.12_7.tar.gz'; ;; s390x) ESUM='cb1a3857d10e9353862761ce3c6b45573a736ea95cea44bc02dc3a703e57255a'; BINARY_URL='https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jre_s390x_linux_hotspot_17.0.12_7.tar.gz'; ;; *) echo "Unsupported arch: ${ARCH}"; exit 1; ;; esac; wget --progress=dot:giga -O /tmp/openjdk.tar.gz ${BINARY_URL}; 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 ${JAVA_HOME}/lib/src.zip; find "$JAVA_HOME/lib" -name '*.so' -exec dirname '{}' ';' | sort -u > /etc/ld.so.conf.d/docker-openjdk.conf; ldconfig; java -Xshare:dump; # buildkit
# 2024-08-22 15:58:33 0.00B 设置环境变量 JAVA_VERSION
ENV JAVA_VERSION=jdk-17.0.12+7
# 2024-08-22 15:58:33 36.12MB 执行命令并创建新的镜像层
RUN /bin/sh -c set -eux; apt-get update; DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends curl wget 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
# 2024-08-22 15:58:33 0.00B 设置环境变量 LANG LANGUAGE LC_ALL
ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
# 2024-08-22 15:58:33 0.00B 设置环境变量 PATH
ENV PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
# 2024-08-22 15:58:33 0.00B 设置环境变量 JAVA_HOME
ENV JAVA_HOME=/opt/java/openjdk
# 2024-08-22 15:58:33 0.00B
/bin/sh -c #(nop) CMD ["/bin/bash"]
# 2024-08-22 15:58:33 77.86MB
/bin/sh -c #(nop) ADD file:ebe009f86035c175ba244badd298a2582914415cf62783d510eab3a311a5d4e1 in /
# 2024-08-22 15:58:33 0.00B
/bin/sh -c #(nop) LABEL org.opencontainers.image.version=22.04
# 2024-08-22 15:58:33 0.00B
/bin/sh -c #(nop) LABEL org.opencontainers.image.ref.name=ubuntu
# 2024-08-22 15:58:33 0.00B
/bin/sh -c #(nop) ARG LAUNCHPAD_BUILD_ARCH
# 2024-08-22 15:58:33 0.00B
/bin/sh -c #(nop) ARG RELEASE
镜像信息
{
"Id": "sha256:2419cabea0d48be51b4eb1c9f441f3c1ec6bea95018bf33a1ef386fda606da83",
"RepoTags": [
"apache/flink:1.20.0-java17",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apache/flink:1.20.0-java17"
],
"RepoDigests": [
"apache/flink@sha256:082fe9368101e5920d76bfc0e363405d947054aa870a617785b3936bddf493f1",
"swr.cn-north-4.myhuaweicloud.com/ddn-k8s/docker.io/apache/flink@sha256:168b08f173e197c3d085cc65e56c70ece0c375f621ddc1743830a9f09306fc71"
],
"Parent": "",
"Comment": "buildkit.dockerfile.v0",
"Created": "2024-10-22T18:01:18.594788926+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.12+7",
"GOSU_VERSION=1.11",
"FLINK_TGZ_URL=https://dlcdn.apache.org/flink/flink-1.20.0/flink-1.20.0-bin-scala_2.12.tgz",
"FLINK_ASC_URL=https://downloads.apache.org/flink/flink-1.20.0/flink-1.20.0-bin-scala_2.12.tgz.asc",
"GPG_KEY=B2D64016B940A7E0B9B72E0D7D0528B28037D8BC",
"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": 798926026,
"GraphDriver": {
"Data": {
"LowerDir": "/var/lib/docker/overlay2/6f4453348ed397be43f3e50fdc4b72efaf85c4d1461cbd34f3831a57ea63d32f/diff:/var/lib/docker/overlay2/be15edeabe2ee4d96dc7a87c2c67f0d4fc2e3762242166ef5005e3c0b833d23c/diff:/var/lib/docker/overlay2/3e7cfd40e90e56e4a4ff8afcf3690bef21d6fa0f16ece9ec3e474e84784e14c5/diff:/var/lib/docker/overlay2/0840125831ac1870fdb32f81411c85059ee783c87bd8f9e0d575b2f42ea33eea/diff:/var/lib/docker/overlay2/ebe631fe1c67822cb21a85248614a0bf83cda1e73d9ede526d2c6526d9e29f11/diff:/var/lib/docker/overlay2/126059905d746c8bc35ec90b3ae3c84e3a81315e5b4436c0f8d27248e1298cbe/diff:/var/lib/docker/overlay2/5e179e43012043306ecc835e853320bb4435b1a57dfc155c3fae9fe3102b43bf/diff:/var/lib/docker/overlay2/0ea642b84a3b0822411a09624699151b587c346c8337bc543e62bc4b22ad4448/diff:/var/lib/docker/overlay2/a8bd0560594df8f0a42f430d806cb087d2014cdc1acfb1bbb5aea8dc4bd74c25/diff:/var/lib/docker/overlay2/4cfb2ff6eb670d08d805fcc326973c76acabc424b2f6ce5f1903149f34750452/diff",
"MergedDir": "/var/lib/docker/overlay2/e38cbfaab7c8a88086687df55184652320b54028618bb2cca3dba4b3756eb360/merged",
"UpperDir": "/var/lib/docker/overlay2/e38cbfaab7c8a88086687df55184652320b54028618bb2cca3dba4b3756eb360/diff",
"WorkDir": "/var/lib/docker/overlay2/e38cbfaab7c8a88086687df55184652320b54028618bb2cca3dba4b3756eb360/work"
},
"Name": "overlay2"
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:2573e0d8158209ed54ab25c87bcdcb00bd3d2539246960a3d592a1c599d70465",
"sha256:549d6419fbf160a0d4890a8dcfb2a463d9dc575387fefedb4aa383e7a05ca435",
"sha256:347ab6b4533ef4c8cf3e3a6c411c6390f9affadc2b6710b802d9bf64c28515be",
"sha256:6c7e7ce4ab695a2936e61a49862f616a6208ced311007984228cec02e65a9062",
"sha256:ee5629438acafdd3df60dedd18160c043aaab544c8c142885192d9c9491d5cfe",
"sha256:24449db7dd8823252f4d720dd62460f2b1e06169e7eeede56332a099d698542d",
"sha256:168accaf0a3e977fb977dbffee4d1cf67afb6c6af1b09a0bc9dd5aafd0c1ca75",
"sha256:22a944736185f6a1b9ed8e615ecde807d0187bba79281a247c70b3f96d5a6879",
"sha256:f8df16fcb61fd26eaadfe27c9f6317bcdbfc439be97460cbe97be5c707ac3671",
"sha256:7a79c49e39f2eacac3b616d41f592f63b503640163dbe5f11061cf132a082210",
"sha256:daccd666f7ca6b9d50c1cb0588d187658a8cd2a518a4f66c959747ab88adb59d"
]
},
"Metadata": {
"LastTagTime": "2024-11-22T21:58:47.060889678+08:00"
}
}