update
This commit is contained in:
@@ -3,23 +3,13 @@ FROM harbor.colben.cn/general/rocky$ARCH:8
|
||||
MAINTAINER Colben colbenlee@gmail.com
|
||||
ARG ARCH
|
||||
ADD --chown=root:root /ADD/ /opt/
|
||||
RUN echo -e "[mysql-connectors-community]\n\
|
||||
name=MySQL Connectors Community\n\
|
||||
baseurl=https://mirrors.nju.edu.cn/mysql/yum/mysql-connectors-community-el8$ARCH/\n\
|
||||
enabled=1\n\
|
||||
gpgcheck=0\n\
|
||||
\n\
|
||||
[mysql-tools-community]\n\
|
||||
name=MySQL Tools Community\n\
|
||||
baseurl=https://mirrors.nju.edu.cn/mysql/yum/mysql-tools-community-el8$ARCH/\n\
|
||||
enabled=1\n\
|
||||
gpgcheck=0\n\
|
||||
\n\
|
||||
[mysql80-community]\n\
|
||||
RUN echo -e "[mysql80-community]\n\
|
||||
name=MySQL 8.0 Community Server\n\
|
||||
baseurl=https://mirrors.nju.edu.cn/mysql/yum/mysql-8.0-community-el8${ARCH:--x86_64}/\n\
|
||||
baseurl=http://repo.mysql.com/yum/mysql-8.0-community/el/8/${ARCH:-x86_64}/\n\
|
||||
enabled=1\n\
|
||||
gpgcheck=0\n\
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022\n\
|
||||
file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql\n\
|
||||
" > /etc/yum.repos.d/mysql-8.0.repo \
|
||||
&& dnf makecache \
|
||||
&& dnf install mysql-community-server -y --disablerepo=AppStream \
|
||||
@@ -52,7 +42,7 @@ character-set-server = utf8mb4\n\
|
||||
default-storage-engine = innodb\n\
|
||||
slow-query-log = TRUE\n\
|
||||
slow-query-log-file = /var/log/mysql/slow.log\n\
|
||||
default-authentication-plugin = mysql_native_password\n\
|
||||
authentication-policy = mysql_native_password\n\
|
||||
lower-case-table-names = 1\n\
|
||||
\n\
|
||||
[mysqladmin]\n\
|
||||
|
Reference in New Issue
Block a user