Currently it creates one user for one database out of the box and an admin user
with root-like access.
Do make sure that container functions correcty include following variables to
your envifonment file:
||superuser password NO DEFAULT|
||database user NO DEFAULT|
||database user password NO DEFAULT|
||database user database NO DEFAULT|
||master IP for slaves NO DEFAULT|
||master's mariadb port for slaves DEFAULT: 3306|
||replication user with limited privileges|
||replication user's password|
Building docker image
Execute from the project's root directory:
$ sudo docker build --rm -t gnames/mariadb .
Usage without replication
Run image with customized my.cnf and host volumes:
$ sudo docker run -d \ --name mariadb \ --env-file your_mariadb.env \ -v some_path/myql:/var/lib/mysql \ -v some_path/logs:/var/log/mariadb \ -v some_path/my.cnf:/etc/mysql/my.cnf \ -p 3306:3306 \ gnames/mariadb:10.0
$ sudo docker run -d -e MDB_ADMIN_PASSWORD=secret -p 3306:3306 --name mariadb gnames/mariadb:10.0
Note on Patches/Pull Requests
- Fork the project.
- Make your feature addition or bug fix.
- Add tests for it. This is important so I don't break it in a
future version unintentionally.
- Commit, do not mess with rakefile, version, or history.
(if you want to have your own version, that is fine but bump
version in a commit by itself I can ignore when I pull)
- Send me a pull request. Bonus points for topic branches.
Author -- Dmitry Mozzherin