File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,9 @@ FROM quay.io/lightspeed-core/lightspeed-stack:dev-latest
34
34
USER 0
35
35
36
36
# Re-declaring arguments without a value, inherits the global default one.
37
+ ARG APP_ROOT
37
38
ARG ANSIBLE_CHATBOT_VERSION
38
- ARG APP_ROOT=/app-root
39
39
RUN microdnf install -y --nodocs --setopt=keepcache=0 --setopt=tsflags=nodocs python3.11 jq
40
- WORKDIR /app-root
41
40
42
41
# PYTHONDONTWRITEBYTECODE 1 : disable the generation of .pyc
43
42
# PYTHONUNBUFFERED 1 : force the stdout and stderr streams to be unbuffered
@@ -49,7 +48,7 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
49
48
PYTHONIOENCODING=UTF-8 \
50
49
LANG=en_US.UTF-8
51
50
52
- COPY --from=builder --chown=1001:1001 /app-root /app-root
51
+ COPY --from=builder /app-root /app-root
53
52
54
53
# this directory is checked by ecosystem-cert-preflight-checks task in Konflux
55
54
COPY --from=builder /app-root/LICENSE.md /licenses/
@@ -62,6 +61,7 @@ ENV LLAMA_STACK_CONFIG_DIR=/.llama/data
62
61
# Data and configuration
63
62
RUN mkdir -p /.llama/distributions/ansible-chatbot
64
63
RUN mkdir -p /.llama/data/distributions/ansible-chatbot
64
+ ADD lightspeed-stack.yaml /.llama/distributions/ansible-chatbot
65
65
ADD ansible-chatbot-run.yaml /.llama/distributions/ansible-chatbot
66
66
RUN echo -e "\
67
67
{\n \
Original file line number Diff line number Diff line change @@ -79,14 +79,14 @@ models:
79
79
provider_model_id : null
80
80
- metadata :
81
81
embedding_dimension : 768
82
- model_id : . /embeddings_model
82
+ model_id : /.llama/data/distributions/ansible-chatbot /embeddings_model
83
83
provider_id : inline_sentence-transformer
84
84
model_type : embedding
85
85
shields : []
86
86
vector_dbs :
87
87
- metadata : {}
88
88
vector_db_id : " aap-product-docs-2_5"
89
- embedding_model : . /embeddings_model
89
+ embedding_model : /.llama/data/distributions/ansible-chatbot /embeddings_model
90
90
embedding_dimension : 768
91
91
provider_id : " aap_faiss"
92
92
datasets : []
Original file line number Diff line number Diff line change 2
2
MOUNTPATH=/.llama/data
3
3
4
4
echo " Checking preloaded embedding model..."
5
- if [[ -e . /embeddings_model ]]; then
6
- echo " . /embeddings_model already exists."
5
+ if [[ -e /.llama/data/distributions/ansible-chatbot /embeddings_model ]]; then
6
+ echo " /.llama/data/distributions/ansible-chatbot /embeddings_model already exists."
7
7
else
8
8
if [[ ! -d ${MOUNTPATH} ]]; then
9
9
echo " Volume mount path is not found."
13
13
echo " Embedding model is not found on the volume mount path."
14
14
exit 1
15
15
else
16
- ln -s ${MOUNTPATH} /embeddings_model . /embeddings_model
16
+ ln -s ${MOUNTPATH} /embeddings_model /.llama/data/distributions/ansible-chatbot /embeddings_model
17
17
if [[ $? != 0 ]]; then
18
18
echo " Failed to create symlink ./embeddings_model"
19
19
exit 1
20
20
fi
21
- echo " Symlink . /embeddings_model has been created."
21
+ echo " Symlink /.llama/data/distributions/ansible-chatbot /embeddings_model has been created."
22
22
fi
23
23
fi
24
24
fi
25
25
26
- python3.12 src/lightspeed_stack.py --config /.llama/data /lightspeed-stack.yaml
26
+ python3.12 /app-root/ src/lightspeed_stack.py --config /.llama/distributions/ansible-chatbot /lightspeed-stack.yaml
You can’t perform that action at this time.
0 commit comments