Moodle v5.3.0 build recipe
The recipe ReadyStack built readystack/moodle:v5.3.0-CE-ubuntu24.04-r4 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 31 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 31 recipe files; the build kit itself keeps its own terms.
Upstream source
Publicgithub.com/moodle/moodle (v5.3.0) at 42622298fe06f9626d988d60b2bf589bd8f850e8
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/moodle/moodle v5.3.0
Pinned inputs
As JSON- Base imageubuntu:24.04@sha256:24737cef17f4e22b1977df7d9a05e77c4e28b7da5b8911f8d8ccda136bf3573c
- BuildKitmoby/buildkit:v0.31.2
sha256:e0e67ea9c4bb07bdef683e29f70f3b623d1eb9c82274a9ec04e6bb0511449fb0 - Build method
source-rebuild-php - SOURCE_DATE_EPOCH1791020085 (2026-10-03T09:34:45Z)
- Target digest (linux/amd64)sha256:7db55b5d94598d01488b16d7a5065e7ded89f7a2b534235f4e367b0c28d67a5c
- Target config digestsha256:9824cb17950b92d543d63f4aae644425c611e6a731c7d1f04913a059a7789f07
- Checksummed kit files135,344 (CHECKSUMS.sha256)
Dockerfile Dockerfile.offline.pinned
62 lines · 5.1 KB# GENERATED L-009 hermetic PHP build on Ubuntu's own packages (--network=none, SBOM+SLSA-attestation-producing).
# Pinned ubuntu:24.04; vendored app source + the deb closure (Ubuntu's PHP 8.3, its extensions, Apache, runtime debs).
FROM ubuntu:24.04@sha256:24737cef17f4e22b1977df7d9a05e77c4e28b7da5b8911f8d8ccda136bf3573c
ENV DEBIAN_FRONTEND=noninteractive APACHE_RUN_USER=www-data APACHE_RUN_GROUP=www-data APACHE_DOCUMENT_ROOT=/var/www/html/public
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
# Apache + PHP set up as the official php:apache image sets them up (the image this product's Debian releases
# ran on), so the product's scaffold, post_copy_run and entrypoint behave as they did there.
COPY readystack-php.ini /etc/php/8.3/apache2/php.ini
COPY readystack-php.ini /etc/php/8.3/cli/php.ini
COPY readystack-mod-php.conf /etc/apache2/mods-available/php8.3.conf
COPY readystack-php.conf /etc/apache2/conf-available/readystack-php.conf
COPY apache2-foreground /usr/local/bin/apache2-foreground
RUN chmod 0755 /usr/local/bin/apache2-foreground && \
sed -ri 's/^export ([^=]+)=(.*)$/: ${\1:=\2}\nexport \1/' /etc/apache2/envvars && \
a2dismod -q mpm_event && a2enmod -q mpm_prefork && a2enconf -q readystack-php && \
rm -rf /var/www/html && mkdir -p /var/www/html && chown www-data:www-data /var/www/html && chmod 1777 /var/www/html && \
for d in /var/lock/apache2 /var/run/apache2 /var/log/apache2 /var/run/apache2/socks; do \Continues: 38 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
31 files · SHA-256 of each as published here| File | Size | SHA-256 | Access |
|---|---|---|---|
| BASES.tsv | 121 B | 0da49a3ea98f… | Public · View |
| BUILD_OFFLINE.sh | 6.6 KB | 83299978ccd0… | Opening lines public |
| CHECKSUMS.sha256 | 21 MB | daa6895dc2cd… | Free account |
| DOCKERFILE_NAME.txt | 26 B | 9aadd1ede68e… | Public · View |
| Dockerfile | 5.1 KB | 354810aa5fe9… | Free account |
| Dockerfile.offline | 5.1 KB | 354810aa5fe9… | Free account |
| Dockerfile.offline.pinned | 5.1 KB | 354810aa5fe9… | Opening lines public |
| Dockerfile.vendor | 1.4 KB | 74adaa3f8d81… | Free account |
| MANIFEST.txt | 12 MB | 39e18f11b52b… | Free account |
| SOURCE_DATE_EPOCH.txt | 11 B | 41fdd53fbb16… | Public · View |
| TARGET_DIGEST.txt | 436 B | cbf4e6a3e128… | Public · View |
| VERIFY_OFFLINE.sh | 7.2 KB | 8b036b1f9a7f… | Free account |
| apache2-foreground | 732 B | 003f1949772a… | Free account |
| docker-entrypoint.sh | 3.9 KB | 6c39c4adc58d… | Free account |
| docs/PROVENANCE.md | 1.7 KB | 91a27309af0a… | Free account |
| docs/REBUILD.md | 5.1 KB | cc0466e7e63c… | Free account |
| docs/VERIFY.md | 1.9 KB | f5e9d5139a8a… | Free account |
| docs/provenance/BASE_IMAGE_DIGESTS.lock | 49 B | 633f640a38b5… | Public · View |
| docs/provenance/BUILD_RECIPE.json | 3.4 KB | c8eeaa9c97f9… | Free account |
| docs/provenance/CUSTODY_INPUTS.json | 644 B | 113973b91dfa… | Free account |
| docs/provenance/SOURCE_FILE_MANIFEST.json | 308 KB | 85454735b647… | Free account |
| docs/provenance/SOURCE_TREE_HASH.json | 303 B | 4f285eb6700d… | Public · View |
| docs/provenance/SYSTEM_PINNING.lock | 166 B | 44667b599064… | Free account |
| docs/provenance/TOOLCHAIN.lock | 2.0 KB | 3093e775fbaf… | Free account |
| moodle-vhost.conf | 291 B | 993730174fc9… | Free account |
| moodle.ini | 513 B | 0b79fbf05f80… | Free account |
| readystack-mod-php.conf | 390 B | f8eb513ee5ae… | Free account |
| readystack-php.conf | 396 B | d15053c81ce9… | Free account |
| readystack-php.ini | 281 B | a6b6e823b84e… | Free account |
| rebuild.json | 1.2 KB | f669d79b2e35… | Free account |
| toolchain/BUILDKIT_TAG.txt | 22 B | fcd530eeb02b… | Public · View |
Made from ReadyStack-moodle-v5.3.0-CE-ubuntu24.04-r4.tar.gz (SHA-256 c5192d1a047b512b2423cc37ba4e4d2dd68905b5c55aaca300d48b66cdeba6a8), 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 packages67,662 files, 480 MB
- Handbooks, SBOM, security report and records67,647 files, 447 MB
- Pinned BuildKit toolchain1 files, 106 MB
- Base images (OCI layouts)5 files, 28 MB