To get more familiar with docker and to create a test setup for
MySQL Cluster I created docker images for the various components
of MySQL Cluster (a.k.a. NDB Cluster)
At first I created a Fedora 20 container and ran all components
in one container. That worked and is quite easy to setup. But
that's not how one is supposed to use docker.
So I created Dockerfile's for all components and one base
image.
The base image:
- contains the MySQL Cluster software
- has libaio installed
- has a mysql user and group
- serves as a base for the other images
The management node (ndb_mgmd) image:
- Has ndb_mgmd as entrypoint
- Has a config.ini for the cluster …