Maintainers
Maintainer reference
Where behaviour lives across the playground's repositories, what is generated from what, and which file to edit to change it.
These pages are for the team. They assume you know Docker, GitHub Actions and the LinuxServer image layout, and they answer three questions: what options image.yml has, how the generated files and pages are produced from it, and which file you edit to change a behaviour. The contract behind all of it is CONVENTIONS.md in the builder repository; when a page here and CONVENTIONS disagree, CONVENTIONS wins.
| Page | What it covers |
|---|---|
| The image.yml manifest | Every field, its options and defaults, what it drives, and the normalisation applied before rendering. |
| Version sources and release assets | Every upstream.version type, transform, require_assets, release notes sources, and how the control plane uses them. |
| Generated files and templates | The render pipeline, the templates and the parts, what the hub and the site render from the same templates, and how to change or add output. |
One manifest, many outputs
An image repository is hand-edited in three places: the two Dockerfiles, root/, and image.yml. Everything else derives from the manifest:
image.yml ─┬─ builder render ──▶ README.md, AGENTS.md, LICENSE, .github/workflows/build.yml, pr-report.yml (committed by the live build)
├─ workflows ──▶ platforms, Dockerfiles, version arg, test settings, release tags (image-build.yml@v1)
├─ control ──▶ live branch, hourly version check, weekly package check (fleet.py, scheduler.py)
└─ hub ──▶ API (catalog, docs.json, snippets), stores, SWAG confs, k8s, quadlets (transform.py, generate/)
└─▶ site: image pages, imagedocs, install artefacts
The hub does not read the README. It loads the manifest from each release and renders the same Jinja templates the builder does, so the README on GitHub and the image page on the site cannot disagree.
Where to edit what
- Text or facts about one image (summary, parameters, setup, ports, changelog):
image.ymlon the live branch (docker-<name>). Thenbuilder check; the live build re-renders README and friends asUpdate generated files [skip ci] - The wording or layout of a README section, for every image:
builder/templates/parts/<section>.j2(builder). ThenUPDATE_GOLDEN=1 pytest tests/test_render.py, reviewtests/golden/, push; every image picks it up on its next live build. - The skeleton of the README or the mkdocs page:
builder/templates/README.md.j2,docs.md.j2,parts/body.j2(builder). Then the same. - The image repos’
AGENTS.md:templates/agents/image.md.j2(builder). Then the same. - The 40-line
build.ymlcaller orpr-report.ymlin every image repo:builder/templates/build.yml.j2,pr-report.yml.j2(builder). Then same; the workflow logic itself is in workflows. - The compose and
docker runsnippets (README, hub API, site):builder/snippets.py(builder). Then pytest. - Admonition rendering (
?+note[Title](|text|)):builder/admonition.py(builder). Then pytest. - Values derived from the manifest before any template sees them:
builder/manifest.py(normalize_runtime,build_context) (builder). Then pytest. - What
builder checkenforces beyond the schema:builder/check.py(builder). Then pytest; it runs in every PR and live build. - A new or changed
image.ymlfield:schemas/image.schema.json, then the consumers (below) (builder, then hub, site, workflows or control). Thencontracts_versionbump; an example underexamples/; a test. - How a version is resolved, any source type:
scripts/resolve_version.py(workflows, then copy intocontrol/vendor/). Then workflows./scripts/check.sh; control’stests/test_vendor.pyfails until the copy matches. - How images build, test, publish, release:
.github/workflows/image-build.yml,.github/actions/*(workflows). Then./scripts/check.sh, push, movev1, dispatch a small image. - The container test harness and screenshots: the
cirepository (ci). Then its AGENTS.md. - Store templates (Unraid, Portainer, CasaOS, Umbrel, Runtipi, Cosmos, Arcane):
lsio_hub/generate/<store>.py(hub). Then fixture tests for sonarr, swag and multidb. - SWAG proxy confs, Kubernetes manifests, quadlets:
lsio_hub/generate/proxy.py,kubernetes.py,quadlet.py(hub). Then the same. - The hub API shape (
catalog/<name>.json,docs.json):lsio_hub/transform.py,models.py,responses.py(hub). Then same; then the site’ssrc/lib/hub.ts - An image page on the site:
src/pages/images/[name].astroandsrc/components/(site). Thennpm run check,npm run build, a11y, 390 px. - When builds are scheduled, cooldowns, alerts:
control/scheduler.py(settings are code defaults incontrol/config.py) (control). Then ruff, mypy, pytest; a push to main deploys. - Legacy conversion (
readme-vars,jenkins-varstoimage.yml):builder/migrate.py,legacy_vars.py(builder). Then pytest;tests/fixtures/live/are real pairs. - A mod’s README, AGENTS.md and workflow:
mod.ymlon the mod branch; templatesmod-readme.md.j2,mod-build.yml,agents/mod.md.j2(docker-mods; builder). Thenbuilder render-mod,tools/check-branch.sh
How a change reaches the fleet
- builder on push to
mainpublishesghcr.io/linuxserver-playground/builder:latest. The build of every image runsbuilder checkandbuilder renderfrom that image, and the hub and control install thelsio-builderpackage frombuilder@mainwhen they build. So a template change shows up in an image repo on its next live build, in the hub API on its next Deploy (hourly at most), and the site follows the hub. - workflows is called as
image-build.yml@v1; the floatingv1tag has to be moved by hand after a push. A change that breaks the inputs, outputs or the ci interface is a new major tag. - control deploys itself: Publish runs the checks, pushes
:latest, and the server pulls it within five minutes. A redmainships nothing. - hub and site deploy only when control dispatches them, on fixed slots at most nine times an hour each and only when something changed (a release, a push to
main, the hub’s refreshed data; for the site, a hub deploy that published something new). Each publishes to itsgh-pagesbranch, and pushes nothing when the build matches what is there. A push tomaingoes out at the next slot; control’s/api/status.json(deploys) shows what is waiting.
Generated data never lands on main: the hub’s data/ and the site’s snapshots are each the single commit of their repository’s data branch.
Validating locally
Every repository’s AGENTS.md has a “How to validate” section with the exact commands; the short list:
# an image repository
docker run --rm -v "$PWD":/repo ghcr.io/linuxserver-playground/builder:latest check
docker run --rm -v "$PWD":/repo --user "$(id -u):$(id -g)" ghcr.io/linuxserver-playground/builder:latest render
# builder, from a checkout
pip install -e '.[dev]' && ruff check . && ruff format --check . && mypy && pytest
python -m contracts image examples/*/image.yml
# workflows (the resolver is exercised here)
./scripts/check.sh
python3 scripts/resolve_version.py path/to/image.yml # resolves for real; GITHUB_TOKEN raises the API limit
# control
ruff check . && ruff format --check . && mypy control tests && pytest
Nothing local needs a secret: every test runs against fixtures and mocks.
Last updated
Edit this page on GitHub (opens in a new tab)