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 accountAn 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.
Upstream source
Publicgithub.com/rancher/rancher (v2.15.2) at 272e65580ca92b9dc51e0f0f0f9ae9d6d356e3b8
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/rancher/rancher.git v2.15.2
- git https://github.com/k3s-io/containerd.git "$3"
- https://releases.rancher.com/dashboard/v2.15.2.tar.gz
- https://releases.rancher.com/api-ui/1.1.11.tar.gz
- https://releases.rancher.com/kontainer-driver-metadata/release-v2.15/data.json
- https://github.com/rancher/system-agent/releases/download/v0.15.2/install.sh
- https://github.com/rancher/system-agent/releases/download/v0.15.2/system-agent-uninstall.sh
- https://raw.githubusercontent.com/rancher/wins/v0.15.2/install.ps1
- https://raw.githubusercontent.com/rancher/wins/v0.15.2/uninstall.ps1
- https://github.com/rancher/
- https://git.rancher.io/
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 method
source-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| File | Size | SHA-256 | Access |
|---|---|---|---|
| BASES.tsv | 264 B | 8d72027e2bc4… | Public · View |
| BUILD_OFFLINE.sh | 6.6 KB | 83299978ccd0… | Opening lines public |
| CHECKSUMS.sha256 | 16 MB | aab2c22d08f6… | Free account |
| DOCKERFILE_NAME.txt | 26 B | 9aadd1ede68e… | Public · View |
| Dockerfile Published with 1 redaction (internal host, line 22); the kit's own copy: 3d3858b530ec… | 21 KB | 254c592777d9… | Free account |
| Dockerfile.offline Published with 1 redaction (internal host, line 22); the kit's own copy: 3d3858b530ec… | 21 KB | 254c592777d9… | Free account |
| Dockerfile.offline.pinned Published with 1 redaction (internal host, line 22); the kit's own copy: 3d3858b530ec… | 21 KB | 254c592777d9… | Opening lines public |
| Dockerfile.vendor | 14 KB | 77c5bf6ece5b… | Free account |
| MANIFEST.txt | 9.3 MB | 3fb0be945368… | Free account |
| SOURCE_DATE_EPOCH.txt | 11 B | bb7b966631d8… | Public · View |
| TARGET_DIGEST.txt | 301 B | ac5f22292c35… | Public · View |
| VERIFY_OFFLINE.sh | 7.9 KB | dc0b5cd5c104… | Free account |
| docs/PROVENANCE.md | 1.7 KB | aa81e37b8e9a… | Free account |
| docs/REBUILD.md | 5.0 KB | b49a3e2bc33e… | Free account |
| docs/VERIFY.md | 1.9 KB | a947fdd58f76… | Free account |
| docs/provenance/BASE_IMAGE_DIGESTS.lock | 73 B | 697556f7ac6d… | Public · View |
| docs/provenance/BUILD_RECIPE.json | 4.5 KB | d3c6d1aef55e… | Free account |
| docs/provenance/CUSTODY_INPUTS.json | 652 B | 854959780597… | Free account |
| docs/provenance/SOURCE_FILE_MANIFEST.json | 189 KB | 6c1f0359bb31… | Free account |
| docs/provenance/SOURCE_TREE_HASH.json | 310 B | 5028a31e598b… | Public · View |
| docs/provenance/SYSTEM_PINNING.lock | 217 B | 853301e7237b… | Free account |
| docs/provenance/TOOLCHAIN.lock | 6.5 KB | f12b07aed50c… | Free account |
| go-floors.sh | 3.3 KB | 9a29a9639890… | Free account |
| jailer.sh | 4.1 KB | 2747465fbf4b… | Free account |
| kubectl-userns.sh | 760 B | e8e26e456718… | Free account |
| rancher-entrypoint.sh | 3.6 KB | 14939e1e4748… | Free account |
| rancher-webhook-guard.sh Published with 1 redaction (internal host, line 15); the kit's own copy: d0ac6904e0e0… | 2.6 KB | 8ec3533a62e5… | Free account |
| rebuild.json | 1.4 KB | e3254e307175… | Free account |
| toolchain/BUILDKIT_TAG.txt | 22 B | fcd530eeb02b… | 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 emailThe 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