Skip to content

chore(docker): pull python base image from GHCR mirror - #8535

Merged
ElioDiNino merged 2 commits into
masterfrom
junior/python-base-image-mirror
Oct 9, 2026
Merged

ElioDiNino merged 2 commits into
masterfrom
junior/python-base-image-mirror

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Switch the build_base stage from Docker Hub's python:${PYTHON_VERSION}-slim-trixie to ghcr.io/getsentry/image-mirror-library-python:${PYTHON_VERSION}-slim-trixie.

Why: CI's Build snuba CI image step pulls from Docker Hub without logging in, so GitHub-hosted runners have been hitting anonymous rate limits:

unexpected status from HEAD request to https://registry-1.docker.io/v2/library/python/manifests/3.13.12-slim-trixie: 429 Too Many Requests

(example). This blocks every PR while it happens. CI already uses image-mirror for ClickHouse, Kafka, and Zookeeper.

Depends on getsentry/image-mirror#36, which is merged. Its sync run on main was still in progress when I opened this. Re-run CI once the GHCR tag exists and is publicly pullable.

Notes

  • The mirror publishes amd64 + arm64, which matches the platforms image.yml builds.
  • The existing GHCR image-mirror-* packages pull anonymously. The new package should do the same, but that's worth confirming after the first sync.
  • The runtime stages (application, application-debug) already use the dhi-mirror and aren't touched here.
  • Going forward, bumping PYTHON_VERSION means mirroring the new tag in image-mirror first. I added a comment in the Dockerfile saying so.

via @joshuarli.

--

View Junior Session [Sentry]

Snuba CI builds have been failing with 429s from anonymous Docker Hub pulls
of python:3.13.12-slim-trixie on GitHub-hosted runners. Use the
getsentry/image-mirror copy on GHCR instead.

Co-Authored-By: Joshua Li <14209781+joshuarli@users.noreply.github.com>
@joshuarli
joshuarli marked this pull request as ready for review October 9, 2026 21:26
@joshuarli
joshuarli requested a review from a team as a code owner October 9, 2026 21:26
@sentry-junior
sentry-junior Bot requested a review from joshuarli October 9, 2026 21:47
Co-Authored-By: Elio Di Nino <elio.dinino@sentry.io>
@ElioDiNino
ElioDiNino enabled auto-merge (squash) October 9, 2026 22:12
@ElioDiNino
ElioDiNino merged commit 3e991a4 into master Oct 9, 2026
69 checks passed
@ElioDiNino
ElioDiNino deleted the junior/python-base-image-mirror branch October 9, 2026 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants