Skip to content

Commit 2e1e08e

Browse files
authored
Merge pull request #49 from ansible/TamiTakamiya/AAP-38384/konflux-build-change
Separate RAG Content image and Embeddings image in Konflux build
2 parents 110ef76 + c5ca3fc commit 2e1e08e

File tree

7 files changed

+36
-251
lines changed

7 files changed

+36
-251
lines changed

.tekton/ansible-chatbot-service-pull-request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ spec:
258258
- name: COMMIT_SHA
259259
value: $(tasks.clone-repository.results.commit)
260260
- name: BUILD_ARGS
261-
value: ["IMAGE_TAGS=pr-{{pull_request_number}} pr-{{pull_request_number}}.$(tasks.git-metadata.results.commit-timestamp)", "GIT_COMMIT=$(tasks.clone-repository.results.commit)", "RAG_CONTENTS_SUB_FOLDER=vector_db/aap_product_docs", "LIGHTSPEED_RAG_CONTENT_IMAGE=quay.io/ansible/aap-rag-content:latest"]
261+
value: ["IMAGE_TAGS=pr-{{pull_request_number}} pr-{{pull_request_number}}.$(tasks.git-metadata.results.commit-timestamp)", "GIT_COMMIT=$(tasks.clone-repository.results.commit)", "RAG_CONTENTS_SUB_FOLDER=vector_db/aap_product_docs", "LIGHTSPEED_RAG_CONTENT_IMAGE=quay.io/ansible/aap-rag-content:latest", "LIGHTSPEED_RAG_EMBEDDINGS_IMAGE=quay.io/ansible/aap-rag-embeddings-image:latest"]
262262
- name: BUILD_ARGS_FILE
263263
value: $(params.build-args-file)
264264
runAfter:

.tekton/ansible-chatbot-service-push.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ spec:
274274
- name: TARGET_STAGE
275275
value: production
276276
- name: BUILD_ARGS
277-
value: [ "IMAGE_TAGS=latest 1.0.$(tasks.git-metadata.results.commit-timestamp)", "GIT_COMMIT=$(tasks.clone-repository.results.commit)", "RAG_CONTENTS_SUB_FOLDER=vector_db/aap_product_docs", "LIGHTSPEED_RAG_CONTENT_IMAGE=quay.io/ansible/aap-rag-content:latest"]
277+
value: [ "IMAGE_TAGS=latest 1.0.$(tasks.git-metadata.results.commit-timestamp)", "GIT_COMMIT=$(tasks.clone-repository.results.commit)", "RAG_CONTENTS_SUB_FOLDER=vector_db/aap_product_docs", "LIGHTSPEED_RAG_CONTENT_IMAGE=quay.io/ansible/aap-rag-content:latest", "LIGHTSPEED_RAG_EMBEDDINGS_IMAGE=quay.io/ansible/aap-rag-embeddings-image:latest"]
278278
runAfter:
279279
- prefetch-dependencies
280280
taskRef:

Containerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
2828
WORKDIR /app-root
2929

3030
COPY --from=lightspeed-rag-content /rag/${RAG_CONTENTS_SUB_FOLDER} ${APP_ROOT}/${RAG_CONTENTS_SUB_FOLDER}
31-
COPY --from=lightspeed-rag-content /rag/embeddings_model ./embeddings_model
31+
COPY --from=lightspeed-rag-embeddings /rag/embeddings_model ./embeddings_model
3232

3333
# Add explicit files and directories
3434
# (avoid accidental inclusion of local directories or env files or credentials)

pdm.lock

Lines changed: 24 additions & 189 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ description = "Road-core service is an AI powered assistant that runs on OpenShi
8989
authors = []
9090
dependencies = [
9191
"pdm==2.21.0",
92-
"torch==2.5.1",
92+
'torch@http://download.pytorch.org/whl/cpu/torch-2.5.1%2Bcpu-cp311-cp311-linux_x86_64.whl ; platform_system != "Darwin"',
93+
'torch-macos@http://download.pytorch.org/whl/cpu/torch-2.5.1-cp311-none-macosx_11_0_arm64.whl ; platform_system == "Darwin"',
9394
"pandas==2.1.4",
9495
"httpx==0.27.2",
9596
"fastapi==0.115.6",

0 commit comments

Comments
 (0)