Fuzzy as in reference to the https://en.wikipedia.org/wiki/The_Mythical_Man-Month book where Fred describes the approach of "write one to throw away" as the best start.
A base docker image for providing a Mariadb service with a default database.
Maintained by: James Nesbitt [email protected]
This image is available publicly at:
This image is based on https://github.com/wunderkraut/image-fuzzy-alpine-base
- Install standard maridb
This image contains a highly tuned my.cnf:
- Error and output logging goes to the container output;
- Engine defaults to UTF-8 encoding and collation;
- Cache settings are made more lenient;
- Request timeout and size limits are increased;
- InnoDB is used as a default, and is heavily tuned;
- One or two custom changes relating to transaction locking are set.
- A general mysql installation is processed;
- Some default insecure mysql access is removed;
- The root password is set;
- The database
mysql://app:[email protected]/app
is created.
- Credentials used here are avaialble as build args for any custom application requirements.
run this container as an independent service:
$/> docker run -d quay.io/wunder/image-fuzzy-alpine-mariadb
Then link the resulting container into any other containers that need a database. Access to the database service is defined in the Dockerfile, and can be read there.
- some kind of automated testing would be usefull.