Skip to content

Commit 22bb4f9

Browse files
committed
Fix Microsoft SQL Server CI
1 parent 3f7fb40 commit 22bb4f9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/check.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,11 @@ jobs:
245245
sqlserver:
246246
# To run locallly:
247247
# docker run -it --name mssqlcontainer -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=somepassword' -p 1433:1433 -d mcr.microsoft.com/mssql/server:2019-CU4-ubuntu-16.04
248-
image: docker://mcr.microsoft.com/mssql/server:2019-CU4-ubuntu-16.04
248+
# https://learn.microsoft.com/en-ie/answers/questions/1853144/error-failed-to-initialize-container-mcr-microsoft
249+
#
250+
# The latest release is CU28. But It doesn't start correctly.
251+
# Use oler version explicitly.
252+
image: docker://mcr.microsoft.com/mssql/server:2019-CU27-ubuntu-20.04
249253
options: --name "mssqlcontainer" --health-cmd "/opt/mssql-tools/bin/sqlcmd -S 127.0.0.1 -U sa -P P@ssw0rd -Q \"SELECT * FROM sys.objects;\"" --health-interval 20s --health-timeout 30s --health-retries 128
250254
ports:
251255
- "1433:1433"

0 commit comments

Comments
 (0)