blob: c61419a2a226c0a07e3f23ef444bd2353d9a279d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
FROM centos/mysql-57-centos7
USER root
COPY root-galera/etc/yum.repos.d/galera.repo /etc/yum.repos.d/
RUN INSTALL_PKGS="galera-3 mysql-wsrep-5.7 iproute rsync which socat percona-xtrabackup-24 bind-utils policycoreutils" && \
yum install -y epel-release && \
yum remove -y rh-mysql57-mysql-server && \
yum install -y http://www.percona.com/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpm && \
yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
yum install -y --setopt=tsflags=nodocs mc && \
rpm -V $INSTALL_PKGS && \
yum clean all
COPY mysql/root-galera /
ENV MYSQL_PREFIX=/usr \
ENABLED_COLLECTIONS=""
RUN rm -rf /etc/my.cnf.d/* && \
cp --remove-destination $(readlink /etc/my.cnf) /etc/my.cnf && \
ln -s /usr/sbin/mysqld /usr/libexec/mysqld && \
/usr/libexec/container-setup && rpm-file-permissions
USER 27
|