Skip to content

Commit 9122c15

Browse files
authored
Modified pipelines to connect using sqlcmd inside of the container instead (#995)
1 parent ac59cfd commit 9122c15

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

azure-pipelines.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ jobs:
101101
docker pull mcr.microsoft.com/mssql/server:2017-latest
102102
docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=$(pwd)' -p 1433:1433 -h $(host) --name=$(host) -d mcr.microsoft.com/mssql/server:2017-latest
103103
docker ps -a
104-
sqlcmd -S $(server) -U $(uid) -P $(pwd) -Q 'select @@Version'
104+
sleep 5
105+
docker exec -t $(host) /opt/mssql-tools/bin/sqlcmd -S $(server) -U $(uid) -P $(pwd) -Q 'select @@Version'
105106
displayName: 'Run SQL Server for Linux'
106107
107108
- script: |

0 commit comments

Comments
 (0)