Skip to content

Tiered image packaging: harness → base → project - #5

Merged
daniel-rossier merged 1 commit into
mainfrom
spear-packaging-rework
Nov 13, 2026
Merged

daniel-rossier merged 1 commit into
mainfrom
spear-packaging-rework

Conversation

@daniel-rossier

@daniel-rossier daniel-rossier commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

A FROM-chain packaging model beside the legacy flat profiles, which stay untouched so nothing existing breaks.

Tiers

  • harness — the application only, public and redistributable.
  • base — a company's commons built FROM harness: the shared build system (Infrabase and family), cross-project corpora, common rules/skills/benches, standards and the knowledge seed. Private (it bakes a non-public tree).
  • project — one project's delta FROM base: its spear-private content, its corpora, and its own standards (a private/commercial standard).

What changed

  • docker/Dockerfile.harness|base|project — the FROM chain.
  • scripts/docker/build-tiered.sh — orchestrates the tiers, reusing the existing stage-* scripts unchanged.
  • scripts/spear-image — dispatches the new tiers.
  • scripts/docker/push.sh — decides on the redistributable+entity labels, reads the neutral spear.* namespace with a fallback to the old one, and routes a private image to its entity's registry (reds → reds-gitlab).
  • PACKAGING-REWORK.md — design and implementation status.

Status

Verified by bash -n, --help and the validation paths. Not yet build-tested end to end: a real docker build must run on the configured host (the one with client/machine.env, projects.json and the index). Legacy public/reds/private profiles are untouched.

Add a FROM-chain packaging model beside the legacy flat profiles, which stay
untouched so nothing existing breaks:

- harness: the application only, public and redistributable.
- base: a company's commons built FROM harness -- the shared build system
  (Infrabase and its family), the cross-project corpora, the common rules,
  skills and benches, the standards and the knowledge seed. Private, since it
  bakes a non-public tree.
- project: one project's delta built FROM base -- its spear-private content,
  its corpora, and its own standards (a private/commercial standard).

build-tiered.sh orchestrates the three tiers, reusing the existing stage-*
scripts unchanged and mapping the profile for stage-standards.py. spear-image
dispatches the new tiers to it. push.sh now decides on the redistributable and
entity labels rather than the profile name, reads the neutral spear.* namespace
with a fallback to the old ch.heig-vd.reds.spear.* one, and routes a private
image to its entity's registry (reds -> reds-gitlab).

Design and implementation status in PACKAGING-REWORK.md. Verified by bash -n,
--help and the validation paths; a real docker build must run on the configured
host.
@daniel-rossier
daniel-rossier merged commit f36f4f4 into main Nov 13, 2026
2 checks passed
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