feat(nix): default container.defaultImage to a digest-pinned buildpack-deps:stable-scm #231
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Cloonar/coding-lab!231
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "afk/230"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #230
A stock module deployment refused every container spawn for repos without their own
image_ref("no dev image for this repo …") becausecontainer.defaultImagedefaulted tonulland the production host config never set it. The module now ships a working default; ADR-0053's demotion stands (explicitnullopt-out valid, per-repoimage_refwins), and the Go binary's--container-imagedefault stays empty.What changed
container.defaultImagedefaults todocker.io/library/buildpack-deps:stable-scm@sha256:07554a82a7a29ce00a048e0b29d18f454b5721b41940d43ee3be1ef59d55b114(digest resolved at implementation time; tag kept for readability). The manual re-pin command sits in a comment beside the literal. Thedebian:stable-slimexample is gone — it never satisfied the dev-image contract.containerNullImageDummysetsdefaultImage = null;explicitly and proves the opt-out renders no--container-image; the explicitdebian:stable-slimoverride fixture now also proves a set value replaces the default (negative grep onbuildpack-deps).nix/module.nix(fails loudly unless exactly one docker.io digest literal matches, so a re-pin PR updates the probe for free). This knowingly adds docker.io to the deploy path's probe dependencies.buildpack-deps:stable-scmqualifies as-is,alpineonly withgit+openssh-clientadded, plaindebian:stable-slimdoes not qualify.nullto the pinned stock scm image.Verification
nix flake checkpasses locally ("all checks passed!"), including the flippednixos-moduleassertions and the container closure build.--container-image docker.io/library/buildpack-deps:stable-scm@sha256:07554a82…in ExecStart; explicitdefaultImage = nullrenders none (both now pinned by eval asserts + text-level greps).bash -nclean, YAML parses, and the ref-extraction guard was smoke-tested against zero-, one-, and two-match inputs.🤖 Generated with Claude Code
[autoland] verdict: pass
Clean PASS. CI aggregate success (ci/native + ci-nix/flake-check both green; flake-check exercised the flipped nixos-module assertions and container closure build for this diff). Conventional Commits title, working Closes #230, diff-scope matches issue #230's five work items exactly with no drive-by changes. Deploy probe's grep resolves to exactly one docker.io digest literal in nix/module.nix; digest consistent across module.nix, flake.nix, ops.md, ADR-0056.