Sign inSign up

k8sgerrit/mysql-replication-init

By k8sgerrit

Updated about 7 years ago

Container meant to be run as a Kubernetes job , which can initialize mysql database replication.

Image
0

1.8K

k8sgerrit/mysql-replication-init repository overview

MySQL slave init container image

DEPRECATED With the update to Gerrit 3.0, no ReviewDB is required anymore.

Kubernetes init container for initializing a MySQL slave

Content

  • Ubuntu 18.04

Setup and configuration

  • install mysql-client
  • copy tool scripts

Start

  • start the container via start script /var/tools/start

The start script

  • waits for database dump file from MySQL master to be copied into the container. The path to which the dump-file has to be copied, can be configured by setting the environment variable $FILEPATH (default: /var/data/db/master_dump.sql). The file can be copied into the container using kubectl cp or docker cp.
  • imports the database dump from MySQL master into MySQL slave
  • configures the MySQL slave
  • starts the MySQL slave

Tag summary

Content type

Image

Digest

Size

46.6 MB

Last updated

about 7 years ago

docker pull k8sgerrit/mysql-replication-init