Public | Automated Build

Last pushed: 2 years ago
Short Description
Centos7 + Oracle Yum Repository + MySQL Utilities
Full Description

Image based on Centos7 and Oracle Repositories.

Slaves are auto-initialized from master via python mysql-utilities.

To run a master-slave setup, use the provided docker-compose.yml

#
# Run a master and a slave server with:
#  - GTID enabled
#  - crash-safe replication
#  - explicit defaults (new in 5.6)
# 
master:
  image: mysql-community
  hostname: master
  environment:
    - MYSQL_ROOT_PASSWORD=root
    - MYSQL_REPLICA_USER=repl
    - MYSQL_REPLICA_PASS=repl
  entrypoint:
    - /entrypoint.sh
  command: mysqld --server-id=1 --log-bin=master-bin --relay-log=master-relay-bin --log-slave-updates --relay-log-recovery=1 --master-info-repository=TABLE --relay-log-info-repository=TABLE --gtid-mode=ON --enforce-gtid-consistency --report-host=master --explicit-defaults-for-timestamp


slave:
  image: mysql-community
  environment:
    - MYSQL_ROOT_PASSWORD=root
    - MYSQL_REPLICA_USER=repl
    - MYSQL_REPLICA_PASS=repl
    - MYSQL_MASTER_SERVER=master
    - MYSQL_MASTER_ROOT_PASS=root
    - MYSQL_MASTER_WAIT_TIME=60
  links:
    - master
  entrypoint:
    - /entrypoint.sh
  command: mysqld --server-id=2 --log-bin=slave-bin --relay-log=slave-relay-bin --log-slave-updates --relay-log-recovery=1 --master-info-repository=TABLE --relay-log-info-repository=TABLE --gtid-mode=ON --enforce-gtid-consistency --report-host --explicit-defaults-for-timestamp
Docker Pull Command
Owner
ioggstream
Source Repository

Comments (0)