Skip to content

Commit

Permalink
Wait for SQL Server to start #30
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonZiminSaritasa committed Nov 13, 2017
1 parent c848558 commit 78a8142
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion samples/Saritasa.BoringWarehouse/Docker/Dockerfile.db
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ENV `

COPY CreateDB.sql C:\Temp\CreateDB.sql

# TODO: Wait for SQL Server start here.
# Wait for SQL Server to start.
RUN for ($i = 1; $i -le 10; $i++) { $result = Test-NetConnection localhost -Port 1433; if ($result.TcpTestSucceeded) { break }; Start-Sleep 1 }

RUN sqlcmd -i C:\Temp\CreateDB.sql
3 changes: 2 additions & 1 deletion samples/ZergRushCo.Todosya/Docker/Dockerfile.db
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ENV `

COPY CreateDB.sql C:\Temp\CreateDB.sql

# TODO: Wait for SQL Server start here.
# Wait for SQL Server to start.
RUN for ($i = 1; $i -le 10; $i++) { $result = Test-NetConnection localhost -Port 1433; if ($result.TcpTestSucceeded) { break }; Start-Sleep 1 }

RUN sqlcmd -i C:\Temp\CreateDB.sql

0 comments on commit 78a8142

Please sign in to comment.