mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-26 06:50:45 +01:00
address comments
This commit is contained in:
1 parent
102a081dd9
commit
af1589f7c9
2 files changed
+15
-4
No files matched your search
@@ -148,9 +148,20 @@ docker-urls: ## Display all service URLs
|
||||
docker-wait-healthy: ## Wait for all services to be healthy
|
||||
@echo "⏳ Waiting for all services to be healthy..."
|
||||
@timeout 300 bash -c ' \
|
||||
while [ $$(docker-compose -p $(PROJECT_NAME) -f $(COMPOSE_FILE) ps | grep -c "healthy") -lt 4 ]; do \
|
||||
echo "Waiting for services to be healthy..."; \
|
||||
required_services="keycloak weed-master weed-volume weed-filer weed-s3"; \
|
||||
while true; do \
|
||||
all_healthy=true; \
|
||||
for service in $$required_services; do \
|
||||
if ! docker-compose -p $(PROJECT_NAME) -f $(COMPOSE_FILE) ps $$service | grep -q "healthy"; then \
|
||||
echo "Waiting for $$service to be healthy..."; \
|
||||
all_healthy=false; \
|
||||
break; \
|
||||
fi; \
|
||||
done; \
|
||||
if [ "$$all_healthy" = "true" ]; then \
|
||||
break; \
|
||||
fi; \
|
||||
sleep 5; \
|
||||
done \
|
||||
'
|
||||
@echo "✅ All services are healthy"
|
||||
@echo "✅ All required services are healthy"
|
||||
Reference in new issue
Block a user