From b3fb8b308827d248a6daa27a91f0a12738b0bdad Mon Sep 17 00:00:00 2001 From: phoenix Date: Fri, 7 Aug 2026 11:24:46 -0400 Subject: [PATCH] Trying it out --- .github/workflows/pr.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index de5ecaa..407e840 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -32,11 +32,6 @@ jobs: env: MINIO_ROOT_USER: test MINIO_ROOT_PASSWORD: test - options: >- - --health-cmd "curl -f http://localhost:9000/minio/health/ready || exit 1" - --health-interval 10s - --health-timeout 5s - --health-retries 5 ports: - 9000:9000 command: server /data --console-address ":9001" @@ -66,12 +61,20 @@ jobs: chmod +x mc sudo mv mc /usr/local/bin/ - # Wait for MinIO to be ready - until curl -s http://localhost:9000/minio/health/ready; do - echo "Waiting for MinIO..." - sleep 2 + # Wait for MinIO with a simpler check + echo "Waiting for MinIO to start..." + for i in {1..30}; do + if curl -s http://localhost:9000/minio/health/ready > /dev/null 2>&1; then + echo "MinIO is ready!" + break + fi + echo "Attempt $i: MinIO not ready yet..." + docker logs minio || true # Show container logs for debugging + sleep 3 done - echo "MinIO is ready!" + + # Check if MinIO is actually running + docker ps | grep minio || echo "MinIO container is not running!" # Configure mc to use MinIO mc alias set localminio http://localhost:9000 test test