From b74187ca1023d1a01882eb0d7275fad0366ee428 Mon Sep 17 00:00:00 2001 From: Gero Posmyk-Leinemann Date: Fri, 19 Sep 2025 07:52:17 +0000 Subject: [PATCH] fix: migrate from bitnami/mysql to bitnamilegacy/mysql - Update GitHub Actions workflow to use bitnamilegacy/mysql image - Configure Helm chart to pull from docker.io/bitnamilegacy registry - Update related comments to reflect the migration Addresses bitnami deprecation of public Debian-based images. Bitnami has moved existing images to bitnamilegacy repository where they remain available for development use. Fixes: CLC-1948 Co-authored-by: Ona --- .github/workflows/build.yml | 4 ++-- components/gitpod-db/BUILD.yaml | 2 +- install/installer/third_party/charts/mysql/values.yaml | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 29500a604931d6..80bc52de0fe6d7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -175,10 +175,10 @@ jobs: cancel-in-progress: ${{ needs.configuration.outputs.is_main_branch == 'false' }} services: mysql: - image: bitnami/mysql:8.0.33-debian-11-r24 + image: bitnamilegacy/mysql:8.0.33-debian-11-r24 env: MYSQL_ROOT_PASSWORD: test - #MYSQL_TCP_PORT: 23306 bitnami/mysql does not honor this, but has it's own: + #MYSQL_TCP_PORT: 23306 bitnamilegacy/mysql does not honor this, but has it's own: MYSQL_PORT_NUMBER: 23306 MYSQL_AUTHENTICATION_PLUGIN: mysql_native_password ports: diff --git a/components/gitpod-db/BUILD.yaml b/components/gitpod-db/BUILD.yaml index e47c742d942150..4e698bb4f2331f 100644 --- a/components/gitpod-db/BUILD.yaml +++ b/components/gitpod-db/BUILD.yaml @@ -76,7 +76,7 @@ packages: # Check if a DB is present. If not: start one and wait until it's up # Note: In CI there is a DB running as sidecar; in workspaces we're starting it once. # Re-use of the instance because of the init scripts (cmp. next step). - # (gpl): It would be nice to use bitnami/mysql here as we do in previews. However the container does not start in Gitpod workspaces due to some docker/kernel/namespace issue. + # (gpl): It would be nice to use bitnamilegacy/mysql here as we do in previews. However the container does not start in Gitpod workspaces due to some docker/kernel/namespace issue. - ["sh", "-c", "mysqladmin ping --wait=${DB_RETRIES:-1} -h $DB_HOST --port $DB_PORT -p$DB_PASSWORD -u$DB_USER --default-auth=mysql_native_password --silent || (docker container rm test-mysql; docker run --name test-mysql -d -e MYSQL_ROOT_PASSWORD=$DB_PASSWORD -e MYSQL_TCP_PORT=$DB_PORT -p $DB_PORT:$DB_PORT mysql:8.0.33 --default-authentication-plugin=mysql_native_password; while ! mysqladmin ping -h \"$DB_HOST\" -P \"$DB_PORT\" -p$DB_PASSWORD -u$DB_USER --default-auth=mysql_native_password --silent; do echo \"waiting for DB...\"; sleep 2; done)"] # Apply the DB initialization scripts (re-creates the "gitpod" DB if already there) - ["mkdir", "-p", "init-scripts"] diff --git a/install/installer/third_party/charts/mysql/values.yaml b/install/installer/third_party/charts/mysql/values.yaml index 538591afc5be4e..dea864cf76ebb3 100644 --- a/install/installer/third_party/charts/mysql/values.yaml +++ b/install/installer/third_party/charts/mysql/values.yaml @@ -5,6 +5,7 @@ mysql: fullnameOverride: mysql image: + registry: docker.io/bitnamilegacy tag: "overwritten" primary: extraEnvVars: