Mitigate Docker Compose Race in Test Stages (#19718)

* Mitigate Docker Compose Race in Test Stages

* Patch second occurrence
Этот коммит содержится в:
Daniel Schalla
2022-03-07 15:12:32 +01:00
коммит произвёл GitHub
родитель 84a733ed56
Коммит 9f76cb6b95

Просмотреть файл

@@ -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: