Repository navigation
feat(app): container-based launch + --app-version on shared DCV base AMI (#290) - #260
Merged
Merged
Conversation
…AMI (#290) spawn app launch now runs a catalog app's Docker image on the shared spore-dcv-base AMI instead of a baked per-app AMI: - Resolve entry.BaseAMIs[region] (not the deleted per-app entry.AMIs) and the image tag via catalog.ResolveTag(--app-version). - buildContainerDCVUserData pre-pulls the image and uses a `docker run` (--gpus all for GPU apps, X socket bind-mounted) as the DCV session --init. - containerInitCommand is pure/table-tested; buildDCVUserData refactored to share one script core (buildDCVUserDataWithInit) so the legacy launch_command path is byte-for-byte unchanged (guarded by a test). - --app-version flag (validated against the catalog; rejected for non-container apps); `spawn app list` gains a VERSION column. Requires libs v0.38.0 (container catalog schema). Refs #290, #389.
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
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.
What
Phase C of the #290 container-catalog pivot (depends on libs v0.38.0, merged).
spawn app launch <app>now runs the app's Docker image on the sharedspore-dcv-baseAMI instead of a baked per-app AMI — structurally retiring the per-app, per-region AMI table whose IDs were all found dangling/unshared from the launch account (#389).Changes
entry.BaseAMIs[region](the deleted per-appentry.AMIsis gone) + image tag viacatalog.ResolveTag(--app-version).buildContainerDCVUserDatapre-pulls the image, then runsdocker run --rm [--gpus all] -e DISPLAY=:0 -v /tmp/.X11-unix:/tmp/.X11-unix <image>:<tag>as the DCV session--init. Pre-pull hides cold start beforedcv create-session.containerInitCommandis pure/table-tested;buildDCVUserDataand the container builder now share one script core (buildDCVUserDataWithInit), so the legacylaunch_commandpath is byte-for-byte unchanged (guarded byTestBuildDCVUserData_LegacyUnchanged).--app-version <tag>flag — validated against the catalog, rejected for non-container apps.spawn app listgains a VERSION column (default tag,(+)when alternates exist;—for not-yet-containerized apps).Tests
TestContainerInitCommand(GPU/CPU),TestBuildContainerDCVUserData(pre-pull + GPU + session init),TestBuildDCVUserData_LegacyUnchanged.make checkgreen, tier-0 coverage gate green, existing phase-3 substrate tests still pass.Not in this PR
Refs #290, #389.