diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e911571a4..032b0693b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## HEAD +* Bump CI version of MySQL from 5.7 to 8.0 * Bump golangci-lint from 1.51.1 to 1.55.1 (developers should update to this version) ## v1.5.3 diff --git a/cloudbuild_master.yaml b/cloudbuild_master.yaml index f3e2833866..73db4ac90e 100644 --- a/cloudbuild_master.yaml +++ b/cloudbuild_master.yaml @@ -2,7 +2,7 @@ timeout: 1800s substitutions: _CLUSTER_NAME: trillian-opensource-ci _MASTER_ZONE: us-central1-a - _MYSQL_TAG: "5.7" + _MYSQL_TAG: "8.0" _MYSQL_ROOT_PASSWORD: "" _MYSQL_PASSWORD: "" options: @@ -12,20 +12,20 @@ steps: name : gcr.io/cloud-builders/docker args: - pull - - marketplace.gcr.io/google/mysql5:${_MYSQL_TAG} + - marketplace.gcr.io/google/mysql8:${_MYSQL_TAG} - id: tag_mysql name: gcr.io/cloud-builders/docker args: - tag - - marketplace.gcr.io/google/mysql5:${_MYSQL_TAG} - - gcr.io/${PROJECT_ID}/mysql5:${_MYSQL_TAG} + - marketplace.gcr.io/google/mysql8:${_MYSQL_TAG} + - gcr.io/${PROJECT_ID}/mysql8:${_MYSQL_TAG} waitFor: - pull_mysql - id: push_mysql name: gcr.io/cloud-builders/docker args: - push - - gcr.io/${PROJECT_ID}/mysql5:${_MYSQL_TAG} + - gcr.io/${PROJECT_ID}/mysql8:${_MYSQL_TAG} waitFor: - tag_mysql - id: build_db_server diff --git a/cloudbuild_pr.yaml b/cloudbuild_pr.yaml index a680ce56ed..05349ad19d 100644 --- a/cloudbuild_pr.yaml +++ b/cloudbuild_pr.yaml @@ -5,7 +5,7 @@ timeout: 1800s substitutions: _CLUSTER_NAME: trillian-opensource-ci _MASTER_ZONE: us-central1-a - _MYSQL_TAG: "5.7" + _MYSQL_TAG: "8.0" _MYSQL_ROOT_PASSWORD: "" _MYSQL_PASSWORD: "" options: @@ -17,20 +17,20 @@ steps: name : gcr.io/cloud-builders/docker args: - pull - - marketplace.gcr.io/google/mysql5:${_MYSQL_TAG} + - marketplace.gcr.io/google/mysql8:${_MYSQL_TAG} - id: tag_mysql name: gcr.io/cloud-builders/docker args: - tag - - marketplace.gcr.io/google/mysql5:${_MYSQL_TAG} - - gcr.io/${PROJECT_ID}/mysql5:${_MYSQL_TAG} + - marketplace.gcr.io/google/mysql8:${_MYSQL_TAG} + - gcr.io/${PROJECT_ID}/mysql8:${_MYSQL_TAG} waitFor: - pull_mysql - id: push_mysql name: gcr.io/cloud-builders/docker args: - push - - gcr.io/${PROJECT_ID}/mysql5:${_MYSQL_TAG} + - gcr.io/${PROJECT_ID}/mysql8:${_MYSQL_TAG} waitFor: - tag_mysql diff --git a/cloudbuild_tag.yaml b/cloudbuild_tag.yaml index 37a5065705..35d9e5920b 100644 --- a/cloudbuild_tag.yaml +++ b/cloudbuild_tag.yaml @@ -1,6 +1,6 @@ timeout: 1800s substitutions: - _MYSQL_TAG: "5.7" + _MYSQL_TAG: "8.0" options: machineType: E2_HIGHCPU_32 steps: @@ -8,20 +8,20 @@ steps: name : gcr.io/cloud-builders/docker args: - pull - - marketplace.gcr.io/google/mysql5:${_MYSQL_TAG} + - marketplace.gcr.io/google/mysql8:${_MYSQL_TAG} - id: tag_mysql name: gcr.io/cloud-builders/docker args: - tag - - marketplace.gcr.io/google/mysql5:${_MYSQL_TAG} - - gcr.io/${PROJECT_ID}/mysql5:${_MYSQL_TAG} + - marketplace.gcr.io/google/mysql8:${_MYSQL_TAG} + - gcr.io/${PROJECT_ID}/mysql8:${_MYSQL_TAG} waitFor: - pull_mysql - id: push_mysql name: gcr.io/cloud-builders/docker args: - push - - gcr.io/${PROJECT_ID}/mysql5:${_MYSQL_TAG} + - gcr.io/${PROJECT_ID}/mysql8:${_MYSQL_TAG} waitFor: - tag_mysql - id: build_db_server diff --git a/examples/deployment/docker/db_server/Dockerfile b/examples/deployment/docker/db_server/Dockerfile index 4af5e1a8ad..a113cc285d 100644 --- a/examples/deployment/docker/db_server/Dockerfile +++ b/examples/deployment/docker/db_server/Dockerfile @@ -1,4 +1,4 @@ -FROM gcr.io/trillian-opensource-ci/mysql5:5.7@sha256:3f355bed2d85d4ad266771b3c7ddf4251ee5d8a45afc140336d1c0cab9dc5171 +FROM gcr.io/trillian-opensource-ci/mysql8:8.0@sha256:89d1c5d48cee111cdc6348704044a60578f5c0af9dfc55b6e58e32a01906bd21 # Patch the OS-level packages and remove unneeded dependencies. ENV DEBIAN_FRONTEND=noninteractive diff --git a/examples/deployment/kubernetes/mysql/image/Dockerfile b/examples/deployment/kubernetes/mysql/image/Dockerfile index 6e79feb6ff..10ead6a61f 100644 --- a/examples/deployment/kubernetes/mysql/image/Dockerfile +++ b/examples/deployment/kubernetes/mysql/image/Dockerfile @@ -25,7 +25,7 @@ RUN apt-get update \ # consistently, regardless of whatever dependencies get added RUN groupadd -r mysql && useradd -r -g mysql mysql -ENV MYSQL_VERSION 5.7 +ENV MYSQL_VERSION 8.0 ENV TERM linux # Install perl. diff --git a/integration/cloudbuild/docker-compose.mysql.yml b/integration/cloudbuild/docker-compose.mysql.yml index 82b49045c8..7989e117f0 100644 --- a/integration/cloudbuild/docker-compose.mysql.yml +++ b/integration/cloudbuild/docker-compose.mysql.yml @@ -2,7 +2,7 @@ version: '3.1' services: db: - image: ${MYSQLD_IMAGE:-mysql:5.7} + image: ${MYSQLD_IMAGE:-mysql:8.0} restart: always environment: MYSQL_ROOT_PASSWORD: 'bananas'