Skip to content

Mirror public test images to internal registry#313

Open
pawelchcki wants to merge 1 commit intomasterfrom
update_images
Open

Mirror public test images to internal registry#313
pawelchcki wants to merge 1 commit intomasterfrom
update_images

Conversation

@pawelchcki
Copy link
Contributor

@pawelchcki pawelchcki commented Feb 27, 2026

Summary

Replaces all public Docker image references with registry.ddbuild.io mirrors and adds tooling to manage them.

  • mirror_images.py: CLI tool for managing mirrored images — supports lint, add, relock, and mirror subcommands
  • mirror_images.lock.yaml: Lock file with resolved digests for all 101 images
  • mirror_images.yaml: Source-of-truth config listing all images to mirror
  • .gitlab/mirror.yml: CI job to mirror images and lint for public references
  • MIRROR_REGISTRY build-arg: Defaults to mirror registry; set to empty for GHA (public images)
  • Replace all image references across CI configs, Dockerfiles, and compose files
  • Auto-cancel previous pipelines on new push
  • Add AGENTS.md with codebase overview for AI agents

Supersedes

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 lint passes (no public image references)
  • bin/mirror_images.py mirror pushes images to registry.ddbuild.io
  • GitLab CI pipeline passes (images pulled from mirror registry)
  • GHA system-tests workflow passes (images pulled from public registries via MIRROR_REGISTRY="")
  • Local builds work with and without MIRROR_REGISTRY

- 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
@pawelchcki pawelchcki force-pushed the update_images branch 2 times, most recently from aa7c235 to 07d3131 Compare March 6, 2026 22:23
@pawelchcki pawelchcki force-pushed the update_images branch 2 times, most recently from 7defe6c to 00532b0 Compare March 6, 2026 22:33
@pawelchcki pawelchcki marked this pull request as ready for review March 6, 2026 22:35
@pawelchcki pawelchcki requested a review from a team as a code owner March 6, 2026 22:35
@pawelchcki pawelchcki requested review from cataphract and removed request for a team March 6, 2026 22:35
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.

1 participant