feat(image): describe every image: labels, a readme page and build metadata #40

Merged
Defame1297 merged 3 commits from docs/image-metadata into main 2026-10-26 19:37:39 +00:00
Owner

Why

The registry package page shows an image's description as plain text (no markdown), lists every label, and links source, documentation and licence; it renders no README for container images (Gitea's container metadata reads licenses, url, source, documentation, description and authors). The images carried a title, a one-line description, source and licence only. It was not clear what an image is for, what it contains, or how to use it.

What

  • docs/images/{ci,molecule-ubuntu2404,molecule-ubuntu2604}.md: readme-style pages (purpose, contents, usage with a snippet, tags and pinning, how it is built and updated, where the metadata comes from). Outside the image directories on purpose: editing them is not an image input and needs no new version. docs is in galaxy.yml build_ignore, so it stays out of the Collection archive.
  • Each Dockerfile carries one label block: org.opencontainers.image.{title,description,source,url,documentation,licenses,authors,base.name} and net.rkdr.mortis.{purpose,contents,usage}. The documentation label links to the page above.
  • image.yml: the build adds org.opencontainers.image.{version,revision,created} with kaniko --label.
  • check_image_versions.py pins: fails when an image lacks a required label in its last stage, when documentation is not <source>/src/branch/main/docs/images/<name>.md, when that page is missing or empty, when the title is not the image name, or when base.name differs from the FROM tag. Labels are parsed like a shell would.
  • The labels are image inputs, so the three images get their PATCH bump: ci 0.2.6, molecule-ubuntu2404 0.1.3, molecule-ubuntu2604 0.1.1.

Review

Three read-only reviewers (docs accuracy against the repo; the check and its tests; the build labels, label limits and Gitea display) found no blocking problem. Their findings are fixed in the second commit: the label parser truncated values holding NAME=value, labels of earlier stages counted, a Python 3.12 claim that the 26.04 base may not satisfy, a usage snippet that differed from lint.yml, and imprecise statements about what starts a build.

Verified / not verified

  • Verified: hooks, 132 script tests, pins and bump; the pinned kaniko fork has a repeatable --label key=value flag (source); the Collection build with docs ignored passes the tarball check (30 entries).
  • Not verified: the first Images run on main after the merge is the real test of --label; if it fails, the three builds stop before the push and nothing is published. How the package page renders the description is not seen yet. The doc snippets are copied from the workflows and scenarios, not run.
  • After the merge: three images rebuild and Renovate opens three pin PRs (another run of the pin-follow loop).

🤖 Generated with Claude Code

## Why The registry package page shows an image's description as plain text (no markdown), lists every label, and links source, documentation and licence; it renders no README for container images (Gitea's container metadata reads licenses, url, source, documentation, description and authors). The images carried a title, a one-line description, source and licence only. It was not clear what an image is for, what it contains, or how to use it. ## What - `docs/images/{ci,molecule-ubuntu2404,molecule-ubuntu2604}.md`: readme-style pages (purpose, contents, usage with a snippet, tags and pinning, how it is built and updated, where the metadata comes from). Outside the image directories on purpose: editing them is not an image input and needs no new version. `docs` is in `galaxy.yml` `build_ignore`, so it stays out of the Collection archive. - Each Dockerfile carries one label block: `org.opencontainers.image.{title,description,source,url,documentation,licenses,authors,base.name}` and `net.rkdr.mortis.{purpose,contents,usage}`. The `documentation` label links to the page above. - `image.yml`: the build adds `org.opencontainers.image.{version,revision,created}` with kaniko `--label`. - `check_image_versions.py pins`: fails when an image lacks a required label in its last stage, when `documentation` is not `<source>/src/branch/main/docs/images/<name>.md`, when that page is missing or empty, when the title is not the image name, or when `base.name` differs from the `FROM` tag. Labels are parsed like a shell would. - The labels are image inputs, so the three images get their PATCH bump: `ci` 0.2.6, `molecule-ubuntu2404` 0.1.3, `molecule-ubuntu2604` 0.1.1. ## Review Three read-only reviewers (docs accuracy against the repo; the check and its tests; the build labels, label limits and Gitea display) found no blocking problem. Their findings are fixed in the second commit: the label parser truncated values holding `NAME=value`, labels of earlier stages counted, a Python 3.12 claim that the 26.04 base may not satisfy, a usage snippet that differed from `lint.yml`, and imprecise statements about what starts a build. ## Verified / not verified - Verified: hooks, 132 script tests, `pins` and `bump`; the pinned kaniko fork has a repeatable `--label key=value` flag (source); the Collection build with `docs` ignored passes the tarball check (30 entries). - Not verified: the first Images run on `main` after the merge is the real test of `--label`; if it fails, the three builds stop before the push and nothing is published. How the package page renders the description is not seen yet. The doc snippets are copied from the workflows and scenarios, not run. - After the merge: three images rebuild and Renovate opens three pin PRs (another run of the pin-follow loop). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Claude added 2 commits 2026-10-26 19:33:02 +00:00
The registry page shows the description as plain text, every label, and links to source,
documentation and licence; it renders no readme. Each Dockerfile now carries one label
block (title, description, source, url, documentation, licenses, authors, base.name and
net.rkdr.mortis.purpose/contents/usage), the build adds version, revision and created, and
docs/images/<name>.md says what the image is for, what it contains and how to use it.
check_image_versions.py pins fails when a label or that page is missing. The labels are
image inputs, so the three images get their PATCH bump.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
fix(image): act on the review of the image metadata
Build / build (pull_request) Failing after 10s
Lint / lint (pull_request) Successful in 13s
Molecule / molecule (pull_request) Successful in 58s
aa1848a995
Label parser: split the LABEL instruction like a shell (a value may hold NAME=value text), read
the last stage only, require base.name and tie it to the FROM tag, require the documentation
link to be <source>/src/branch/main/docs/images/<name>.md and the page to be non-empty.
Docs: do not name a Python version the base may not ship, show the lint.yml pin check as it
is, say which workflow paths start a build, name the system-language local hooks, add the
apparmor option and the registry path to the molecule usage, and soften unverified Renovate
and host-release statements.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Defame1297 added 1 commit 2026-10-26 19:35:11 +00:00
style(tests): one blank line fewer before labelled() (pep8 E303)
Build / build (pull_request) Successful in 9s
Lint / lint (pull_request) Successful in 14s
Molecule / molecule (pull_request) Successful in 1m6s
b90acd7147
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Defame1297 merged commit c5c98bb543 into main 2026-10-26 19:37:39 +00:00
Defame1297 deleted branch docs/image-metadata 2026-10-26 19:37:39 +00:00
Sign in to join this conversation.
No Reviewers
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#40