MariaDB is the open source successor to MySQL.
MariaDB image Dockerfile. Based on the official packages
mariadb-client provided by the
This Dockerfile is intended to be used to set up a standalone MariaDB database server.
This image is prepared to be used on Lagoon. There are therefore some things already done:
Folder permissions are automatically adapted with
fix-permissions, so this image will work with a random user.
readiness-probe.sh script to check when MariaDB container is ready.
mysqltuner.pl - Perl script useful for database parameter tuning.
mysql-backup.sh - Script for automating the daily MySQL backups on development environment.
pwgen - Utility to generate random and complex passwords.
The image ships a default MariaDB configuration file, optimized to work on Lagoon. Some options are configurable via environments variables (see Environment Variables).
Environment variables defined in MariaDB base image:
Database name created at startup.
Default user created at startup.
Password of default user created at startup.
MariaDB root user's password.
Set the server charset.
Set server collation.
Set the max_allowed_packet size.
Set the MariaDB InnoDB buffer pool size.
Number of InnoDB buffer pool instances.
Size of InnoDB log file.
Variable to control the save of slow queries.
Variable to control the save of ALL queries.
Default path for databases backups.
Path of the mariadb data dir, be careful, changing this can occur data loss!
Path which the entrypoint script of mariadb will use to copy into the defined
LAGOON_ENVIRONMENT_TYPE variable is set to
production, performances are set accordingly by using