Kubernetes v1.37.1 build recipe

The recipe ReadyStack built readystack/kubernetes:v1.37.1-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 35 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 account

An account is an email address, a username and a password: no card, no donation. It opens all 35 recipe files; the build kit itself keeps its own terms.

Upstream source

Public

github.com/kubernetes/kubernetes (v1.37.1) at f78e722310e50bcaca9276be22276d9e91d91308

Also built from source:

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:

Pinned inputs

As JSON
  • Base imagegolang:1.26.10-bookworm@sha256:632dff7351799a5a9954a48dc06670ade72ee44e8c351cdc0e5a57af2fea21af
  • Base imageubuntu:24.04@sha256:24737cef17f4e22b1977df7d9a05e77c4e28b7da5b8911f8d8ccda136bf3573c
  • BuildKitmoby/buildkit:v0.31.2
    sha256:e0e67ea9c4bb07bdef683e29f70f3b623d1eb9c82274a9ec04e6bb0511449fb0
  • Build methodsource-rebuild-go
  • SOURCE_DATE_EPOCH1790183182 (2026-09-23T17:06:22Z)
  • Target digest (linux/amd64)sha256:fd30476fb8e96b42deaaafcb7ba25e0437b57c83ceeac7c6ae42572559ca20e7
  • Target config digestsha256:5e10dc285aac70e4edc7e61b0a6806dec85a18141c356bf6c019acbd1b5a0394
  • Checksummed kit files92,986 (CHECKSUMS.sha256)

Dockerfile Dockerfile.offline.pinned

177 lines · 13 KB
# =====================================================================
# Kubernetes v1.37.1 L-009 HERMETIC OFFLINE BUILD — the canonical, attestation-producing build. build_kit runs
#   docker buildx build --builder readystack-builder-max --network=none
#     --attest type=provenance,mode=max --attest type=sbom --push <git-context>
# Pinned-public-base + vendored model: golang 1.26.10 + ubuntu 24.04 pinned BY DIGEST (BASE_IMAGE_DIGESTS.lock);
# vendored/*-src are fully vendored Go trees (GOPROXY=off, vendor/), every binary compiled here on the one pinned Go;
# vendored/debs is the apt closure, vendored/seccomp-debs Debian's libseccomp-dev for runc, both dpkg offline.
# Dockerfile and Dockerfile.offline are byte copies of this file (the repo-wide convention).
#
# SHAPE: one container, two ways to run it (kube-entrypoint.sh):
#   default (USER 999 kube, no extra privileges): the control plane — etcd, kube-apiserver, kube-controller-manager,
#     kube-scheduler. A Kubernetes API with no node.
#   --privileged --user 0: a single-node cluster — the same control plane, still run as kube, plus containerd,
#     kubelet and kube-proxy as root, CoreDNS and a ptp CNI network, so Pods run inside this container.
# =====================================================================

# --- kubernetes: the seven binaries, plus the pause container image built from upstream's pause.c ---------------------
FROM golang:1.26.10-bookworm@sha256:632dff7351799a5a9954a48dc06670ade72ee44e8c351cdc0e5a57af2fea21af AS kubernetes-build
ARG SOURCE_DATE_EPOCH=1790183182
WORKDIR /k8s
COPY vendored/kubernetes-src/ .
ENV CGO_ENABLED=0 GOTOOLCHAIN=local GOFLAGS=-buildvcs=false GOPROXY=off
# upstream hack/lib/golang.sh + version.sh: tags selinux,notest,grpcnotrace; -trimpath -s -w; gitVersion/gitCommit/
# gitTreeState/gitMajor/gitMinor/buildDate stamped into both version packages; buildDate from SOURCE_DATE_EPOCH (the tag

Continues: 153 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

35 files · SHA-256 of each as published here
FileSizeSHA-256Access
BASES.tsv264 B8d72027e2bc4…Public · View
BUILD_OFFLINE.sh6.6 KB83299978ccd0…Opening lines public
CHECKSUMS.sha25614 MB309a9ca121c7…Free account
Corefile622 B3a5d7b8a106f…Free account
DOCKERFILE_NAME.txt26 B9aadd1ede68e…Public · View
Dockerfile13 KB2359441af8eb…Free account
Dockerfile.offline13 KB2359441af8eb…Free account
Dockerfile.offline.pinned13 KB2359441af8eb…Opening lines public
Dockerfile.vendor13 KB171088823fc2…Free account
MANIFEST.txt7.9 MBb912ca5e0ce2…Free account
SOURCE_DATE_EPOCH.txt11 B9acb43a80a2e…Public · View
TARGET_DIGEST.txt329 Bb81b290e007c…Public · View
VERIFY_OFFLINE.sh7.2 KB8b036b1f9a7f…Free account
cluster-dns.yaml1.4 KB6ad614434fe0…Free account
cluster-rbac.yaml943 Be1a3c30508c7…Free account
cni.conflist423 B02918797d3cd…Free account
containerd-config.toml1.2 KBbb00a26b4727…Free account
crictl.yaml124 Bad526395cca4…Free account
docs/PROVENANCE.md1.7 KB23ad320fa1e0…Free account
docs/REBUILD.md5.0 KBbbdf3c2c20f8…Free account
docs/VERIFY.md1.9 KB7082b2c43924…Free account
docs/provenance/BASE_IMAGE_DIGESTS.lock76 Bdbc51fdf0367…Public · View
docs/provenance/BUILD_RECIPE.json7.7 KB1e555fe5ef50…Free account
docs/provenance/CUSTODY_INPUTS.json657 Bc35b9a836b38…Free account
docs/provenance/SOURCE_FILE_MANIFEST.json256 KB7da9fd758f8f…Free account
docs/provenance/SOURCE_TREE_HASH.json316 Bb74198f715a1…Public · View
docs/provenance/SYSTEM_PINNING.lock87 Beb3022ff0e97…Free account
docs/provenance/TOOLCHAIN.lock10 KBe3968b341d43…Free account
kube-entrypoint.sh13 KB27eaac9e19a6…Free account
kube-proxy.yaml601 B4278a49049b9…Free account
kube-svc6.7 KB95a9a9535bdf…Free account
kubelet.yaml1.1 KB1bdfcc80a6ed…Free account
mk-pause-oci.sh2.0 KB3418ca726981…Free account
rebuild.json1.4 KBb9e33587f7c7…Free account
toolchain/BUILDKIT_TAG.txt22 Bfcd530eeb02b…Public · View

Made from ReadyStack-kubernetes-v1.37.1-CE-ubuntu24.04-r2.tar.gz (SHA-256 3bc000df0acdc64483a4a81fba0e0005904024f7ca833c03046ad8665e186d42), the build kit on sale for this release, on 2026-10-29.

What the Hermetic Build Kit adds

Free with a verified email

The recipe pins every input; the kit carries them, so the build runs with the network off:

  • Vendored sources and packages61,614 files, 555 MB
  • Base images (OCI layouts)16 files, 311 MB
  • Handbooks, SBOM, security report and records31,322 files, 259 MB
  • Pinned BuildKit toolchain1 files, 106 MB