From 651b72cef208ea5d30d7404e4508b75dd271f724 Mon Sep 17 00:00:00 2001 From: Hadis-Fard Date: Wed, 2 Aug 2017 12:47:39 -0700 Subject: [PATCH] removed ping --- Dockerfile-msphpsql | 2 +- entrypoint.sh | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile-msphpsql b/Dockerfile-msphpsql index 72b50909..6cff1116 100644 --- a/Dockerfile-msphpsql +++ b/Dockerfile-msphpsql @@ -76,7 +76,7 @@ RUN sed -i -e 's/TARGET_PASSWORD/'"$TEST_PHP_SQL_PWD"'/g' MsSetup.inc WORKDIR $PHPSQLDIR RUN chmod +x ./entrypoint.sh -CMD /bin/bash ./entrypoint.sh $TEST_PHP_SQL_SERVER $TEST_PHP_SQL_UID $TEST_PHP_SQL_PWD +CMD /bin/bash ./entrypoint.sh ENV REPORT_EXIT_STATUS 1 ENV TEST_PHP_EXECUTABLE /usr/bin/php \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh index c3f32e9b..bc9bf5b6 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,8 +1,6 @@ set -e -while ! ping -c3 $1 &>/dev/null; do echo "Ping Fail - `date`"; done ; echo "Host Found - `date`"; - -testConnection="/opt/mssql-tools/bin/sqlcmd -S $1 -U $2 -P $3" +testConnection="/opt/mssql-tools/bin/sqlcmd -S sql -U sa -P Pasword123" until $testConnection; do >&2 echo "SQL Server is starting up.."