Sign inSign up

irekk/mysql

By irekk

•Updated about 7 years ago

Extension to official MySQL images, with additional initialization scripting.

Image
0

108

irekk/mysql repository overview

⁠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

Tag summary

Content type

Image

Digest

Size

78.9 MB

Last updated

about 7 years ago

docker pull irekk/mysql:5.6