Skip to content

Commit 7a7d6a5

Browse files
author
Piotr Obrzut
committed
Revert "Updated image base to OL8".
The change was pushed too late in the release cycle, it requires yum repo changes that couldn't be made on time. Change-Id: If5285346fe91bc08b82e6ce9b234a91c49630fd7
1 parent 9854975 commit 7a7d6a5

File tree

5 files changed

+20
-47
lines changed

5 files changed

+20
-47
lines changed

5.6/Dockerfile

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,20 @@
1212
# You should have received a copy of the GNU General Public License
1313
# along with this program; if not, write to the Free Software
1414
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
15-
FROM oraclelinux:8-slim
15+
FROM oraclelinux:7-slim
1616

1717
ARG MYSQL_SERVER_PACKAGE=mysql-community-server-minimal-5.6.46
1818
ARG MYSQL_SHELL_PACKAGE=
1919

2020
# Install server
21-
RUN microdnf update && echo "[main]" > /etc/dnf/dnf.conf \
22-
&& dnf module disable -y mysql \
23-
&& dnf install -y yum-utils https://repo.mysql.com/mysql-community-minimal-release-el7.rpm \
21+
RUN yum install -y https://repo.mysql.com/mysql-community-minimal-release-el7.rpm \
2422
https://repo.mysql.com/mysql-community-release-el7.rpm \
25-
&& dnf config-manager --enable mysql56-server-minimal \
26-
&& dnf install -y \
23+
&& yum-config-manager --enable mysql56-server-minimal \
24+
&& yum install -y \
2725
$MYSQL_SERVER_PACKAGE \
2826
$MYSQL_SHELL_PACKAGE \
2927
libpwquality \
30-
# password generation
31-
cracklib-dicts \
32-
perl-Getopt-Long \
33-
&& dnf clean all \
28+
&& yum clean all \
3429
&& mkdir /docker-entrypoint-initdb.d
3530

3631
VOLUME /var/lib/mysql

5.7/Dockerfile

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,20 @@
1212
# You should have received a copy of the GNU General Public License
1313
# along with this program; if not, write to the Free Software
1414
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
15-
FROM oraclelinux:8-slim
15+
FROM oraclelinux:7-slim
1616

1717
ARG MYSQL_SERVER_PACKAGE=mysql-community-server-minimal-5.7.28
1818
ARG MYSQL_SHELL_PACKAGE=mysql-shell-8.0.18
1919

2020
# Install server
21-
RUN microdnf update && echo "[main]" > /etc/dnf/dnf.conf \
22-
&& dnf module disable -y mysql \
23-
&& dnf install -y yum-utils https://repo.mysql.com/mysql-community-minimal-release-el7.rpm \
21+
RUN yum install -y https://repo.mysql.com/mysql-community-minimal-release-el7.rpm \
2422
https://repo.mysql.com/mysql-community-release-el7.rpm \
25-
&& dnf config-manager --enable mysql57-server-minimal \
26-
&& dnf install -y \
23+
&& yum-config-manager --enable mysql57-server-minimal \
24+
&& yum install -y \
2725
$MYSQL_SERVER_PACKAGE \
2826
$MYSQL_SHELL_PACKAGE \
2927
libpwquality \
30-
# password generation
31-
cracklib-dicts \
32-
\
33-
&& dnf clean all \
28+
&& yum clean all \
3429
&& mkdir /docker-entrypoint-initdb.d
3530

3631
VOLUME /var/lib/mysql

8.0/Dockerfile

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,20 @@
1212
# You should have received a copy of the GNU General Public License
1313
# along with this program; if not, write to the Free Software
1414
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
15-
FROM oraclelinux:8-slim
15+
FROM oraclelinux:7-slim
1616

1717
ARG MYSQL_SERVER_PACKAGE=mysql-community-server-minimal-8.0.18
1818
ARG MYSQL_SHELL_PACKAGE=mysql-shell-8.0.18
1919

2020
# Install server
21-
RUN microdnf update && echo "[main]" > /etc/dnf/dnf.conf \
22-
&& dnf module disable -y mysql \
23-
&& dnf install -y yum-utils https://repo.mysql.com/mysql-community-minimal-release-el7.rpm \
21+
RUN yum install -y https://repo.mysql.com/mysql-community-minimal-release-el7.rpm \
2422
https://repo.mysql.com/mysql-community-release-el7.rpm \
25-
&& dnf config-manager --enable mysql80-server-minimal \
26-
&& dnf install -y \
23+
&& yum-config-manager --enable mysql80-server-minimal \
24+
&& yum install -y \
2725
$MYSQL_SERVER_PACKAGE \
2826
$MYSQL_SHELL_PACKAGE \
2927
libpwquality \
30-
# password generation
31-
cracklib-dicts \
32-
\
33-
&& dnf clean all \
28+
&& yum clean all \
3429
&& mkdir /docker-entrypoint-initdb.d
3530

3631
VOLUME /var/lib/mysql

gen_dockerfiles.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,6 @@ STARTUP_WAIT["5.6"]="\"yes\""
5656
STARTUP_WAIT["5.7"]="\"\""
5757
STARTUP_WAIT["8.0"]="\"\""
5858

59-
declare -A EXTRA_DEPENDENCIES
60-
EXTRA_DEPENDENCIES["5.5"]=""
61-
EXTRA_DEPENDENCIES["5.6"]="perl-Getopt-Long"
62-
EXTRA_DEPENDENCIES["5.7"]=""
63-
EXTRA_DEPENDENCIES["8.0"]=""
64-
6559
# The option to set a user as expired, (forcing a password change before
6660
# any other action can be taken) was added in 5.6
6761
declare -A EXPIRE_SUPPORT
@@ -99,7 +93,6 @@ do
9993
sed -i 's#%%REPO%%#'"${REPO}"'#g' tmpfile
10094
REPO_VERSION=${VERSION//\./}
10195
sed -i 's#%%REPO_VERSION%%#'"${REPO_VERSION}"'#g' tmpfile
102-
sed -i 's#%%EXTRA_DEPENDENCIES%%#'"${EXTRA_DEPENDENCIES[${VERSION}]}"'#g' tmpfile
10396

10497
if [[ ! -z ${MYSQL_SHELL_VERSIONS[${VERSION}]} ]]; then
10598
sed -i 's#%%MYSQL_SHELL_PACKAGE%%#'"mysql-shell-${MYSQL_SHELL_VERSIONS[${VERSION}]}"'#g' tmpfile

template/Dockerfile

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,20 @@
1212
# You should have received a copy of the GNU General Public License
1313
# along with this program; if not, write to the Free Software
1414
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
15-
FROM oraclelinux:8-slim
15+
FROM oraclelinux:7-slim
1616

1717
ARG MYSQL_SERVER_PACKAGE=%%MYSQL_SERVER_PACKAGE%%
1818
ARG MYSQL_SHELL_PACKAGE=%%MYSQL_SHELL_PACKAGE%%
1919

2020
# Install server
21-
RUN microdnf update && echo "[main]" > /etc/dnf/dnf.conf \
22-
&& dnf module disable -y mysql \
23-
&& dnf install -y yum-utils %%REPO%%/mysql-community-minimal-release-el7.rpm \
21+
RUN yum install -y %%REPO%%/mysql-community-minimal-release-el7.rpm \
2422
%%REPO%%/mysql-community-release-el7.rpm \
25-
&& dnf config-manager --enable mysql%%REPO_VERSION%%-server-minimal \
26-
&& dnf install -y \
23+
&& yum-config-manager --enable mysql%%REPO_VERSION%%-server-minimal \
24+
&& yum install -y \
2725
$MYSQL_SERVER_PACKAGE \
2826
$MYSQL_SHELL_PACKAGE \
2927
libpwquality \
30-
# password generation
31-
cracklib-dicts \
32-
%%EXTRA_DEPENDENCIES%% \
33-
&& dnf clean all \
28+
&& yum clean all \
3429
&& mkdir /docker-entrypoint-initdb.d
3530

3631
VOLUME /var/lib/mysql

0 commit comments

Comments
 (0)