Skip to content

Commit 81342f3

Browse files
are-cesclaude
andcommitted
LCORE-2395: restructure run targets - add run-stack, run calls run-stack
- run-stack: runs lightspeed-stack directly, no dependent services - run: starts llama-stack container then delegates to run-stack Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
1 parent 085350f commit 81342f3

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,15 @@ LLAMA_STACK_IMAGE ?= lightspeed-llama-stack:local
1717
LLAMA_STACK_PORT ?= 8321
1818
CONTAINER_RUNTIME ?= $(shell command -v podman 2>/dev/null || command -v docker 2>/dev/null)
1919

20-
.PHONY: run run-local 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+
2629
build-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 \
@@ -108,8 +111,6 @@ 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
111-
run-local: ## Run the service locally, assuming llama-stack is already running externally
112-
uv run src/lightspeed_stack.py -c $(CONFIG)
113114

114115
run-llama-stack: ## Start Llama Stack with enriched config (for local service mode)
115116
uv run src/llama_stack_configuration.py -c $(CONFIG) -i $(LLAMA_STACK_CONFIG) -o $(LLAMA_STACK_CONFIG) && \

0 commit comments

Comments
 (0)