From 824a7e2c0daf70fe229e9a101944b5eeeed88e8a Mon Sep 17 00:00:00 2001 From: Steve Zhang Date: Fri, 6 Sep 2024 18:54:57 +0800 Subject: [PATCH] clear some unnecessary scripts and Dockerfile commands. (#635) Signed-off-by: zhlsunshine --- comps/retrievers/langchain/pgvector/docker/Dockerfile | 4 +--- comps/retrievers/langchain/pgvector/run.sh | 9 --------- comps/retrievers/langchain/vdms/docker/Dockerfile | 5 ----- comps/retrievers/langchain/vdms/run.sh | 9 --------- 4 files changed, 1 insertion(+), 26 deletions(-) delete mode 100644 comps/retrievers/langchain/pgvector/run.sh delete mode 100644 comps/retrievers/langchain/vdms/run.sh diff --git a/comps/retrievers/langchain/pgvector/docker/Dockerfile b/comps/retrievers/langchain/pgvector/docker/Dockerfile index 84122d629..ee93f9f13 100644 --- a/comps/retrievers/langchain/pgvector/docker/Dockerfile +++ b/comps/retrievers/langchain/pgvector/docker/Dockerfile @@ -13,8 +13,6 @@ RUN useradd -m -s /bin/bash user && \ COPY comps /home/user/comps -RUN chmod +x /home/user/comps/retrievers/langchain/pgvector/run.sh - USER user RUN pip install --no-cache-dir --upgrade pip && \ @@ -24,4 +22,4 @@ ENV PYTHONPATH=$PYTHONPATH:/home/user WORKDIR /home/user/comps/retrievers/langchain/pgvector -ENTRYPOINT ["/home/user/comps/retrievers/langchain/pgvector/run.sh"] +ENTRYPOINT ["python", "retriever_pgvector.py"] diff --git a/comps/retrievers/langchain/pgvector/run.sh b/comps/retrievers/langchain/pgvector/run.sh deleted file mode 100644 index 027b1a46a..000000000 --- a/comps/retrievers/langchain/pgvector/run.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -# Copyright (C) 2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 - -cd /home/user/comps/retrievers/langchain/pgvector -python ingest.py - -python retriever_pgvector.py diff --git a/comps/retrievers/langchain/vdms/docker/Dockerfile b/comps/retrievers/langchain/vdms/docker/Dockerfile index de4a3b50c..b67d49c82 100644 --- a/comps/retrievers/langchain/vdms/docker/Dockerfile +++ b/comps/retrievers/langchain/vdms/docker/Dockerfile @@ -18,8 +18,6 @@ RUN useradd -m -s /bin/bash user && \ COPY comps /home/user/comps -# RUN chmod +x /home/user/comps/retrievers/langchain/vdms/run.sh - USER user RUN pip install --no-cache-dir --upgrade pip && \ if [ ${ARCH} = "cpu" ]; then pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu; fi && \ @@ -43,7 +41,4 @@ ENV https_proxy="" WORKDIR /home/user/comps/retrievers/langchain/vdms -#ENTRYPOINT ["/home/user/comps/retrievers/langchain/vdms/run.sh"] -#ENTRYPOINT ["/bin/bash"] - ENTRYPOINT ["python", "retriever_vdms.py"] diff --git a/comps/retrievers/langchain/vdms/run.sh b/comps/retrievers/langchain/vdms/run.sh deleted file mode 100644 index ac5875e93..000000000 --- a/comps/retrievers/langchain/vdms/run.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -# Copyright (C) 2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 - -cd /home/user/comps/retrievers/langchain/vdms -#python ingest.py - -python retriever_vdms.py