Rancher v2.15.2 build recipe

The recipe ReadyStack built readystack/rancher:v2.15.2-CE-ubuntu24.04-r3 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 29 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 29 recipe files; the build kit itself keeps its own terms.

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_EPOCH1790188871 (2026-09-23T18:41:11Z)
  • Target digest (linux/amd64)sha256:aa38564691e1e7e024b1da1c9258731cd61940cf1a04b6a6a79f878b28133d14
  • Target config digestsha256:826fb040da1b1a929970a2248106c83c6dfac1c7228449474ef2b0373d8575f9
  • Checksummed kit files110,887 (CHECKSUMS.sha256)

Dockerfile Dockerfile.offline.pinned

308 lines · 21 KB
# =====================================================================
# Rancher v2.15.2 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, -mod=vendor), every Go program in the image compiled here
# on the one pinned Go; vendored/assets holds the checksummed non-Go inputs; vendored/debs is the apt closure.
# Dockerfile and Dockerfile.offline are byte copies of this file (the repo-wide convention).
#
# SHAPE: upstream's single-container Rancher ("docker run --privileged"): the rancher server starts an embedded k3s
# (server + agent, so containerd, runc and the CNI plugins run inside this container) and installs its system charts
# into it. Same file layout, entrypoint and environment as upstream's package/Dockerfile `server` target, on Ubuntu,
# but NON-ROOT: the image user is `rancher` (uid 1001) and rancher-entrypoint.sh runs upstream's entrypoint, Rancher and
# k3s inside a rootlesskit user namespace (rancher-entrypoint.sh explains; --user 0 gives upstream's root mode).
# =====================================================================
FROM golang:1.26.10-bookworm@sha256:632dff7351799a5a9954a48dc06670ade72ee44e8c351cdc0e5a57af2fea21af AS gobuild
# libseccomp-dev for runc and k3s (both built with seccomp support, as upstream builds them), dpkg'd offline.
RUN --mount=type=bind,source=vendored/builddebs,target=/tmp/builddebs dpkg -i /tmp/builddebs/*.deb
ENV GOTOOLCHAIN=local GOWORK=off GOFLAGS="-mod=vendor -buildvcs=false" GOPROXY=off CGO_ENABLED=0
# Fail closed on a stale toolchain: `go version <binary>` reads the toolchain recorded in the binary. gocheck ends every
# compile RUN, and it also empties the Go build cache, so no stage's layer keeps its cache: with it, the twelve compile
# stages' layers held well over 100 GB on the build host (<redacted: internal host> ran out of disk at build_kit, chain 618).
RUN printf '%s\n' '#!/bin/sh' 'set -eu' 'for b in "$@"; do v=$(go version "$b" | awk "{print \$2}"); echo "$b: $v";' \
      '[ "$(printf "%s\n%s\n" go1.26.10 "$v" | sort -V | head -n1)" = go1.26.10 ] || { echo "$b built with $v < go1.26.10" >&2; exit 1; }; done' \

Continues: 284 more lines. Create a free account to read the rest, or sign in.

Published with one line redacted (internal host).

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

29 files · SHA-256 of each as published here
FileSizeSHA-256Access
BASES.tsv264 B8d72027e2bc4…Public · View
BUILD_OFFLINE.sh6.6 KB83299978ccd0…Opening lines public
CHECKSUMS.sha25616 MBaab2c22d08f6…Free account
DOCKERFILE_NAME.txt26 B9aadd1ede68e…Public · View
Dockerfile
Published with 1 redaction (internal host, line 22); the kit's own copy: 3d3858b530ec…
21 KB254c592777d9…Free account
Dockerfile.offline
Published with 1 redaction (internal host, line 22); the kit's own copy: 3d3858b530ec…
21 KB254c592777d9…Free account
Dockerfile.offline.pinned
Published with 1 redaction (internal host, line 22); the kit's own copy: 3d3858b530ec…
21 KB254c592777d9…Opening lines public
Dockerfile.vendor14 KB77c5bf6ece5b…Free account
MANIFEST.txt9.3 MB3fb0be945368…Free account
SOURCE_DATE_EPOCH.txt11 Bbb7b966631d8…Public · View
TARGET_DIGEST.txt301 Bac5f22292c35…Public · View
VERIFY_OFFLINE.sh7.9 KBdc0b5cd5c104…Free account
docs/PROVENANCE.md1.7 KBaa81e37b8e9a…Free account
docs/REBUILD.md5.0 KBb49a3e2bc33e…Free account
docs/VERIFY.md1.9 KBa947fdd58f76…Free account
docs/provenance/BASE_IMAGE_DIGESTS.lock73 B697556f7ac6d…Public · View
docs/provenance/BUILD_RECIPE.json4.5 KBd3c6d1aef55e…Free account
docs/provenance/CUSTODY_INPUTS.json652 B854959780597…Free account
docs/provenance/SOURCE_FILE_MANIFEST.json189 KB6c1f0359bb31…Free account
docs/provenance/SOURCE_TREE_HASH.json310 B5028a31e598b…Public · View
docs/provenance/SYSTEM_PINNING.lock217 B853301e7237b…Free account
docs/provenance/TOOLCHAIN.lock6.5 KBf12b07aed50c…Free account
go-floors.sh3.3 KB9a29a9639890…Free account
jailer.sh4.1 KB2747465fbf4b…Free account
kubectl-userns.sh760 Be8e26e456718…Free account
rancher-entrypoint.sh3.6 KB14939e1e4748…Free account
rancher-webhook-guard.sh
Published with 1 redaction (internal host, line 15); the kit's own copy: d0ac6904e0e0…
2.6 KB8ec3533a62e5…Free account
rebuild.json1.4 KBe3254e307175…Free account
toolchain/BUILDKIT_TAG.txt22 Bfcd530eeb02b…Public · View

Made from ReadyStack-rancher-v2.15.2-CE-ubuntu24.04-r3.tar.gz (SHA-256 ebdabc589ced7590f76e2e7d86698747e4488cc31adf2290e6d94ed21b091a78), 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 packages107,755 files, 1.9 GB
  • Base images (OCI layouts)16 files, 311 MB
  • Pinned BuildKit toolchain1 files, 106 MB
  • Handbooks, SBOM, security report and records3,088 files, 29 MB