Sign inSign up

4f7a796d616e6469617334320a/dbmaster_setup

By 4f7a796d616e6469617334320a

•Updated over 8 years ago

A Container that does setup on an sql database to run it as replication master

Image
0

1.5K

4f7a796d616e6469617334320a/dbmaster_setup repository overview

Dockerfile⁠
NOTE: DOES NOT WORK WITH mysql:latest as that uses MySQL 8 which has problems with passwort authentication on commandline.
See the setup-slave.sh in the repo.
This Container acts as setup script to turn a MySQL/Percona/MariaDB container into a database replication slave.
Tags:
alpine -- uses alpine linux image.
stable -- uses mysql:5.7
latest -- uses mysql:latest

ENVIRONMENT VARIABLES:
DB_ROOT_USER -- defaults to root
DB_ROOT_PASS
DB_PORT -- defaults to the standard 3306
DB_MAXSCALE_USER -- optional when used with MariaDB Maxscale
DB_MAXSCALE_PASS -- optional when used with MariaDB Maxscale
DB_HOSTNAME
DB_SLAVE_USER
DB_SLAVE_PASS

If DB_MAXSCALE_USER and DB_MAXSCALE_PASS are set the set user will get created on the master and given the permissions required by MariaDB Maxscale see: https://mariadb.com/kb/en/mariadb-enterprise/mariadb-maxscale-22-mariadb-maxscale-configuration-usage-scenarios/#service⁠

Tag summary

Content type

Image

Digest

Size

134.6 MB

Last updated

over 8 years ago

docker pull 4f7a796d616e6469617334320a/dbmaster_setup