diff --git a/test/functional/setup/Dockerfile-msphpsql-entrypoint.sh b/entrypoint.sh similarity index 54% rename from test/functional/setup/Dockerfile-msphpsql-entrypoint.sh rename to entrypoint.sh index 541f34e9..c11ab9f7 100644 --- a/test/functional/setup/Dockerfile-msphpsql-entrypoint.sh +++ b/entrypoint.sh @@ -1,8 +1,7 @@ set -e +isConnected="/opt/mssql-tools/bin/sqlcmd -S db -U sa -P Password123" -db_migrate='/opt/mssql-tools/bin/sqlcmd -S sql -U sa -P Password123 -Q "select @@Version"' - -until $db_migrate; do +until $isConnected; do >&2 echo "SQL Server is starting up. Running initial db configuration" sleep 1 done