@@ -17,12 +17,15 @@ LLAMA_STACK_IMAGE ?= lightspeed-llama-stack:local
1717LLAMA_STACK_PORT ?= 8321
1818CONTAINER_RUNTIME ?= $(shell command -v podman 2>/dev/null || command -v docker 2>/dev/null)
1919
20- .PHONY : run build-llama-stack-image remove-llama-stack-container start-llama-stack-container wait-for-llama-stack-health clean-llama-stack
20+ .PHONY : run run-stack build-llama-stack-image remove-llama-stack-container start-llama-stack-container wait-for-llama-stack-health clean-llama-stack
2121
22- run : start-llama-stack-container # # Run the service locally with llama-stack container
23- @echo " Starting Lightspeed Core Stack..."
22+ run-stack : # # Run lightspeed-stack directly, without building dependent service/s
2423 uv run src/lightspeed_stack.py -c $(CONFIG )
2524
25+ run : start-llama-stack-container # # Run the service locally with dependent services
26+ @echo " Starting Lightspeed Core Stack..."
27+ $(MAKE ) run-stack
28+
2629build-llama-stack-image : remove-llama-stack-container # # Build llama-stack container image
2730 @echo " Building llama-stack container image..."
2831 @if [ -z " $( CONTAINER_RUNTIME) " ]; then \
@@ -47,7 +50,7 @@ start-llama-stack-container: build-llama-stack-image ## Start llama-stack contai
4750 --health-timeout 5s \
4851 --health-retries 3 \
4952 --health-start-period 15s \
50- -v $(PWD ) /$(LLAMA_STACK_CONFIG ) :/opt/app-root/run.yaml:ro, z \
53+ -v $(PWD ) /$(LLAMA_STACK_CONFIG ) :/opt/app-root/run.yaml:z \
5154 -v $(PWD ) /$(CONFIG ) :/opt/app-root/lightspeed-stack.yaml:ro,z \
5255 -v $(PWD ) /scripts/llama-stack-entrypoint.sh:/opt/app-root/enrich-entrypoint.sh:ro,z \
5356 -v $(PWD ) /src/llama_stack_configuration.py:/opt/app-root/llama_stack_configuration.py:ro,z \
@@ -108,6 +111,7 @@ clean-llama-stack: remove-llama-stack-container ## Remove container and image
108111 echo " Removing llama-stack image..." ; \
109112 $(CONTAINER_RUNTIME ) rmi $(LLAMA_STACK_IMAGE ) ; \
110113 fi
114+
111115run-llama-stack : # # Start Llama Stack with enriched config (for local service mode)
112116 uv run src/llama_stack_configuration.py -c $(CONFIG ) -i $(LLAMA_STACK_CONFIG ) -o $(LLAMA_STACK_CONFIG ) && \
113117 uv run llama stack run $(LLAMA_STACK_CONFIG )
0 commit comments