Skip to content

Commit 251231f

Browse files
committed
Run with entrypoint script instead of executing module inside a package
Modules inside packages should not be invoked directly.
1 parent 52ab728 commit 251231f

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ CONTAINER_RUNTIME ?= $(shell command -v podman 2>/dev/null || command -v docker
2020
.PHONY: run run-stack build-llama-stack-image remove-llama-stack-container stop-llama-stack-container start-llama-stack-container wait-for-llama-stack-health clean-llama-stack
2121

2222
run-stack: ## Run lightspeed-stack directly, without building dependent service/s
23-
uv run src/lightspeed_stack.py -c $(CONFIG)
23+
uv run lightspeed_stack -c $(CONFIG)
2424

2525
run: start-llama-stack-container ## Run the service locally with dependent services
2626
@echo "Starting Lightspeed Core Stack..."

deploy/lightspeed-stack/Containerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ ENV PYTHONPATH="/app-root"
135135

136136
# Run the application
137137
EXPOSE 8080
138-
ENTRYPOINT ["python3.12", "src/lightspeed_stack.py"]
138+
ENTRYPOINT ["lightspeed-stack"]
139139

140140
LABEL vendor="Red Hat, Inc." \
141141
name="lightspeed-core/lightspeed-stack-rhel9" \

tests/e2e-prow/rhoai/manifests/lightspeed/lightspeed-stack.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ spec:
3737
key: key
3838
optional: true
3939
image: ${LIGHTSPEED_STACK_IMAGE}
40-
command: ["/bin/sh", "-c", "mkdir -p /tmp/data && exec python3.12 src/lightspeed_stack.py"]
40+
command: ["/bin/sh", "-c", "mkdir -p /tmp/data && exec lightspeed_stack"]
4141
ports:
4242
- containerPort: 8080
4343
# TCP probes avoid HTTP/auth. LCS + Llama handshake and large images can take 60–120s before :8080 listens;

0 commit comments

Comments
 (0)