Skip to content

Commit 085350f

Browse files
are-cesclaude
andcommitted
LCORE-2395: add run-local target for running without container orchestration
Restores the pre-LCORE-1872 behaviour as a separate target: run-local starts only the lightspeed-stack service, assuming llama-stack is already running externally (e.g. via docker compose or a separate process). Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
1 parent a7ba02a commit 085350f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ 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 build-llama-stack-image remove-llama-stack-container start-llama-stack-container wait-for-llama-stack-health clean-llama-stack
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
2121

2222
run: start-llama-stack-container ## Run the service locally with llama-stack container
2323
@echo "Starting Lightspeed Core Stack..."
@@ -108,6 +108,9 @@ clean-llama-stack: remove-llama-stack-container ## Remove container and image
108108
echo "Removing llama-stack image..."; \
109109
$(CONTAINER_RUNTIME) rmi $(LLAMA_STACK_IMAGE); \
110110
fi
111+
run-local: ## Run the service locally, assuming llama-stack is already running externally
112+
uv run src/lightspeed_stack.py -c $(CONFIG)
113+
111114
run-llama-stack: ## Start Llama Stack with enriched config (for local service mode)
112115
uv run src/llama_stack_configuration.py -c $(CONFIG) -i $(LLAMA_STACK_CONFIG) -o $(LLAMA_STACK_CONFIG) && \
113116
uv run llama stack run $(LLAMA_STACK_CONFIG)

0 commit comments

Comments
 (0)