Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate mysql image to artifact registry #107

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 5.7/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mysql:5.7.37@sha256:66480693e01295d85954bb5dbe2f41f29ebceb57d3d8098ea0c9d201473f2d8b
FROM mysql:5.7.37@sha256:1520c2db1591b37fc7f2c0bc72b4e0a002afed6fcc2397f7bcd2bbdff490c930

ENV DEBIAN_FRONTEND noninteractive

Expand Down
18 changes: 15 additions & 3 deletions 8.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
FROM mysql:8.0.28@sha256:92d27b8222bbcf53bc42c70ca7cd1010d6c0527efc61f14980ce77c50932bef4
FROM mysql:8.0.40-bookworm@sha256:49b84fc5916192e766f6879127d4d871e7101e73bd15ca63df4c1d5ba6d08946

ENV DEBIAN_FRONTEND noninteractive

ENV TZ=Europe/Berlin
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN apt-get update \
&& apt-get install --no-install-recommends -y \
ARG MYSQL_APT_CONFIG_DEB_URL='https://dev.mysql.com/get/mysql-apt-config_0.8.33-1_all.deb'
ARG MYSQL_APT_CONFIG_DEB_SHA256='sha256:455ec3690765cff58a4123ba498921fb58fb76c46465e9659180848e997452b6'

ADD --checksum=$MYSQL_APT_CONFIG_DEB_SHA256 $MYSQL_APT_CONFIG_DEB_URL /root/mysql-apt-config.deb

RUN # mysql-apt-config fails if this directory does not already exist: \
mkdir -p /etc/apt/sources.list.d \
&& dpkg -i /root/mysql-apt-config.deb \
&& rm /root/mysql-apt-config.deb \
&& apt '--option=APT::Acquire::Retries="3"' update \
&& apt '--option=APT::Acquire::Retries="3"' install --no-install-recommends -y locales \
&& rm -rf /var/lib/apt/lists/*
RUN apt update \
&& apt install --no-install-recommends -y \
locales \
&& rm -rf /var/lib/apt/lists/*

Expand Down
5 changes: 4 additions & 1 deletion cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
steps:
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'eu.gcr.io/shopware-179114/mysql:5.7', '.']
args: ['build', '-t', 'europe-west3-docker.pkg.dev/shopware-179114/sw6-demo-shops/mysql:5.7', '.']
dir: '5.7'
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'europe-west3-docker.pkg.dev/shopware-179114/sw6-demo-shops/mysql:8.0', '.']
dir: '8.0'
images:
- 'eu.gcr.io/shopware-179114/mysql:5.7'