feat(BA-7264): build service images from a shared backend.ai-base image - #13709
Open
kyujin-cho wants to merge 1 commit into
Open
feat(BA-7264): build service images from a shared backend.ai-base image#13709kyujin-cho wants to merge 1 commit into
kyujin-cho wants to merge 1 commit into
Conversation
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.
Summary
docker/backend.ai-base.dockerfile: a shared, unpublished base image that installs every backend.ai package once — a jointpip wheelresolve of-r requirements.txtplus the seven service packages (--find-links=dist/, PyPI fallback), so dependency versions cannot drift from the tested set, with a BuildKitRUN --mountinstall so no wheel or dist bytes ship in any image layer.FROM backend.ai-base:${PKGVER}: every image now carries all packages and the fullbackend.aiCLI, differing only in default command, prepared directories, and extras (agent keeps its digest-pinned Docker CLI, entrypoint, and the krunner fail-fast probe). Multi-service hosts download the shared base layers once, and the same-version rule becomes structural.python -m …to thebackend.ai <alias> start-serverlazy-import CLI entry points (mgr/ag/web/storage/app-proxy-*).docker-bake.hcl: the base is wired into the service targets as a named build context (target:base), so it is built in-run per platform and never needs to exist in a registry; tags, OCI labels, provenance+SBOM attestations, and per-image gha cache scopes live here.backend.ai-baseas a build-only entry inscripts/list-dockerfiles.sh(excluded from--servicepublishing and--infra), and updatedocker/README.mdfor the base-image build contract.Merge order note: stacked on #13703 (BA-7321) of the BA-7264 chain; retarget to
mainafter the base PR merges. The CI switch to bake follows in the next PR of the stack.Part of the BA-7264 epic (#13582).