Skip to content

Commit 335fb9f

Browse files
author
inductor
committed
update debian base version to buster
1 parent 3dfa7a3 commit 335fb9f

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

5.6/Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM debian:stretch-slim
1+
FROM debian:buster-slim
22

33
# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
44
RUN groupadd -r mysql && useradd -r -g mysql mysql
@@ -44,9 +44,9 @@ RUN set -ex; \
4444
apt-key list > /dev/null
4545

4646
ENV MYSQL_MAJOR 5.6
47-
ENV MYSQL_VERSION 5.6.47-1debian9
47+
ENV MYSQL_VERSION 5.6.47-1debian10
4848

49-
RUN echo "deb http://repo.mysql.com/apt/debian/ stretch mysql-${MYSQL_MAJOR}" > /etc/apt/sources.list.d/mysql.list
49+
RUN echo "deb http://repo.mysql.com/apt/debian/ buster mysql-${MYSQL_MAJOR}" > /etc/apt/sources.list.d/mysql.list
5050

5151
# the "/var/lib/mysql" stuff here is because the mysql-server postinst doesn't have an explicit way to disable the mysql_install_db codepath besides having a database already "configured" (ie, stuff in /var/lib/mysql/mysql)
5252
# also, we set debconf keys to make APT a little quieter

5.7/Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM debian:stretch-slim
1+
FROM debian:buster-slim
22

33
# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
44
RUN groupadd -r mysql && useradd -r -g mysql mysql
@@ -46,9 +46,9 @@ RUN set -ex; \
4646
apt-key list > /dev/null
4747

4848
ENV MYSQL_MAJOR 5.7
49-
ENV MYSQL_VERSION 5.7.29-1debian9
49+
ENV MYSQL_VERSION 5.7.29-1debian10
5050

51-
RUN echo "deb http://repo.mysql.com/apt/debian/ stretch mysql-${MYSQL_MAJOR}" > /etc/apt/sources.list.d/mysql.list
51+
RUN echo "deb http://repo.mysql.com/apt/debian/ buster mysql-${MYSQL_MAJOR}" > /etc/apt/sources.list.d/mysql.list
5252

5353
# the "/var/lib/mysql" stuff here is because the mysql-server postinst doesn't have an explicit way to disable the mysql_install_db codepath besides having a database already "configured" (ie, stuff in /var/lib/mysql/mysql)
5454
# also, we set debconf keys to make APT a little quieter

8.0/Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM debian:stretch-slim
1+
FROM debian:buster-slim
22

33
# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added
44
RUN groupadd -r mysql && useradd -r -g mysql mysql
@@ -46,9 +46,9 @@ RUN set -ex; \
4646
apt-key list > /dev/null
4747

4848
ENV MYSQL_MAJOR 8.0
49-
ENV MYSQL_VERSION 8.0.19-1debian9
49+
ENV MYSQL_VERSION 8.0.19-1debian10
5050

51-
RUN echo "deb http://repo.mysql.com/apt/debian/ stretch mysql-${MYSQL_MAJOR}" > /etc/apt/sources.list.d/mysql.list
51+
RUN echo "deb http://repo.mysql.com/apt/debian/ buster mysql-${MYSQL_MAJOR}" > /etc/apt/sources.list.d/mysql.list
5252

5353
# the "/var/lib/mysql" stuff here is because the mysql-server postinst doesn't have an explicit way to disable the mysql_install_db codepath besides having a database already "configured" (ie, stuff in /var/lib/mysql/mysql)
5454
# also, we set debconf keys to make APT a little quieter

update.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ if [ ${#versions[@]} -eq 0 ]; then
99
fi
1010
versions=( "${versions[@]%/}" )
1111

12-
defaultDebianVariant='stretch-slim'
12+
defaultDebianVariant='buster-slim'
1313
declare -A debianVariants=(
1414
#[5.5]='jessie'
1515
)
1616

1717
for version in "${versions[@]}"; do
1818
debianVariant="${debianVariants[$version]:-$defaultDebianVariant}"
19-
debianSuite="${debianVariant%%-*}" # "stretch", etc
19+
debianSuite="${debianVariant%%-*}" # "buster", etc
2020

2121
cp -a .template.Debian/docker-entrypoint.sh "$version/docker-entrypoint.sh"
2222

0 commit comments

Comments
 (0)