From 9f76cb6b9535a4ac3a29ea8fff441dc022c5dc6c Mon Sep 17 00:00:00 2001 From: Daniel Schalla Date: Mon, 7 Mar 2022 15:12:32 +0100 Subject: [PATCH] Mitigate Docker Compose Race in Test Stages (#19718) * Mitigate Docker Compose Race in Test Stages * Patch second occurrence --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 08ce9fcc97..a458df87b2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -318,7 +318,7 @@ jobs: - run: name: Wait for docker compose command: | - sleep 5 + until docker network inspect circleci_mm-test; do echo "Waiting for Docker Compose Network..."; sleep 1; done; docker run --net circleci_mm-test appropriate/curl:latest sh -c "until curl --max-time 5 --output - http://mysql:3306; do echo waiting for mysql; sleep 5; done;" docker run --net circleci_mm-test appropriate/curl:latest sh -c "until curl --max-time 5 --output - http://elasticsearch:9200; do echo waiting for elasticsearch; sleep 5; done;" - run: @@ -378,7 +378,7 @@ jobs: - run: name: Wait for docker compose command: | - sleep 5 + until docker network inspect circleci_mm-test; do echo "Waiting for Docker Compose Network..."; sleep 1; done; docker run --net circleci_mm-test appropriate/curl:latest sh -c "until curl --max-time 5 --output - http://mysql:3306; do echo waiting for mysql; sleep 5; done;" docker run --net circleci_mm-test appropriate/curl:latest sh -c "until curl --max-time 5 --output - http://elasticsearch:9200; do echo waiting for elasticsearch; sleep 5; done;" - run: