Repository navigation
feat(docker): build the erc7730 serve image and publish it to GHCR on release - #378
Merged
Merged
Conversation
… release Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Wiz Scan Summary
To detect these findings earlier in the dev lifecycle, try the Wiz Code extension for VS Code, JetBrains, or Visual Studio. |
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The GHCR release job has not run, and a maintainer must verify publishing permissions, public package visibility, and an unauthenticated CAL CI image pull before relying on this deployment path.
No open issues 🎉
What changed in this PR
Packages the erc7730 serve HTTP descriptor service as a Docker image for use as a CAL sidecar, with release-driven publishing to GitHub Container Registry.
Changes:
- Adds a multi-stage image with locked, hash-verified production dependencies and a non-root runtime.
- Publishes version-tagged images on releases, including prereleases, while skipping PyPI publishing for prereleases.
- Sources Python and PDM versions from mise and limits the Docker build context to required files.
| File | Description |
|---|---|
Dockerfile |
Builds the service image and runs it on port 8730 as UID 65532. |
.github/workflows/release.yml |
Publishes images to GHCR and excludes prereleases from artifact publishing. |
.dockerignore |
Restricts the build context to source, dependency files, README, and license. |
Review effort: Balanced
fsamier
approved these changes
Nov 27, 2026
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.
Adds a Docker image of
erc7730 serve(#376). A release publishes it toghcr.io/ledgerhq/python-erc7730:X.Y.Z, so it can run as a sidecar.pdm export --prod, thenpip install --require-hashesinto a venv. Only that venv is copied into the final image, which runs as uid 65532.PYTHON_VERSIONandPDM_VERSIONcome frommise current, so.mise.tomlis the only source.VERSIONreplaces the git version (scm), since the build context has no.git. A missing arg fails the build.python:X.Y.Z-slimtag is rebuilt upstream, so each release gets the Debian patches of the day, at the cost of byte-for-byte reproducibility.gh release create vX.Y.Z-rcN --prerelease --target <branch>publishes the image only. Thepublishjob skips pre-releases, so no RC wheel goes to PyPI.Verified locally:
/healthanswers.usdt-descriptor.jsonoutput equalsusdt.jsononce sorted by selector.1.0.14rc1.Not verified:
🤖 Generated with Claude Code