Apache Kafka 4.4.0 build recipe
The recipe ReadyStack built readystack/kafka:4.4.0-CE-ubuntu24.04-r2 from: the upstream source it starts from, every pinned input, and the files that run the build with the network off. Public here: the source and commit, the pinned inputs, all 25 recipe files with their sizes and SHA-256, 9 of them public in full or in part, and the opening lines of the Dockerfile and build script.
The whole recipe
Free accountAn account is an email address, a username and a password: no card, no donation. It opens all 25 recipe files; the build kit itself keeps its own terms.
Upstream source
Publicgithub.com/apache/kafka (4.4.0-rc4) at 1156b2752aaa28eafc0b4c4d387e63356793268d
Fetched once, with the network on, by the vendor step (Dockerfile.vendor) when the kit was made; the offline build uses the kit's vendored copies:
- git https://github.com/apache/kafka 4.4.0-rc4
Pinned inputs
As JSON- Base imageeclipse-temurin:25-jdk-noble@sha256:589ff4cc3f71aab462e7048a47a0d10edf57fbccde3fceea2281e610bf5880b4
- Base imageeclipse-temurin:25-jre-noble@sha256:ce8543ddd3070ccbeaac2106a74c9387ddeb8d47a1c43348345715c1ef245c7f
- BuildKitmoby/buildkit:v0.31.2
sha256:e0e67ea9c4bb07bdef683e29f70f3b623d1eb9c82274a9ec04e6bb0511449fb0 - Build method
source-rebuild-java - SOURCE_DATE_EPOCH1791303144 (2026-10-06T16:12:24Z)
- Target digest (linux/amd64)sha256:d3f92612901df9e1b5427c406b7b4ddf8f46dcc56501ef558e7888fdd585eec4
- Target config digestsha256:7ffd1a2154b549b218e84ea7666be2404f4a9f1d561e9020df6636eadb5a9bef
- Checksummed kit files23,431 (CHECKSUMS.sha256)
Dockerfile Dockerfile.offline.pinned
52 lines · 5.5 KB# GENERATED L-009 hermetic Java build (--network=none, SBOM+SLSA-attestation-producing).
# Pinned bases; vendored source + gradle cache(s) + toolchain/runtime debs from Dockerfile.vendor.
FROM eclipse-temurin:25-jdk-noble@sha256:589ff4cc3f71aab462e7048a47a0d10edf57fbccde3fceea2281e610bf5880b4 AS jbuild
# dpkg-install the vendored build toolchain (git/unzip) — no apt, fully offline.
RUN --mount=type=bind,source=vendored/build-debs,target=/tmp/bdebs \
set --; for f in /tmp/bdebs/*.deb; do [ -e "$f" ] && set -- "$@" "$f"; done; \
for pass in 1 2 3 4 5; do [ $# -eq 0 ] || dpkg -i --skip-same-version "$@" >/dev/null 2>&1 && break; done; \
dpkg --configure -a && bad= && for d in "$@"; do p=$(dpkg-deb -f "$d" Package) v=$(dpkg-deb -f "$d" Version); \
case "$(dpkg-query -W -f='${Version} ${db:Status-Abbrev}' "$p" 2>/dev/null)" in "$v ii"*) ;; *) bad="$bad $p=$v" ;; esac; done && \
{ [ -z "$bad" ] || { echo "vendored debs not installed at their vendored version:$bad" >&2; false; }; }
WORKDIR /src
COPY vendored/kafka-src/ .
COPY vendored/caches/gradle-home/ /gradle-home/
ENV GRADLE_USER_HOME="/gradle-home"
ENV GRADLE_OPTS="-Dorg.gradle.daemon=false"
RUN GH="${GRADLE_USER_HOME:-/gradle-home}"; rm -rf "$GH"/caches/*/transforms "$GH"/caches/*/transforms-* "$GH"/caches/*/groovy-dsl "$GH"/caches/*/kotlin-dsl "$GH"/caches/*/generated-gradle-jars "$GH"/caches/*/dependencies-accessors "$GH"/caches/jars-* "$GH"/caches/build-cache-* 2>/dev/null; true
RUN mkdir -p "${GRADLE_USER_HOME:-/root/.gradle}/init.d" && printf '%s\n' 'allprojects { configurations.all { resolutionStrategy { force("at.yawk.lz4:lz4-java:1.11.4") } } }' > "${GRADLE_USER_HOME:-/root/.gradle}/init.d/kitforge-cve-forces.gradle" && cat "${GRADLE_USER_HOME:-/root/.gradle}/init.d/kitforge-cve-forces.gradle"
RUN cd /src && ./gradlew --no-daemon --offline --console=plain -PcommitId=1156b2752aaa28eafc0b4c4d387e63356793268d releaseTarGz
RUN mkdir -p /opt/kafka && tar -xzf /src/core/build/distributions/kafka_2.13-4.4.0.tgz -C /opt/kafka --strip-components=1 && rm -rf /opt/kafka/site-docs
RUN mkdir -p /opt/kafka/readystack-docker && cp /src/docker/resources/common-scripts/bash-config /src/docker/resources/common-scripts/configure /src/docker/resources/common-scripts/configureDefaults /src/docker/resources/common-scripts/run /src/docker/jvm/launch /opt/kafka/readystack-docker/ && sed -i '/SharedArchiveFile/d' /opt/kafka/readystack-docker/launch && ! grep -q SharedArchiveFile /opt/kafka/readystack-docker/launch
FROM eclipse-temurin:25-jre-noble@sha256:ce8543ddd3070ccbeaac2106a74c9387ddeb8d47a1c43348345715c1ef245c7f
ENV DEBIAN_FRONTEND=noninteractive PATH=/opt/kafka/bin:/opt/java/openjdk/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
RUN --mount=type=bind,source=vendored/debs,target=/tmp/debs \
set --; for f in /tmp/debs/*.deb; do [ -e "$f" ] && set -- "$@" "$f"; done; \Continues: 28 more lines. Create a free account to read the rest, or sign in.
Build script BUILD_OFFLINE.sh
125 lines · 6.6 KB#!/usr/bin/env bash
# =============================================================================
# ReadyStack — offline reproducible rebuild.
#
# Rebuilds this product's image from THIS ARCHIVE ALONE, with no network access
# of any kind, and prints the resulting linux/amd64 image-manifest digest.
# Run ./VERIFY_OFFLINE.sh afterwards to assert it equals the published digest.
#
# Requirements: linux/amd64 Docker host, docker buildx >= 0.30, jq, tar.
# No git, no registry access, no additional tooling.
#
# ./BUILD_OFFLINE.sh the rebuild (OCI image + a docker-loadable copy)
# ./BUILD_OFFLINE.sh --provenance the same rebuild with SLSA v1 build provenance (mode=max) attached to the OCI
# image, generated by BuildKit, not by any build step. Run on your own hardened,
# isolated build platform and sign that provenance with a key the build cannot
# reach, and the result meets SLSA Build Level 3 (see REBUILD.md). The image
# digest is the same either way.
# =============================================================================
set -euo pipefail
PROVENANCE=0
for arg in "$@"; do
case "$arg" in
--provenance) PROVENANCE=1 ;;
-h|--help) sed -n '2,20p' "$0"; exit 0 ;;Continues: 101 more lines. Create a free account to read the rest, or sign in.
Recipe files
25 files · SHA-256 of each as published here| File | Size | SHA-256 | Access |
|---|---|---|---|
| BASES.tsv | 306 B | 396c7396e514… | Public · View |
| BUILD_OFFLINE.sh | 6.6 KB | 83299978ccd0… | Opening lines public |
| CHECKSUMS.sha256 | 4.2 MB | f359067c5134… | Free account |
| DOCKERFILE_NAME.txt | 26 B | 9aadd1ede68e… | Public · View |
| Dockerfile | 5.5 KB | 1c750db07892… | Free account |
| Dockerfile.offline | 5.5 KB | 1c750db07892… | Free account |
| Dockerfile.offline.pinned | 5.5 KB | 1c750db07892… | Opening lines public |
| Dockerfile.vendor | 2.6 KB | 9f753efa6eec… | Free account |
| MANIFEST.txt | 2.6 MB | 479afbef2506… | Free account |
| SOURCE_DATE_EPOCH.txt | 11 B | f0c2454b3473… | Public · View |
| TARGET_DIGEST.txt | 376 B | 166b6ebd3c79… | Public · View |
| VERIFY_OFFLINE.sh | 7.2 KB | 8b036b1f9a7f… | Free account |
| docs/PROVENANCE.md | 1.7 KB | a54972e432f5… | Free account |
| docs/REBUILD.md | 5.0 KB | 7dbb0f6f2014… | Free account |
| docs/VERIFY.md | 1.9 KB | 76331f783d14… | Free account |
| docs/provenance/BASE_IMAGE_DIGESTS.lock | 76 B | 181de58ed499… | Public · View |
| docs/provenance/BUILD_RECIPE.json | 4.9 KB | 761161219771… | Free account |
| docs/provenance/CUSTODY_INPUTS.json | 645 B | 48cf5cb75c2d… | Free account |
| docs/provenance/SOURCE_FILE_MANIFEST.json | 429 KB | e818f41090dc… | Free account |
| docs/provenance/SOURCE_TREE_HASH.json | 303 B | 40b78009a48a… | Public · View |
| docs/provenance/SYSTEM_PINNING.lock | 30 B | 23adcc4de329… | Free account |
| docs/provenance/TOOLCHAIN.lock | 3.2 KB | 59ead97adb80… | Free account |
| rebuild.json | 1.5 KB | 8038d21b6f11… | Free account |
| server.properties | 1.7 KB | 534dba729037… | Free account |
| toolchain/BUILDKIT_TAG.txt | 22 B | fcd530eeb02b… | Public · View |
Made from ReadyStack-kafka-4.4.0-CE-ubuntu24.04-r2.tar.gz (SHA-256 9eaa3922d59bac071dc4923a1f969ada25f47a02115269407cfa7e87a65140bb), the build kit on sale for this release, on 2026-10-29.
What the Hermetic Build Kit adds
Free with a verified emailThe recipe pins every input; the kit carries them, so the build runs with the network off:
- Vendored sources and packages15,811 files, 1018 MB
- Base images (OCI layouts)18 files, 235 MB
- Pinned BuildKit toolchain1 files, 106 MB
- Handbooks, SBOM, security report and records7,578 files, 86 MB