diff --git a/data/migrations/migration.sh b/data/migrations/migration.sh index 19c8df4a3..56f42e61e 100755 --- a/data/migrations/migration.sh +++ b/data/migrations/migration.sh @@ -10,9 +10,9 @@ up_mysql() { # Run a SQL database on port 3306 inside of Docker. docker run --name mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=password -d mysql - # Sleep for 10s to get MySQL get started. - echo 'Sleeping for 20...' - sleep 20 + # Sleep for 25s to get MySQL get started. + echo 'Sleeping for 25...' + sleep 25 # Add the database to mysql. docker run --rm --link mysql:mysql mysql sh -c 'echo "create database genschema" | mysql -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT" -uroot -ppassword' @@ -27,9 +27,9 @@ up_mariadb() { # Run a SQL database on port 3306 inside of Docker. docker run --name mariadb -p 3306:3306 -e MYSQL_ROOT_PASSWORD=password -d mariadb - # Sleep for 20s to get MySQL get started. - echo 'Sleeping for 20...' - sleep 20 + # Sleep for 25s to get MySQL get started. + echo 'Sleeping for 25...' + sleep 25 # Add the database to mysql. docker run --rm --link mariadb:mariadb mariadb sh -c 'echo "create database genschema" | mysql -h"$MARIADB_PORT_3306_TCP_ADDR" -P"$MARIADB_PORT_3306_TCP_PORT" -uroot -ppassword' @@ -45,8 +45,8 @@ up_percona() { docker run --name percona -p 3306:3306 -e MYSQL_ROOT_PASSWORD=password -d percona # Sleep for 20s - echo 'Sleeping for 20...' - sleep 20 + echo 'Sleeping for 25...' + sleep 25 # Add the daabase to mysql. docker run --rm --link percona:percona percona sh -c 'echo "create database genschema" | mysql -h $PERCONA_PORT_3306_TCP_ADDR -uroot -ppassword'