Skip to content

feat(docker): build the erc7730 serve image and publish it to GHCR on release - #378

Merged
TAIP25 merged 2 commits into
mainfrom
feat/docker-image
Nov 27, 2026
Merged

TAIP25 merged 2 commits into
mainfrom
feat/docker-image

Conversation

@TAIP25

@TAIP25 TAIP25 commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Adds a Docker image of erc7730 serve (#376). A release publishes it to ghcr.io/ledgerhq/python-erc7730:X.Y.Z, so it can run as a sidecar.

  • Dependencies come from the hashed lock. The builder runs pdm export --prod, then pip install --require-hashes into a venv. Only that venv is copied into the final image, which runs as uid 65532.
  • Versions are build args. PYTHON_VERSION and PDM_VERSION come from mise current, so .mise.toml is the only source. VERSION replaces the git version (scm), since the build context has no .git. A missing arg fails the build.
  • No digest pin. The python:X.Y.Z-slim tag is rebuilt upstream, so each release gets the Debian patches of the day, at the cost of byte-for-byte reproducibility.
  • RC: gh release create vX.Y.Z-rcN --prerelease --target <branch> publishes the image only. The publish job skips pre-releases, so no RC wheel goes to PyPI.
  • No image build in PR CI, by choice: a broken Dockerfile shows up at the next release.

Verified locally:

  • The image builds (286 MB) and /health answers.
  • The usdt-descriptor.json output equals usdt.json once sorted by selector.
  • An RC version builds as 1.0.14rc1.
  • hadolint and actionlint are clean.

Not verified:

  • The release job has never run.
  • GHCR package visibility: it must be public so that users can pull it without credentials.

🤖 Generated with Claude Code

… release

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added the ci label Nov 26, 2026
@ledger-wiz-cspm-secret-detection

ledger-wiz-cspm-secret-detection Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Wiz Scan Summary

Scanner Findings
Data Finding Sensitive Data -
Secret Finding Secrets -
IaC Misconfiguration IaC Misconfigurations 1 Medium
SAST Finding SAST Findings -
Software Management Finding Software Management Findings -
Total 1 Medium

View scan details in Wiz

To detect these findings earlier in the dev lifecycle, try the Wiz Code extension for VS Code, JetBrains, or Visual Studio.

@TAIP25
TAIP25 marked this pull request as ready for review November 26, 2026 17:25
@TAIP25
TAIP25 requested a review from a team as a code owner November 26, 2026 17:25
@TAIP25
TAIP25 requested a balanced review from Copilot November 26, 2026 17:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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

@TAIP25
TAIP25 merged commit 220783d into main Nov 27, 2026
14 checks passed
@TAIP25
TAIP25 deleted the feat/docker-image branch November 27, 2026 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants