Public Repository

Last pushed: 2 years ago
Short Description
Mariadb-cluster-slave - Multi nodes - connect to cluster_master - send write and read
Full Description

from fareoffice/base

MAINTAINER Fareoffice

#

This will bring upp mariadb cluster nodes.

Every new node will goin the cluster and get the db rsync over (keep data small)

The node will look for the host cluster_master to conenct and get cluster info from and sync

#
#

docker run -it --link cluster_master:cluster_master mariadb-cluster-slave

#
#

LABEL name="Fareoffice Mariadb Cluster Slave Server"
LABEL vendor="System Operations"

RUN echo -e "[mariadb] \nname = MariaDB \nbaseurl = http://yum.mariadb.org/10.1/centos7-amd64 \ngpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB \ngpgcheck=1 \n " > /etc/yum.repos.d/MariaDB.repo

RUN yum install MariaDB-server MariaDB-client -y
RUN yum install which -y

ADD config/server.cnf /etc/my.cnf.d/
RUN chmod 644 /etc/my.cnf.d/server.cnf

CMD su mysql -s/bin/bash -c "/usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql "

Docker Pull Command
Owner
fareoffice