From d25cc4db9cf482083f72b574114c34a0cb8b3d89 Mon Sep 17 00:00:00 2001 From: Jimmy Zelinskie Date: Tue, 21 Apr 2015 18:01:40 -0400 Subject: [PATCH] migrations: fix percona migration test --- data/migrations/migration.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/migrations/migration.sh b/data/migrations/migration.sh index 1140c02b8..c13ca5b84 100755 --- a/data/migrations/migration.sh +++ b/data/migrations/migration.sh @@ -2,7 +2,7 @@ set -e DOCKER_IP=`echo $DOCKER_HOST | sed 's/tcp:\/\///' | sed 's/:.*//'` MYSQL_CONFIG_OVERRIDE="{\"DB_URI\":\"mysql+pymysql://root:password@$DOCKER_IP/genschema\"}" -PERCONA_CONFIG_OVERRIDE="{\"DB_URI\":\"mysql+pymysql://root@$DOCKER_IP/genschema\"}" +PERCONA_CONFIG_OVERRIDE="{\"DB_URI\":\"mysql+pymysql://root:password@$DOCKER_IP/genschema\"}" PGSQL_CONFIG_OVERRIDE="{\"DB_URI\":\"postgresql://postgres@$DOCKER_IP/genschema\"}" up_mysql() { @@ -41,14 +41,14 @@ down_mariadb() { up_percona() { # Run a SQL database on port 3306 inside of Docker. - docker run --name percona -p 3306:3306 -d percona + docker run --name percona -p 3306:3306 -e MYSQL_ROOT_PASSWORD=password -d percona # Sleep for 10s echo 'Sleeping for 10...' sleep 10 # 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' + docker run --rm --link percona:percona percona sh -c 'echo "create database genschema" | mysql -h $PERCONA_PORT_3306_TCP_ADDR -uroot -ppassword' } down_percona() {