Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ start-llama-stack-container: build-llama-stack-image ## Start llama-stack contai
-p $(LLAMA_STACK_PORT):8321 \
--health-cmd "curl -f http://localhost:8321/v1/health || exit 1" \
--health-interval 10s \
--health-timeout 5s \
--health-retries 3 \
--health-start-period 15s \
--health-timeout 10s \
--health-retries 5 \
--health-start-period 20s \
-v $(PWD)/$(LLAMA_STACK_CONFIG):/opt/app-root/run.yaml:z \
-v $(PWD)/$(CONFIG):/opt/app-root/lightspeed-stack.yaml:ro,z \
-v $(PWD)/scripts/llama-stack-entrypoint.sh:/opt/app-root/enrich-entrypoint.sh:ro,z \
Expand Down Expand Up @@ -123,12 +123,11 @@ start-llama-stack-container: build-llama-stack-image ## Start llama-stack contai
wait-for-llama-stack-health: ## Wait for llama-stack container to be healthy
@echo "Waiting for llama-stack container to be healthy..."
@for i in {1..30}; do \
STATUS=$$($(CONTAINER_RUNTIME) inspect --format='{{.State.Health.Status}}' $(LLAMA_STACK_CONTAINER_NAME) 2>/dev/null || echo "no-healthcheck"); \
if [ "$$STATUS" = "healthy" ]; then \
if curl -sf http://localhost:$(LLAMA_STACK_PORT)/v1/health >/dev/null 2>&1; then \
echo "✓ Llama-stack is healthy and ready!"; \
exit 0; \
fi; \
echo " Health status: $$STATUS (attempt $$i/30)"; \
echo " Waiting... (attempt $$i/30)"; \
sleep 2; \
done; \
echo "✗ ERROR: Llama-stack did not become healthy within 60 seconds"; \
Expand Down
Loading
Loading