Skip to content

Commit 756df2e

Browse files
authored
Merge pull request #627 from inductor/feature/update_debian_buster
update debian base version to buster
2 parents a77d4a5 + 202bf4b commit 756df2e

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

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
@@ -48,9 +48,9 @@ RUN set -ex; \
4848
apt-key list > /dev/null
4949

5050
ENV MYSQL_MAJOR 5.7
51-
ENV MYSQL_VERSION 5.7.29-1debian9
51+
ENV MYSQL_VERSION 5.7.29-1debian10
5252

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

5555
# 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)
5656
# 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
@@ -48,9 +48,9 @@ RUN set -ex; \
4848
apt-key list > /dev/null
4949

5050
ENV MYSQL_MAJOR 8.0
51-
ENV MYSQL_VERSION 8.0.19-1debian9
51+
ENV MYSQL_VERSION 8.0.19-1debian10
5252

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

5555
# 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)
5656
# also, we set debconf keys to make APT a little quieter

update.sh

+3-3
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=(
14-
#[5.5]='jessie'
14+
[5.6]='stretch-slim'
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)