Repository navigation
Add a Docker Sandboxes content kit as a second way to run the lab - #4
Open
mathieu-benoit wants to merge 2 commits into
Open
mathieu-benoit wants to merge 2 commits into
mathieu-benoit wants to merge 2 commits into
Conversation
Package labspace/ and project/ as a Sandbox Kit that runs with the Labspace kit from mathieu-benoit/labsbxes (sbx run shell --kit ... --kit ...). The kit also ships the Docker Scout CLI plugin (missing from the sbx shell agent), publishes the app port 5001, and allows the egress the lab needs (Docker login, dhi.io, Scout, ghcr.io, PyPI). A workflow publishes it to ghcr.io/<owner>/<repo>/kit; the README documents the option. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Trigger the publish on pushes to main instead of v* tags, and publish to ghcr.io/<owner>/labsbx-dhi-launch. :latest and :sha-<short> follow main; :<version> is added the first time that version is published and never overwritten. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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
Adds a Sandbox Kit for this lab, following the layout in mathieu-benoit/labsbxes
examples/. It runs with the labsbxes Labspace kit as a second option, next to the Compose one:dhi-launch.yaml: the kit descriptor (mixin). It requireslabspace >= 0.1.0, provideslabspace-content, publishes port 5001 (the "App" tab) and allows the egress the lab needs beyond Docker Hub pulls:docker login,dhi.io, Docker Scout,ghcr.ioand PyPI.dhi-launch.dockerfile: copieslabspace/andproject/to/opt/labspace/content, plus the Docker Scout CLI plugin (docker/scout-cli:1.29.0). The sbxshellagent has nodocker scout, and the lab relies ondocker scout compare..dockerignore: keeps the kit's build context to the lab content. It doesn't affect the dinner image, which builds fromproject/..github/workflows/publish-kit.yaml: on every push tomain(or a manual run onmain), publishesghcr.io/<owner>/labsbx-dhi-launchas:latestand:sha-<short>, plus:<version>fromdhi-launch.yamlthe first time that version is published (never overwritten). Pull requests only build and validate withkit-tck.README.md: new "Run this Labspace in a Docker Sandbox (option 2)" section.Tested
With sbx v0.54 on Windows, the local labsbxes kit and this kit, from an empty folder:
~/projectis seededdocker scout versionworks in the sandboxdocker build(PyPI) anddocker compose up -d --buildwork, and the app answers onlocalhost:5001from the hostghcr.io/mathieu-benoit/dinner:initialand Docker Hub work, anddhi.ioand Scout are reachableNot tested
docker loginand thedocker scout comparesteps (need a Docker account):0.1.0; then make the newlabsbx-dhi-launchpackage public.🤖 Generated with Claude Code