2025-10-09 12:30:39 +0800
636 MB
true
FLINK_ASC_URLhttps://downloads.apache.org/flink/flink-2.1.0/flink-2.1.0-bin-scala_2.12.tgz.asc
FLINK_HOME/opt/flink
FLINK_TGZ_URLhttps://dlcdn.apache.org/flink/flink-2.1.0/flink-2.1.0-bin-scala_2.12.tgz
GOSU_VERSION1.11
GPG_KEY7A14EF9AD986EF0D56B2E73F6AF817E6C59EC690
JAVA_HOME/opt/java/openjdk
JAVA_VERSIONjdk-21.0.8+9
LANGen_US.UTF-8
LANGUAGEen_US:en
LC_ALLen_US.UTF-8
PATH/opt/flink/bin:/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[#000] sha256:af6eca94c8104c8e90d3f9efe59c2b3a02b20aad3d985e31c7cd009ea104c447 - 4.43% (28.2 MB)
[#001] sha256:f7a55b01e3ac44fd314137f34c2089a82e6266936a8a7a2e28ce60499bd91791 - 2.42% (15.4 MB)
[#002] sha256:0a412a34a90e9c7e90943ae8125908b2321b7e4265ad339c99a628dd2d704027 - 7.95% (50.5 MB)
[#003] sha256:b072ed4655dd0505a0227f4b39e45856d97fdad63b0386f018b36594098ce12a - 0.0% (159 Bytes)
[#004] sha256:3b49e514d0b6e3b401a83663a81353ef5944c24666c9373cb6f21fbbb5c9800f - 0.0% (2.23 KB)
[#005] sha256:42b513365d4fcf36bd299342f941cef25883922084d1a7e2755b87c41bc1264a - 0.21% (1.34 MB)
[#006] sha256:d1918f5f086439ce6cf9ff0c279fc2233c75f16fe2a65541e875f54882d0e401 - 0.14% (879 KB)
[#007] sha256:c5db40ff2c35a081df09f7a8ad6630d120001c1f02c0d425616c370bcb368abd - 0.0% (4.51 KB)
[#008] sha256:6608081b6fd9fc2b44673f49884162d402f906ca2beaa1f2e9e897f0d3cac31c - 0.0% (114 Bytes)
[#009] sha256:a5e0f30a99055c19b86314a208527d24c4cd40d12d35e049f885bef6433fa087 - 84.85% (539 MB)
[#010] sha256:001addab9ac2a57b7ca0a08ca839dd26b7c6064c59fc47c4dcfc5e064e6adfbe - 0.0% (2.21 KB)
/bin/sh -c #(nop) ARG RELEASE
2025-08-01 11:04:34 UTC/bin/sh -c #(nop) ARG LAUNCHPAD_BUILD_ARCH
2025-08-01 11:04:34 UTC/bin/sh -c #(nop) LABEL org.opencontainers.image.ref.name=ubuntu
2025-08-01 11:04:34 UTC/bin/sh -c #(nop) LABEL org.opencontainers.image.version=22.04
2025-08-01 11:04:34 UTC/bin/sh -c #(nop) ADD file:32d41b6329e8f89fa4ac92ef97c04b7cfd5e90fb74e1509c3e27d7c91195b7c7 in /
2025-08-01 11:04:34 UTC/bin/sh -c #(nop) CMD ["/bin/bash"]
2025-08-01 11:04:34 UTC (buildkit.dockerfile.v0)ENV JAVA_HOME=/opt/java/openjdk
2025-08-01 11:04:34 UTC (buildkit.dockerfile.v0)ENV PATH=/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2025-08-01 11:04:34 UTC (buildkit.dockerfile.v0)ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8
2025-08-01 11:04:34 UTC (buildkit.dockerfile.v0)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-08-01 11:04:34 UTC (buildkit.dockerfile.v0)ENV JAVA_VERSION=jdk-21.0.8+9
2025-08-01 11:04:34 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; ARCH="$(dpkg --print-architecture)"; case "${ARCH}" in amd64) ESUM='968c283e104059dae86ea1d670672a80170f27a39529d815843ec9c1f0fa2a03'; BINARY_URL='https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.8%2B9/OpenJDK21U-jre_x64_linux_hotspot_21.0.8_9.tar.gz'; ;; arm64) ESUM='f54f6e2a907c4aef95ce6d7388474c6d5d87ae87899dd309561672bcfda9121e'; BINARY_URL='https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.8%2B9/OpenJDK21U-jre_aarch64_linux_hotspot_21.0.8_9.tar.gz'; ;; ppc64el) ESUM='12c351c7a6906ca4ddd3f158cbd9ebf2733bab2dc432dc3f9d5685476b16b7bc'; BINARY_URL='https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.8%2B9/OpenJDK21U-jre_ppc64le_linux_hotspot_21.0.8_9.tar.gz'; ;; s390x) ESUM='7f2f9e48cc0e970b671b4ee8c69bf98002e27e4546e0c33071a2ecac38a8154c'; BINARY_URL='https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.8%2B9/OpenJDK21U-jre_s390x_linux_hotspot_21.0.8_9.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-08-01 11:04:34 UTC (buildkit.dockerfile.v0)RUN /bin/sh -c set -eux; echo "Verifying install ..."; echo "java --version"; java --version; echo "Complete." # buildkit
2025-08-01 11:04:34 UTC (buildkit.dockerfile.v0)COPY --chmod=755 entrypoint.sh /__cacert_entrypoint.sh # buildkit
2025-08-01 11:04:34 UTC (buildkit.dockerfile.v0)ENTRYPOINT ["/__cacert_entrypoint.sh"]
2025-10-09 12:20:33 +0800 (buildkit.dockerfile.v0)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-10-09 12:20:38 +0800 (buildkit.dockerfile.v0)ENV GOSU_VERSION=1.11
2025-10-09 12:20:38 +0800 (buildkit.dockerfile.v0)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-10-09 12:20:38 +0800 (buildkit.dockerfile.v0)ENV FLINK_TGZ_URL=https://dlcdn.apache.org/flink/flink-2.1.0/flink-2.1.0-bin-scala_2.12.tgz FLINK_ASC_URL=https://downloads.apache.org/flink/flink-2.1.0/flink-2.1.0-bin-scala_2.12.tgz.asc GPG_KEY=7A14EF9AD986EF0D56B2E73F6AF817E6C59EC690 CHECK_GPG=true
2025-10-09 12:20:38 +0800 (buildkit.dockerfile.v0)ENV FLINK_HOME=/opt/flink
2025-10-09 12:20:38 +0800 (buildkit.dockerfile.v0)ENV PATH=/opt/flink/bin:/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2025-10-09 12:29:38 +0800 (buildkit.dockerfile.v0)RUN /bin/sh -c groupadd --system --gid=9999 flink && useradd --system --home-dir $FLINK_HOME --uid=9999 --gid=flink flink # buildkit
2025-10-09 12:29:38 +0800 (buildkit.dockerfile.v0)WORKDIR /opt/flink
2025-10-09 12:30:39 +0800 (buildkit.dockerfile.v0)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-10-09 12:30:39 +0800 (buildkit.dockerfile.v0)COPY docker-entrypoint.sh / # buildkit
2025-10-09 12:30:39 +0800 (buildkit.dockerfile.v0)ENTRYPOINT ["/docker-entrypoint.sh"]
2025-10-09 12:30:39 +0800 (buildkit.dockerfile.v0)EXPOSE [6123/tcp 8081/tcp]
2025-10-09 12:30:39 +0800 (buildkit.dockerfile.v0)CMD ["help"]
Please be careful as this will not just delete the reference but also the actual content!
For example when you have latest and v1.2.3 both pointing to the same image
the deletion of latest will also permanently remove v1.2.3.