From 22bb4f91bb43e92aa648c7b1033466d573c7a0e8 Mon Sep 17 00:00:00 2001 From: Hiroyuki Sato Date: Tue, 8 Oct 2024 12:50:56 +0900 Subject: [PATCH 1/2] Fix Microsoft SQL Server CI --- .github/workflows/check.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index fe0e3485..4e800ea8 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -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" From 77b9399e0e8d95363e4f82742dab3f6ab1147ce0 Mon Sep 17 00:00:00 2001 From: Hiroyuki Sato Date: Wed, 23 Oct 2024 19:04:57 +0900 Subject: [PATCH 2/2] Update .github/workflows/check.yml Co-authored-by: Dai MIKURUBE --- .github/workflows/check.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 4e800ea8..764e0244 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -245,10 +245,12 @@ 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 - # https://learn.microsoft.com/en-ie/answers/questions/1853144/error-failed-to-initialize-container-mcr-microsoft + # Using an older version of "mssql/server" explicitly and intentionally. + # + # "mssql/server" has a newer version (CU28 as of 2024-10-23), + # but it reportedly does not start correctly. # - # The latest release is CU28. But It doesn't start correctly. - # Use oler version explicitly. + # https://learn.microsoft.com/en-ie/answers/questions/1853144/error-failed-to-initialize-container-mcr-microsoft 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: