php-sqlsrv/test/functional/setup/Dockerfile-msphpsql-entrypoint.sh
2017-07-28 17:18:07 -07:00

11 lines
250 B
Bash

set -e
db_migrate="/opt/mssql-tools/bin/sqlcmd -S sql -U sa -P Password123 -Q "select @@Version"
until $db_migrate; do
>&2 echo "SQL Server is starting up. Running initial db configuration"
sleep 1
done
>&2 echo "SQL Server is up - starting app"