Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for basic Master-Slave Replication on 5.6 #43

Closed
wants to merge 2 commits into from

Conversation

ioggstream
Copy link

Actual images does not support replication parameters.

This patch supports the following variables:
+# - MYSQL_ROOT_PASSWORD
+# - MYSQL_REPLICA_USER: create the given user on the intended master host
+# - MYSQL_REPLICA_PASS
+# - MYSQL_MASTER_SERVER: change master on this location on the intended slave
+# - MYSQL_MASTER_PORT: optional, by default 3306
+# - MYSQL_MASTER_WAIT_TIME: seconds to wait for the master to come up

You can test the resulting image with the fig.yml present here https://registry.hub.docker.com/u/ioggstream/mysql/

@yosifkit
Copy link
Member

yosifkit commented Mar 2, 2016

I'll defer to @ltangvald as to whether we want to add such functionality to the image.

Closing old issue, if you feel this was closed in error please let us know.

@yosifkit yosifkit closed this Mar 2, 2016
@ltangvald
Copy link
Collaborator

I think it's better to handle this with the init system.

Though as these fairly common use-cases keep coming in maybe we could have an examples section in the repo with some simple scripts that demonstrate how to do them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants