Mitigate Docker Compose Race in Test Stages (#19718)
* Mitigate Docker Compose Race in Test Stages * Patch second occurrence
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
84a733ed56
Коммит
9f76cb6b95
@@ -318,7 +318,7 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Wait for docker compose
|
name: Wait for docker compose
|
||||||
command: |
|
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://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;"
|
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:
|
- run:
|
||||||
@@ -378,7 +378,7 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Wait for docker compose
|
name: Wait for docker compose
|
||||||
command: |
|
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://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;"
|
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:
|
- run:
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user