diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 82132f3293c..cb7476bc9d9 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -544,15 +544,17 @@ jobs: LICENSE: "accept" DBNAME: "doctrine" - options: "--privileged=true" + options: >- + --health-cmd "su - db2inst1 -c \"db2 -t CONNECT TO ${DBNAME};\"" + --health-interval 20s + --health-timeout 10s + --health-retries 10 + --privileged ports: - "50000:50000" steps: - - name: "Perform healthcheck from the outside" - run: "docker logs -f ${{ job.services.ibm_db2.id }} | sed '/(*) Setup has completed./ q'" - - name: "Create temporary tablespace" run: "docker exec ${{ job.services.ibm_db2.id }} su - db2inst1 -c 'db2 -t CONNECT TO doctrine; db2 -t CREATE USER TEMPORARY TABLESPACE doctrine_tbsp PAGESIZE 4 K;'"