Skip to content

Commit 5ccf714

Browse files
Merge pull request #346 from raptorsun/latest-index
OLS-1340: add default symlink to the latest version of OCP docs
2 parents 6e5ee91 + 71434a8 commit 5ccf714

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Containerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ RUN export LD_LIBRARY_PATH=/usr/local/cuda-12/compat:$LD_LIBRARY_PATH; \
4444
-mn ${EMBEDDING_MODEL} -o vector_db/ocp_product_docs/${OCP_VERSION} \
4545
-i ocp-product-docs-$(echo $OCP_VERSION | sed 's/\./_/g') -v ${OCP_VERSION} -hb $HERMETIC; \
4646
done
47+
RUN LATEST_VERSION=$(ls -1 vector_db/ocp_product_docs/ | sort -V | tail -n 1) && \
48+
cd vector_db/ocp_product_docs && ln -s ${LATEST_VERSION} latest
4749

4850
FROM registry.access.redhat.com/ubi9/ubi-minimal@sha256:a50731d3397a4ee28583f1699842183d4d24fadcc565c4688487af9ee4e13a44
4951
COPY --from=lightspeed-rag-builder /workdir/vector_db/ocp_product_docs /rag/vector_db/ocp_product_docs

0 commit comments

Comments
 (0)