Prometheus v3.15.1 build recipe
The recipe ReadyStack built readystack/prometheus:v3.15.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 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/prometheus/prometheus (v3.15.1) at bae3eced0a5369e050e83ea73bc381d7c4b1a719
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 method
source-rebuild-go - SOURCE_DATE_EPOCH1792589043 (2026-10-21T13:24:03Z)
- Target digest (linux/amd64)sha256:859f3a39ea35ec408206ed6e6f17f65a4242cf8b57b706a312814d7b1553274b
- Target config digestsha256:aae40114feaa86684366026d57f4a5c84cef254aeab961b713a10569aed28667
- Checksummed kit files115,068 (CHECKSUMS.sha256)
Dockerfile Dockerfile.offline.pinned
43 lines · 3.6 KB# GENERATED L-009 hermetic build (--network=none, SBOM+SLSA-attestation-producing).
# Pinned bases from BASE_IMAGE_DIGESTS.lock; vendored Go tree + debs from Dockerfile.vendor.
FROM golang:1.26.10-bookworm@sha256:632dff7351799a5a9954a48dc06670ade72ee44e8c351cdc0e5a57af2fea21af AS build_prometheus
WORKDIR /src
COPY vendored/prometheus-src/ .
ENV CGO_ENABLED=0 GOTOOLCHAIN=local GOWORK=off GOFLAGS="-mod=vendor -buildvcs=false" GOPROXY=off SOURCE_DATE_EPOCH=1792589043
RUN go build -trimpath -tags "builtinassets" -ldflags='-s -w -X github.com/prometheus/common/version.Version=3.15.1 -X github.com/prometheus/common/version.Branch=HEAD' -o /prometheus ./cmd/prometheus && /prometheus --version
FROM golang:1.26.10-bookworm@sha256:632dff7351799a5a9954a48dc06670ade72ee44e8c351cdc0e5a57af2fea21af AS build_promtool
WORKDIR /src
COPY vendored/prometheus-src/ .
ENV CGO_ENABLED=0 GOTOOLCHAIN=local GOWORK=off GOFLAGS="-mod=vendor -buildvcs=false" GOPROXY=off SOURCE_DATE_EPOCH=1792589043
RUN go build -trimpath -tags "builtinassets" -ldflags='-s -w -X github.com/prometheus/common/version.Version=3.15.1' -o /promtool ./cmd/promtool && /promtool --version
FROM ubuntu:24.04@sha256:24737cef17f4e22b1977df7d9a05e77c4e28b7da5b8911f8d8ccda136bf3573c
ENV DEBIAN_FRONTEND=noninteractive
RUN --mount=type=bind,source=vendored/debs,target=/tmp/debs \
set --; for f in /tmp/debs/*.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; }; } && \
rm -rf /var/lib/apt/lists/* \
/var/log/dpkg.log /var/log/alternatives.log /var/log/apt /var/cache/ldconfig/aux-cache /var/cache/fontconfig
ARG SOURCE_DATE_EPOCH=1792589043
RUN groupadd -r prometheus && useradd -r -g prometheus -d /prometheus -m prometheus && \Continues: 19 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 | 264 B | 8d72027e2bc4… | Public · View |
| BUILD_OFFLINE.sh | 6.6 KB | 83299978ccd0… | Opening lines public |
| CHECKSUMS.sha256 | 23 MB | 1834facb52bf… | Free account |
| DOCKERFILE_NAME.txt | 26 B | 9aadd1ede68e… | Public · View |
| Dockerfile | 3.6 KB | c1b1fb9d911b… | Free account |
| Dockerfile.offline | 3.6 KB | c1b1fb9d911b… | Free account |
| Dockerfile.offline.pinned | 3.6 KB | c1b1fb9d911b… | Opening lines public |
| Dockerfile.vendor | 1.8 KB | 8928f84df2af… | Free account |
| MANIFEST.txt | 15 MB | f49094fc586e… | Free account |
| SOURCE_DATE_EPOCH.txt | 11 B | 9fa7d83a2566… | Public · View |
| TARGET_DIGEST.txt | 288 B | 5159f09d7c18… | Public · View |
| VERIFY_OFFLINE.sh | 7.2 KB | 8b036b1f9a7f… | Free account |
| docs/PROVENANCE.md | 1.7 KB | cf5079b048e0… | Free account |
| docs/REBUILD.md | 5.0 KB | ab068b29e489… | Free account |
| docs/VERIFY.md | 1.9 KB | 275b6b00e87c… | Free account |
| docs/provenance/BASE_IMAGE_DIGESTS.lock | 76 B | 57c8cb73a230… | Public · View |
| docs/provenance/BUILD_RECIPE.json | 2.7 KB | 273d6b5cb5d5… | Free account |
| docs/provenance/CUSTODY_INPUTS.json | 657 B | 8c5cdaa92d7d… | Free account |
| docs/provenance/SOURCE_FILE_MANIFEST.json | 75 KB | a1d85a07ea69… | Free account |
| docs/provenance/SOURCE_TREE_HASH.json | 315 B | 83b225d7ae2b… | Public · View |
| docs/provenance/SYSTEM_PINNING.lock | 28 B | fa091140511e… | Free account |
| docs/provenance/TOOLCHAIN.lock | 3.7 KB | b791c8ea8a99… | Free account |
| prometheus.yml | 304 B | 127c133f830f… | Free account |
| rebuild.json | 1.4 KB | e7495be29662… | Free account |
| toolchain/BUILDKIT_TAG.txt | 22 B | fcd530eeb02b… | Public · View |
Made from ReadyStack-prometheus-v3.15.1-CE-ubuntu24.04-r2.tar.gz (SHA-256 3ad117f34295b94ab90522cde61fd6d4e40a8489d41398cbce4d4f4abd71b7f3), 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 packages89,881 files, 759 MB
- Base images (OCI layouts)16 files, 311 MB
- Pinned BuildKit toolchain1 files, 106 MB
- Handbooks, SBOM, security report and records1,739 files, 31 MB