From 3abb9477c44e841064d90bc047bb5327ae531090 Mon Sep 17 00:00:00 2001 From: John Guo Date: Sat, 28 Sep 2024 21:46:23 +0800 Subject: [PATCH] ci: fix mssql docker service starting failed (#3824) --- .github/workflows/ci-main.yml | 36 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci-main.yml b/.github/workflows/ci-main.yml index 6c5c26c09..5feac3a76 100644 --- a/.github/workflows/ci-main.yml +++ b/.github/workflows/ci-main.yml @@ -32,7 +32,7 @@ env: jobs: code-test: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 # Service containers to run with `code-test` services: @@ -113,24 +113,22 @@ jobs: # -e MSSQL_USER=root \ # -e MSSQL_PASSWORD=LoremIpsum86 \ # loads/mssqldocker:14.0.3391.2 - -# TODO mssql docker failed, will be enabled later after it is OK in github action. -# mssql: -# image: loads/mssqldocker:14.0.3391.2 -# env: -# ACCEPT_EULA: Y -# SA_PASSWORD: LoremIpsum86 -# MSSQL_DB: test -# MSSQL_USER: root -# MSSQL_PASSWORD: LoremIpsum86 -# ports: -# - 1433:1433 -# options: >- -# --health-cmd="/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P LoremIpsum86 -l 30 -Q \"SELECT 1\" || exit 1" -# --health-start-period 10s -# --health-interval 10s -# --health-timeout 5s -# --health-retries 10 + mssql: + image: loads/mssqldocker:14.0.3391.2 + env: + ACCEPT_EULA: Y + SA_PASSWORD: LoremIpsum86 + MSSQL_DB: test + MSSQL_USER: root + MSSQL_PASSWORD: LoremIpsum86 + ports: + - 1433:1433 + options: >- + --health-cmd="/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P LoremIpsum86 -l 30 -Q \"SELECT 1\" || exit 1" + --health-start-period 10s + --health-interval 10s + --health-timeout 5s + --health-retries 10 # ClickHouse backend server. # docker run -d --name clickhouse \