diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index a448196..48f3b27 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -30,17 +30,17 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Build & Start containers - run: docker-compose up --build --force-recreate --detach + run: docker compose up --build --force-recreate --detach - name: Run tests run: | set -x echo wait 5s for SPDK to start... && sleep 5s - docker-compose logs - docker-compose ps - docker inspect --format='{{json .Name}} - {{json .State.Health.Status}}' $(docker-compose ps -q) - uniq -c <<< $(docker inspect --format='{{json .State.Health.Status}}' $(docker-compose ps -q)) | grep -q '4 "healthy"' || true - docker-compose exec -T spdk /usr/local/bin/spdk_nvme_perf -r 'traddr:127.0.0.1 trtype:TCP adrfam:IPv4 trsvcid:4420' -c 0x1 -q 1 -o 4096 -w randread -t 10 || true + docker compose logs + docker compose ps + docker inspect --format='{{json .Name}} - {{json .State.Health.Status}}' $(docker compose ps -q) + uniq -c <<< $(docker inspect --format='{{json .State.Health.Status}}' $(docker compose ps -q)) | grep -q '4 "healthy"' || true + docker compose exec -T spdk /usr/local/bin/spdk_nvme_perf -r 'traddr:127.0.0.1 trtype:TCP adrfam:IPv4 trsvcid:4420' -c 0x1 -q 1 -o 4096 -w randread -t 10 || true echo wait 15s for prometheus to start... && sleep 15s curl --fail http://127.0.0.1:9091/api/v1/query?query=mem_free | grep mem_free curl --fail http://127.0.0.1:9091/api/v1/query?query=cpu_usage_user | grep cpu_usage_user @@ -56,8 +56,8 @@ jobs: - name: Logs if: always() - run: docker-compose logs + run: docker compose logs - name: Stop containers if: always() - run: docker-compose down --volumes --remove-orphans + run: docker compose down --volumes --remove-orphans