From 119b380f8c6195f6f4320a3161054844b0efccdc Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Wed, 8 May 2024 21:04:38 +0200 Subject: [PATCH 1/3] chore(k8s): Use ghcr.io postgres image instead of dockerhub to avoid rate limits See https://loculus.slack.com/archives/C05G172HL6L/p1715194431820339 --- kubernetes/loculus/templates/keycloak-database-deployment.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kubernetes/loculus/templates/keycloak-database-deployment.yaml b/kubernetes/loculus/templates/keycloak-database-deployment.yaml index a95d2076b8..18449b5b34 100644 --- a/kubernetes/loculus/templates/keycloak-database-deployment.yaml +++ b/kubernetes/loculus/templates/keycloak-database-deployment.yaml @@ -21,7 +21,7 @@ spec: spec: containers: - name: loculus-keycloak-database - image: postgres:latest + image: ghcr.io/cloudnative-pg/postgresql:latest # Use ghcr to avoid dockerhub rate limits ports: - containerPort: 5432 env: From 135caf292454c31ad26665e0877113d2f130b3c0 Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Wed, 8 May 2024 21:07:50 +0200 Subject: [PATCH 2/3] Replace all `postgres:latest` with `ghcr.io/cloudnative-pg/postgresql:latest` --- .../org/loculus/backend/controller/EndpointTestExtension.kt | 2 +- kubernetes/loculus/templates/loculus-database-standin.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/test/kotlin/org/loculus/backend/controller/EndpointTestExtension.kt b/backend/src/test/kotlin/org/loculus/backend/controller/EndpointTestExtension.kt index cafe80e7b2..649e646bfe 100644 --- a/backend/src/test/kotlin/org/loculus/backend/controller/EndpointTestExtension.kt +++ b/backend/src/test/kotlin/org/loculus/backend/controller/EndpointTestExtension.kt @@ -93,7 +93,7 @@ private val log = KotlinLogging.logger { } class EndpointTestExtension : BeforeEachCallback, TestExecutionListener { companion object { - private val postgres: PostgreSQLContainer<*> = PostgreSQLContainer("postgres:latest") + private val postgres: PostgreSQLContainer<*> = PostgreSQLContainer("ghcr.io/cloudnative-pg/postgresql:latest") private var isStarted = false } diff --git a/kubernetes/loculus/templates/loculus-database-standin.yaml b/kubernetes/loculus/templates/loculus-database-standin.yaml index 09cd597348..dd7ceff16d 100644 --- a/kubernetes/loculus/templates/loculus-database-standin.yaml +++ b/kubernetes/loculus/templates/loculus-database-standin.yaml @@ -20,7 +20,7 @@ spec: spec: containers: - name: database - image: postgres:latest + image: ghcr.io/cloudnative-pg/postgresql:latest # Use ghcr to avoid dockerhub rate limits ports: - containerPort: 5432 env: From d970b5e21ca88d2869d7fda7b604aae34cfbcbec Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Wed, 8 May 2024 21:35:04 +0200 Subject: [PATCH 3/3] change back, it seems to work --- .../org/loculus/backend/controller/EndpointTestExtension.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/test/kotlin/org/loculus/backend/controller/EndpointTestExtension.kt b/backend/src/test/kotlin/org/loculus/backend/controller/EndpointTestExtension.kt index 649e646bfe..cafe80e7b2 100644 --- a/backend/src/test/kotlin/org/loculus/backend/controller/EndpointTestExtension.kt +++ b/backend/src/test/kotlin/org/loculus/backend/controller/EndpointTestExtension.kt @@ -93,7 +93,7 @@ private val log = KotlinLogging.logger { } class EndpointTestExtension : BeforeEachCallback, TestExecutionListener { companion object { - private val postgres: PostgreSQLContainer<*> = PostgreSQLContainer("ghcr.io/cloudnative-pg/postgresql:latest") + private val postgres: PostgreSQLContainer<*> = PostgreSQLContainer("postgres:latest") private var isStarted = false }