Skip to content

ci(linux): pull Docker Hub images through mirror.gcr.io instead of anonymously - #4606

Merged
datlechin merged 5 commits into
mainfrom
ci/linux-docker-image-mirror
Nov 27, 2026
Merged

datlechin merged 5 commits into
mainfrom
ci/linux-docker-image-mirror

Conversation

@datlechin

@datlechin datlechin commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Summary

  • start_container pulls each Docker Hub image through the registry named in TABLEPRO_TEST_DOCKER_HUB_MIRROR, then tags it with its Docker Hub name, the way a daemon's registry-mirrors does. If the mirror pull fails, testcontainers pulls from Docker Hub as before. Images from other registries (SQL Server's MCR) skip the mirror.
  • build-linux.yml sets that variable to mirror.gcr.io for every job.
  • Job images and docker run images in build-linux.yml, linux-packages.yml and release-linux.yml now name mirror.gcr.io/library/ubuntu or .../fedora. These are official images, which the mirror keeps cached.
  • build-deb.sh takes its image from UBUNTU_IMAGE (default ubuntu). The deb job sets it to the mirror.
  • No daemon registry-mirrors setting: a job container pulls its image before any step runs, and its tests reach a daemon no step can configure. Both rate-limit failures so far were in container jobs on AWS-hosted runners (runs 44753132425, 45738826351).
  • .claude/rules/ci.md (Writing workflow and lint code) and linux/docs/testing.md (Docker or Podman) document the rule and the variable.
  • Tags are unchanged. Every fixture and job image has the same manifest digest on mirror.gcr.io as on Docker Hub (HEAD probe, 2026-11-26). No secret is used.

Test plan

  • New unit test: a_mirror_stands_in_for_docker_hub_and_no_other_registry.

  • New Docker test: an_image_comes_through_the_mirror_under_its_docker_hub_name.

  • Local Docker run with the mirror set. These pass: the pull-retry test, plus the PostgreSQL TLS, PgBouncer and OpenSSH fixture tests. Each image shows up under its Docker Hub name and its mirror.gcr.io name.

  • Also passing: actionlint, zizmor, shellcheck, the CI tooling tests from ci-lint.yml, and linux/build-aux/tests.

  • This PR's CI runs every Docker test job and the package jobs on the mirrored images.

  • CI on 3e44031: every Docker test job, Fast checks and the Fedora 45 RPM passed on the mirrored images. The Flatpak, Debian and Fedora 44 RPM jobs failed only on account::step_up_tests::a_step_up_that_comes_back_after_an_earlier_sign_in_committed_is_revoked_not_adopted, which fails the same way on main (nightly 45883112027). test(core): let each step-up test permit release one sign-in page #4619 fixes that test.

  • Every image tag the workflows name answers on mirror.gcr.io (HEAD probe, 2026-11-27): ubuntu 22.04, 24.04, 26.04, 26.10, resolute, stonking; fedora 44, 45.

  • Review: Codex, one round on the branch after merging main, no findings.

@datlechin
datlechin enabled auto-merge (squash) November 26, 2026 07:09
@datlechin
datlechin disabled auto-merge November 26, 2026 07:24
mirror.gcr.io documents only cached images. start_container now pulls through it and tags the Docker Hub name, as a daemon's registry-mirrors does, and leaves a miss to testcontainers.
@datlechin
datlechin enabled auto-merge (squash) November 26, 2026 07:27
@datlechin
datlechin disabled auto-merge November 27, 2026 03:36
@datlechin
datlechin merged commit 2dc1d14 into main Nov 27, 2026
28 of 43 checks passed
@datlechin
datlechin deleted the ci/linux-docker-image-mirror branch November 27, 2026 03:36
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