Skip to content

Commit

Permalink
Fix Microsoft SQL Server CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroyuki-sato committed Oct 8, 2024
1 parent 3f7fb40 commit 22bb4f9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,11 @@ jobs:
sqlserver:
# To run locallly:
# 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
image: docker://mcr.microsoft.com/mssql/server:2019-CU4-ubuntu-16.04
# https://learn.microsoft.com/en-ie/answers/questions/1853144/error-failed-to-initialize-container-mcr-microsoft
#
# The latest release is CU28. But It doesn't start correctly.
# Use oler version explicitly.
image: docker://mcr.microsoft.com/mssql/server:2019-CU27-ubuntu-20.04
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
ports:
- "1433:1433"
Expand Down

0 comments on commit 22bb4f9

Please sign in to comment.