diff --git a/.docker/mysql/db-init/create_testing_db.sh b/.docker/mysql/db-init/create_testing_db.sh new file mode 100644 index 00000000..9be9414c --- /dev/null +++ b/.docker/mysql/db-init/create_testing_db.sh @@ -0,0 +1,15 @@ +#!/bin/bash +set -eo pipefail +shopt -s nullglob + +if [[ ! -v DB_DATABASE_TEST ]]; then + echo '$DB_DATABASE_TEST is not defined, skipping testing db creation' +else + + source /usr/local/bin/docker-entrypoint.sh + + docker_process_sql --database=mysql <