Skip to content

Commit

Permalink
ci: use docker compose v2
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Glimcher <[email protected]>
  • Loading branch information
glimchb authored Aug 2, 2024
1 parent f4dae5e commit d142419
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit d142419

Please sign in to comment.