@@ -1,6 +1,7 @@
FROM mysql/mysql-server:5.7.12
RUN yum install -y openssh-server openssh-clients wget
+RUN wget https://code.senomas.com/seno/docker-util/raw/master/out/linux-amd64/hlic
ADD my.cnf /etc/my.cnf
ADD init-db.sql /docker-entrypoint-initdb.d/init-db.sql
@@ -1,5 +1,8 @@
+RUN yum install -y openssh-server openssh-clients wget
+
ADD entrypoint.sh entrypoint.sh
@@ -2,6 +2,8 @@ CREATE DATABASE IF NOT EXISTS xbrlgen;
GRANT ALL ON xbrlgen.* TO 'root'@'%' IDENTIFIED BY 'dodol123';
+GRANT REPLICATION SLAVE ON *.* TO 'replica'@'%' IDENTIFIED BY 'duren123';
CHANGE MASTER TO MASTER_HOST='mysql-master', MASTER_USER='replica', MASTER_PASSWORD='duren123', MASTER_LOG_FILE='mysql-bin.000003', MASTER_LOG_POS=0;
FLUSH PRIVILEGES;