Skip to content
Snippets Groups Projects
Commit 31567f2b authored by nimrod's avatar nimrod
Browse files

Use the Docker Compose health check script.

parent bb81c056
No related branches found
No related tags found
No related merge requests found
Pipeline #2408 failed
......@@ -146,12 +146,4 @@ foo:
- *TAG
script:
- docker-compose up --detach --remove-orphans
# yamllint disable rule:line-length
- |
for i in $(seq 30)
do
docker container inspect --format '{{ .State.Health.Status }}' $(docker-compose ps -q) | grep -v '^healthy$' || break
sleep 10
done
! docker container inspect --format '{{ .State.Health.Status }}' $(docker-compose ps -q) | grep -v '^healthy$'
# yamllint enable rule:line-length
- compose-health-check
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment