Commit 31567f2b authored by nimrod's avatar nimrod
Browse files

Use the Docker Compose health check script.

parent bb81c056
Loading
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -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