From 0e9aa5bcd459e8739e6be05350f067eb717031a2 Mon Sep 17 00:00:00 2001 From: Jenny Tam Date: Thu, 16 May 2019 18:35:20 -0700 Subject: [PATCH 1/4] Modified pipelines to connect using sqlcmd inside of the container instead --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ab688eae8..f9792a55e 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -101,7 +101,7 @@ jobs: docker pull mcr.microsoft.com/mssql/server:2017-latest 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 docker ps -a - sqlcmd -S $(server) -U $(uid) -P $(pwd) -Q 'select @@Version' + docker exec -it $(host) /opt/mssql-tools/bin/sqlcmd -S $(server) -U $(uid) -P $(pwd) -Q 'select @@Version' displayName: 'Run SQL Server for Linux' - script: | From c10e8912a0fbbc71c3f1ea9520cd25f7ebb24ae7 Mon Sep 17 00:00:00 2001 From: Jenny Tam Date: Thu, 16 May 2019 18:41:47 -0700 Subject: [PATCH 2/4] Dropped interactive --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f9792a55e..996607f1d 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -101,7 +101,7 @@ jobs: docker pull mcr.microsoft.com/mssql/server:2017-latest 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 docker ps -a - docker exec -it $(host) /opt/mssql-tools/bin/sqlcmd -S $(server) -U $(uid) -P $(pwd) -Q 'select @@Version' + docker exec -t $(host) /opt/mssql-tools/bin/sqlcmd -S $(server) -U $(uid) -P $(pwd) -Q 'select @@Version' displayName: 'Run SQL Server for Linux' - script: | From 635c24538e0d3f4639b37935ee48aa2f0592b00f Mon Sep 17 00:00:00 2001 From: Jenny Tam Date: Thu, 16 May 2019 18:46:00 -0700 Subject: [PATCH 3/4] Paused before checking --- azure-pipelines.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 996607f1d..a733278fe 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -101,6 +101,7 @@ jobs: docker pull mcr.microsoft.com/mssql/server:2017-latest 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 docker ps -a + sleep 10 docker exec -t $(host) /opt/mssql-tools/bin/sqlcmd -S $(server) -U $(uid) -P $(pwd) -Q 'select @@Version' displayName: 'Run SQL Server for Linux' From 6923ef9b6642309d9c3ff2bb75195c19083df1ff Mon Sep 17 00:00:00 2001 From: Jenny Tam Date: Thu, 16 May 2019 18:54:29 -0700 Subject: [PATCH 4/4] Reduced pause --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index a733278fe..3f048788b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -101,7 +101,7 @@ jobs: docker pull mcr.microsoft.com/mssql/server:2017-latest 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 docker ps -a - sleep 10 + sleep 5 docker exec -t $(host) /opt/mssql-tools/bin/sqlcmd -S $(server) -U $(uid) -P $(pwd) -Q 'select @@Version' displayName: 'Run SQL Server for Linux'