2020-11-14 01:38:56 +00:00
|
|
|
#!/bin/bash
|
2024-01-29 18:45:19 +00:00
|
|
|
set -e
|
2020-11-14 01:38:56 +00:00
|
|
|
|
|
|
|
. /usr/local/bin/docker-entrypoint.sh
|
2024-01-29 18:45:19 +00:00
|
|
|
ARGS=(mysqld --datadir=/mysql-template)
|
2020-11-14 01:38:56 +00:00
|
|
|
|
2024-01-29 18:45:19 +00:00
|
|
|
mysql_check_config ${ARGS[@]}
|
|
|
|
docker_setup_env ${ARGS[@]}
|
2020-11-14 01:38:56 +00:00
|
|
|
docker_create_db_directories
|
|
|
|
|
|
|
|
docker_verify_minimum_env
|
2024-01-29 18:45:19 +00:00
|
|
|
docker_init_database_dir ${ARGS[@]}
|
|
|
|
docker_temp_server_start ${ARGS[@]}
|
2020-11-14 01:38:56 +00:00
|
|
|
docker_setup_db
|
|
|
|
docker_process_init_files /docker-entrypoint-initdb.d/*
|
2022-10-10 08:58:53 +00:00
|
|
|
|
2023-08-11 13:41:03 +00:00
|
|
|
docker-import.sh dump/dump.before
|
|
|
|
docker-import.sh dump/.dump/structure
|
|
|
|
docker-import.sh dump/.dump/data
|
|
|
|
docker-import.sh dump/.dump/triggers
|
|
|
|
docker-import.sh dump/.dump/privileges
|
|
|
|
docker-import.sh dump/dump.after
|
2022-10-10 08:58:53 +00:00
|
|
|
|
|
|
|
docker_temp_server_stop
|