+13
-10
@@ -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
|
||||
done
|
||||
# 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
|
||||
|
||||
# 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
|
||||
|
||||
Reference in New Issue
Block a user