From 7bc75a13cb2ee21d2b19e08a4bf2a59fc3bb4085 Mon Sep 17 00:00:00 2001 From: Kevin Hong Date: Thu, 26 Nov 2026 19:17:08 +0800 Subject: [PATCH] [CU-1k5fpda7nfu] Pull Docker Hub images through the Artifact Registry pull-through cache Image builds and Concourse tasks pull from Docker Hub without logging in and fail with HTTP 429 when the shared build addresses hit the anonymous rate limit. The dnastack-container-store dockerhub remote repository caches each image on first pull and fetches from Docker Hub as our own account. Images used at several versions across repos move to one version each, so builds share cached copies. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_011GSYqJcincRknNJSZNKc9p --- ci/e2e-tests/Dockerfile | 4 ++-- ci/impl/Dockerfile | 4 ++-- ci/predeploy/Dockerfile | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ci/e2e-tests/Dockerfile b/ci/e2e-tests/Dockerfile index 30607db..f927478 100644 --- a/ci/e2e-tests/Dockerfile +++ b/ci/e2e-tests/Dockerfile @@ -6,7 +6,7 @@ # This stage depends on a JDK image and uses Maven Wrapper to pull in dependencies and build the project # from source. -FROM amazoncorretto:21-alpine@sha256:600e99e39da14b6a909027a924136c423e9334cb7347a8a77d5908bdaa3011b7 AS build +FROM us-central1-docker.pkg.dev/dnastack-container-store/dockerhub/library/amazoncorretto:21.0.13-alpine3.24@sha256:600e99e39da14b6a909027a924136c423e9334cb7347a8a77d5908bdaa3011b7 AS build ARG APP_NAME ARG APP_VERSION WORKDIR /build @@ -35,7 +35,7 @@ RUN ./mvnw -B -o process-test-classes # This stage uses a JRE rather than JDK because it doesn't have to compile any Java sources. # It is assembling the runnable test container and packaging all its Maven dependencies -FROM amazoncorretto:21-alpine@sha256:600e99e39da14b6a909027a924136c423e9334cb7347a8a77d5908bdaa3011b7 +FROM us-central1-docker.pkg.dev/dnastack-container-store/dockerhub/library/amazoncorretto:21.0.13-alpine3.24@sha256:600e99e39da14b6a909027a924136c423e9334cb7347a8a77d5908bdaa3011b7 ARG APP_NAME ARG APP_VERSION diff --git a/ci/impl/Dockerfile b/ci/impl/Dockerfile index cdbc87f..8ceda32 100644 --- a/ci/impl/Dockerfile +++ b/ci/impl/Dockerfile @@ -4,7 +4,7 @@ ## Stage 1: Build and test the Java Sources ## -FROM amazoncorretto:21-alpine@sha256:600e99e39da14b6a909027a924136c423e9334cb7347a8a77d5908bdaa3011b7 AS build +FROM us-central1-docker.pkg.dev/dnastack-container-store/dockerhub/library/amazoncorretto:21.0.13-alpine3.24@sha256:600e99e39da14b6a909027a924136c423e9334cb7347a8a77d5908bdaa3011b7 AS build ARG APP_NAME ARG APP_VERSION @@ -39,7 +39,7 @@ RUN rm /build/.m2/settings*.xml # This stage uses a JRE rather than JDK because it doesn't have to build anything; it just runs the fat jar # produced by the previous stage. -FROM amazoncorretto:21-alpine@sha256:600e99e39da14b6a909027a924136c423e9334cb7347a8a77d5908bdaa3011b7 +FROM us-central1-docker.pkg.dev/dnastack-container-store/dockerhub/library/amazoncorretto:21.0.13-alpine3.24@sha256:600e99e39da14b6a909027a924136c423e9334cb7347a8a77d5908bdaa3011b7 ARG APP_NAME ARG APP_VERSION diff --git a/ci/predeploy/Dockerfile b/ci/predeploy/Dockerfile index 5d2efd8..2037bc8 100644 --- a/ci/predeploy/Dockerfile +++ b/ci/predeploy/Dockerfile @@ -4,7 +4,7 @@ ## Stage 1: Extract the tenant-lifecycle changelog, which ships inside the library jar ## -FROM amazoncorretto:21-alpine@sha256:600e99e39da14b6a909027a924136c423e9334cb7347a8a77d5908bdaa3011b7 AS build +FROM us-central1-docker.pkg.dev/dnastack-container-store/dockerhub/library/amazoncorretto:21.0.13-alpine3.24@sha256:600e99e39da14b6a909027a924136c423e9334cb7347a8a77d5908bdaa3011b7 AS build WORKDIR /build ADD target/pom.xml ./