Skip to content

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

FIX (testing): Pull MinIO from quay, which still publishes it

Rostislav Dugin862cd68739b8
diff --git a/backend/Makefile b/backend/Makefile
index 18f46ddb..59b8eb46 100644
--- a/backend/Makefile
+++ b/backend/Makefile
@@ -33,9 +33,11 @@ clean-testcontainers:
if [ -n "$$ids" ]; then docker rm -f $$ids; else echo "no leftover testcontainers"; fi
pull-testcontainers:
- # Tag must start with a digit so a quoted "postgres:postgres" chown arg in physical
- # tests isn't mistaken for an image tag; every real image tag here is version-like.
- @grep -rhoE '"(mysql|mariadb|mongo|postgres):[0-9][a-zA-Z0-9._-]*"' ./internal \
+ # For the bare names the tag must start with a digit, so a quoted "postgres:postgres"
+ # chown arg in physical tests isn't mistaken for an image tag; every real image tag
+ # there is version-like. A registry-qualified name cannot be confused with anything,
+ # so its tag is matched as written.
+ @grep -rhoE '"(mysql|mariadb|mongo|postgres):[0-9][a-zA-Z0-9._-]*"|"quay\.io/minio/minio:[a-zA-Z0-9._-]+"' ./internal \
| tr -d '"' | sort -u \
| xargs -P 4 -I {} sh -c 'for n in 1 2 3; do docker pull {} && exit 0; echo "retry {} ($$n)"; sleep 3; done; echo "FAILED to pull {} after 3 attempts"; exit 1'
diff --git a/backend/internal/util/testing/containers/minio.go b/backend/internal/util/testing/containers/minio.go
index 87d3cf62..14cf9015 100644
--- a/backend/internal/util/testing/containers/minio.go
+++ b/backend/internal/util/testing/containers/minio.go
@@ -17,13 +17,19 @@ const (
const minioPort = "9000/tcp"
+// MinIO withdrew its Docker Hub repository, so `minio/minio` now answers every pull
+// with an access denial. Quay is where the project publishes, and the tag is pinned
+// because a test that silently follows upstream is a test that breaks on someone
+// else's release day.
+const MinioImage = "quay.io/minio/minio:RELEASE.2025-09-07T16-13-09Z"
+
// StartMinio's container starts empty: the caller creates whatever bucket it needs against the
// returned endpoint, or for failure-path tests points at a missing one.
func StartMinio(t *testing.T) Endpoint {
t.Helper()
req := testcontainers.ContainerRequest{
- Image: "minio/minio:latest",
+ Image: MinioImage,
ExposedPorts: []string{minioPort},
Env: map[string]string{
"MINIO_ROOT_USER": MinioRootUser,