Obj str do it #255
+13
-10
@@ -32,11 +32,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
MINIO_ROOT_USER: test
|
MINIO_ROOT_USER: test
|
||||||
MINIO_ROOT_PASSWORD: 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:
|
ports:
|
||||||
- 9000:9000
|
- 9000:9000
|
||||||
command: server /data --console-address ":9001"
|
command: server /data --console-address ":9001"
|
||||||
@@ -66,12 +61,20 @@ jobs:
|
|||||||
chmod +x mc
|
chmod +x mc
|
||||||
sudo mv mc /usr/local/bin/
|
sudo mv mc /usr/local/bin/
|
||||||
|
|
||||||
# Wait for MinIO to be ready
|
# Wait for MinIO with a simpler check
|
||||||
until curl -s http://localhost:9000/minio/health/ready; do
|
echo "Waiting for MinIO to start..."
|
||||||
echo "Waiting for MinIO..."
|
for i in {1..30}; do
|
||||||
sleep 2
|
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
|
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
|
# Configure mc to use MinIO
|
||||||
mc alias set localminio http://localhost:9000 test test
|
mc alias set localminio http://localhost:9000 test test
|
||||||
|
|||||||
Reference in New Issue
Block a user