Skip to content

feat(containers): generic Nix-built runtime images for ID and fleet (#6076) - #8369

Merged
dezren39 merged 2 commits into
mainfrom
queue/14780-6076-generic-containers
Nov 11, 2026
Merged

dezren39 merged 2 commits into
mainfrom
queue/14780-6076-generic-containers

Conversation

@dezren39

@dezren39 dezren39 commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Closes the four acceptance items of issue #6076 (generic Nix-built containers for ID and fleet purposes), from task 14780 (lane code-j).

What

  • Inventory + registry decision — doc/fleet/generic-containers.md: what "generic" must cover, derived from the three existing service images (mcpx = bun, identity = compiled binary, lab-ops crawler = python) and the issue Containers: Nix-build audit — mcpx Containerfile, duplicate lab-ops Dockerfile, amd-crd definition-or-waiver #5771 audit bounds; registry decision = GHCR (ghcr.io/developing-today/generic-*, v1 + commit-SHA tags, push-to-main publishing, retention rule), consistent with the existing mcpx GHCR publishing and the fleet-build runner image.
  • Generic images as Nix builds — pkgs/generic-containers/: generic-runtime (bash/coreutils/cacert/tzdata base), generic-js-runtime (+ bun), generic-python-runtime (+ python3, default library set = the crawler's idna, overridable). Wired as flake packages in lib/default.nix. No hand-maintained Dockerfiles.
  • Workflow — container-images builds the three generic images next to the existing set (unchanged), and a new push-only publish-generic job pushes them to GHCR with the decided tags.

Verification (laptop, 2026-11-11)

  • nix build passes for generic-runtime, generic-js-runtime, generic-python-runtime.
  • No regression: mcpx-container and identity-image build from the same flake; lab-ops image untouched.
  • Fleet proof (live): the Lab Ops Hub crawler (app.py) running in generic-python-runtime:v1 answered POST /crawl for https://example.com with HTTP 200 and the extracted title.
  • ID proof (runtime equivalence): charm serve (identity) in generic-runtime:v1 booted fully and stopped at the identical point as the canonical identity:0.1.0 image run bare — both wait on the deployment-supplied DB URL, which is env configuration, not image content. Detail in doc/fleet/generic-containers.md section 4 and on issue impl(lab): generic containers for ID and fleet purposes (Nix-built) #6076.

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…6076)

Inventory + registry decision: doc/fleet/generic-containers.md. Three generic images (runtime base, bun JS, python) in pkgs/generic-containers/, wired as flake packages, added to the container-images build set, and published to GHCR on push to main (v1 + SHA tags). Proof runs and regression builds recorded on issue #6076.
@dezren39
dezren39 requested a review from a team as a code owner November 11, 2026 00:36
@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8e6fc303-8efd-43d3-ae8f-fe6ea9d0633a
Commits

Reviewing files that changed from the base of the PR and between 63c5897 and bdc0e2f.

Files selected for processing: 6

  • .github/workflows/container-images.yml
  • doc/fleet/generic-containers.md
  • lib/default.nix
  • pkgs/generic-containers/js-runtime.nix
  • pkgs/generic-containers/python-runtime.nix
  • pkgs/generic-containers/runtime-base.nix
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T00:39:02.760540Z d951079 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d951079a5b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/container-images.yml Resolved
…not overwrite v1 tags (#6076)

Codex P2 on PR #8369: the workflow concurrency group is per-run for push events, so overlapping publish-generic runs could finish out of order and roll the v1 tags backwards. Give publish-generic its own group with cancel-in-progress: false.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant