Skip to content
This repository was archived by the owner on Jul 1, 2026. It is now read-only.

ci: pull base images from the ECR public mirror - #4

Merged
sjincho merged 1 commit into
mainfrom
ci/ecr-base-images
Jun 19, 2026
Merged

ci: pull base images from the ECR public mirror#4
sjincho merged 1 commit into
mainfrom
ci/ecr-base-images

Conversation

@sjincho

@sjincho sjincho commented Jun 19, 2026

Copy link
Copy Markdown

Summary

The release build (ridi-docker-publish.yml, tag 1.3.65-ridi.1) failed at the base-image pull:

docker.io/library/python … 401 Unauthorized: access token has insufficient scopes

Docker Hub organization access tokens (OATs) are scoped to the org's repositories, so once buildx is logged in with the OAT it can't authorize a pull of a public base image (library/python). (A personal token can; an OAT can't.)

Change

Pull the python base images from the ECR public mirrorpublic.ecr.aws/docker/library/python:{3.12-alpine,3.12-slim} (Dockerfile + Dockerfile.full). Anonymous, byte-identical to Docker Hub's official images, and not subject to the OAT. This is RIDI's monorepo convention. The push to ridi/ministack still uses the OAT.

Verified the regular image builds locally from the new base.

Docker Hub org access tokens (OATs) are scoped to the org's repos, so once
buildx is authenticated with the OAT it can't pull public base images
(docker.io/library/python -> 401 'access token has insufficient scopes'),
breaking the release build. Pull the python base from
public.ecr.aws/docker/library (anonymous, byte-identical mirror, no Docker Hub
auth) — matching RIDI's monorepo convention. Push to ridi/ministack still uses
the OAT.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@sjincho
sjincho merged commit f3af727 into main Jun 19, 2026
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant