irekk/mysql

By irekk

Updated over 5 years ago

Extension to official MySQL images, with additional initialization scripting.

Image

39

MySQL 5.6 image with enhanced initialization.

Initialization scripts

./01-db-access.sh
  • Allow to use root from other hosts than localhost
  • Creates db-admin user with password taken from MYSQL_ROOT_PASSWORD
  • Creates db-user user with password taken from MYSQL_ROOT_PASSWORD
./02-base.sql
  • Contains initialization statements. By default it adds schema called docker with table settings.
./03-prepare-sqls.sh
  • Traverse through sql files in /sqls directory and flattens their structure in temporary directory, prepending with numbers.
./04-prepare-sqls.sh
  • Executes flattened sql files as db-admin user
./05-update-settings.sh
  • Updates built-in docker schema, settings table record with incremented value of version.
./06-dump-new-base.sh
  • Makes a dump of all schemas (except default ones) into 02-base.sql file
./07-clean-sqls.sh
  • Removes flattened sql files

Docker Pull Command

docker pull irekk/mysql