File tree Expand file tree Collapse file tree
tests/e2e-prow/rhoai/manifests/lightspeed Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # Upstream llama-stack built from Red Hat UBI
2- FROM registry.access.redhat.com/ubi9/ubi-minimal
1+ # Upstream llama-stack built from Red Hat UBI Python 3.12 image
2+ FROM registry.access.redhat.com/ubi9/python-312
33
44USER root
55
6- # Install Python and build tools
7- RUN microdnf install -y --nodocs --setopt=keepcache=0 --setopt=tsflags=nodocs \
8- python3.12 python3.12-devel python3.12-pip git tar gcc gcc-c++ make
6+ # Install additional build tools
7+ RUN dnf install -y --nodocs --setopt=keepcache=0 --setopt=tsflags=nodocs \
8+ git tar gcc gcc-c++ make && \
9+ dnf clean all
910
1011# Install uv
1112ENV PATH="/root/.local/bin:${PATH}"
Original file line number Diff line number Diff line change 55set -e
66
77INPUT_CONFIG=" ${LLAMA_STACK_CONFIG:-/ opt/ app-root/ run.yaml} "
8- ENRICHED_CONFIG=" /opt/app-root/ run.yaml"
8+ ENRICHED_CONFIG=" /tmp/enriched- run.yaml"
99LIGHTSPEED_CONFIG=" ${LIGHTSPEED_CONFIG:-/ opt/ app-root/ lightspeed-stack.yaml} "
1010
1111# Enrich config if lightspeed config exists
1212if [ -f " $LIGHTSPEED_CONFIG " ]; then
1313 echo " Enriching llama-stack config..."
1414 ENRICHMENT_FAILED=0
15- python3 /opt/app-root/llama_stack_configuration.py \
15+ /opt/app-root/.venv/bin/ python3 /opt/app-root/llama_stack_configuration.py \
1616 -c " $LIGHTSPEED_CONFIG " \
1717 -i " $INPUT_CONFIG " \
1818 -o " $ENRICHED_CONFIG " 2>&1 || ENRICHMENT_FAILED=1
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ spec:
157157 if [[ -f "$LIGHTSPEED_CONFIG" ]]; then
158158 echo "Enriching llama-stack config..."
159159 ENRICHMENT_FAILED=0
160- python3 /opt/app-root/llama_stack_configuration.py \
160+ /opt/app-root/.venv/bin/ python3 /opt/app-root/llama_stack_configuration.py \
161161 -c "$LIGHTSPEED_CONFIG" \
162162 -i "$INPUT_CONFIG" \
163163 -o "$ENRICHED_CONFIG" 2>&1 || ENRICHMENT_FAILED=1
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ spec:
147147 if [[ -f "$LIGHTSPEED_CONFIG" ]]; then
148148 echo "Enriching llama-stack config..."
149149 ENRICHMENT_FAILED=0
150- python3 /opt/app-root/src/llama_stack_configuration.py \
150+ /opt/app-root/.venv/bin/ python3 /opt/app-root/src/llama_stack_configuration.py \
151151 -c "$LIGHTSPEED_CONFIG" \
152152 -i "$INPUT_CONFIG" \
153153 -o "$ENRICHED_CONFIG" 2>&1 || ENRICHMENT_FAILED=1
You can’t perform that action at this time.
0 commit comments