Mirror public test images to internal registry#313
Open
pawelchcki wants to merge 1 commit intomasterfrom
Open
Conversation
- Add mirror_images.py for lock file generation, lint checking, and mirroring - Add mirror_images.lock.yaml with resolved digests for all images - Use MIRROR_REGISTRY ARG for flexible image sourcing in Dockerfiles - Add GitLab CI jobs for linting and mirroring images - Auto-cancel previous pipelines on new push - Add AGENTS.md with codebase overview for AI agents
aa7c235 to
07d3131
Compare
3 tasks
7defe6c to
00532b0
Compare
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.
Summary
Replaces all public Docker image references with
registry.ddbuild.iomirrors and adds tooling to manage them.mirror_images.py: CLI tool for managing mirrored images — supportslint,add,relock, andmirrorsubcommandsmirror_images.lock.yaml: Lock file with resolved digests for all 101 imagesmirror_images.yaml: Source-of-truth config listing all images to mirror.gitlab/mirror.yml: CI job to mirror images and lint for public referencesMIRROR_REGISTRYbuild-arg: Defaults to mirror registry; set to empty for GHA (public images)AGENTS.mdwith codebase overview for AI agentsSupersedes
This PR now includes all changes from #317 (use mirrored images for Docker references). History has been squashed into a single commit.
Test plan
bin/mirror_images.py lintpasses (no public image references)bin/mirror_images.py mirrorpushes images toregistry.ddbuild.ioMIRROR_REGISTRY="")MIRROR_REGISTRY