Repository navigation
Tiered image packaging: harness → base → project - #5
Merged
Merged
Conversation
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
force-pushed
the
spear-packaging-rework
branch
from
November 13, 2026 14:00
cb08814 to
0afb0cd
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A FROM-chain packaging model beside the legacy flat profiles, which stay untouched so nothing existing breaks.
Tiers
What changed
docker/Dockerfile.harness|base|project— the FROM chain.scripts/docker/build-tiered.sh— orchestrates the tiers, reusing the existingstage-*scripts unchanged.scripts/spear-image— dispatches the new tiers.scripts/docker/push.sh— decides on theredistributable+entitylabels, reads the neutralspear.*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,--helpand the validation paths. Not yet build-tested end to end: a realdocker buildmust run on the configured host (the one withclient/machine.env,projects.jsonand the index). Legacypublic/reds/privateprofiles are untouched.