Skip to content

Commit 504228e

Browse files
authored
fix reorg bug (#779)
Signed-off-by: Xinyao Wang <xinyao.wang@intel.com>
1 parent d73129c commit 504228e

File tree

4 files changed

+10
-8
lines changed

4 files changed

+10
-8
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ repos:
1414
- id: check-json
1515
exclude: |
1616
(?x)^(
17-
ChatQnA/svelte/tsconfig.json|
17+
ChatQnA/ui/svelte/tsconfig.json|
1818
SearchQnA/ui/svelte/tsconfig.json|
19-
DocSum/svelte/tsconfig.json
19+
DocSum/ui/svelte/tsconfig.json
2020
)$
2121
- id: check-yaml
2222
args: [--allow-multiple-documents]

DocIndexRetriever/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33

44
FROM python:3.11-slim
55

6-
COPY GenAIComps /home/user/GenAIComps
7-
86
RUN apt-get update -y && apt-get install -y --no-install-recommends --fix-missing \
97
libgl1-mesa-glx \
108
libjemalloc-dev \
@@ -14,11 +12,14 @@ RUN useradd -m -s /bin/bash user && \
1412
mkdir -p /home/user && \
1513
chown -R user /home/user/
1614

15+
WORKDIR /home/user/
16+
RUN git clone https://github.com/opea-project/GenAIComps.git
17+
1718
WORKDIR /home/user/GenAIComps
1819
RUN pip install --no-cache-dir --upgrade pip && \
1920
pip install --no-cache-dir -r /home/user/GenAIComps/requirements.txt
2021

21-
COPY GenAIExamples/DocIndexRetriever/retrieval_tool.py /home/user/retrieval_tool.py
22+
COPY ./retrieval_tool.py /home/user/retrieval_tool.py
2223

2324
ENV PYTHONPATH=$PYTHONPATH:/home/user/GenAIComps
2425

DocIndexRetriever/docker_image_build/build.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ services:
88
http_proxy: ${http_proxy}
99
https_proxy: ${https_proxy}
1010
no_proxy: ${no_proxy}
11+
context: ../
1112
dockerfile: ./Dockerfile
1213
image: ${REGISTRY:-opea}/doc-index-retriever:${TAG:-latest}
1314
embedding-tei:

DocIndexRetriever/tests/test_compose_on_gaudi.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ function build_docker_images() {
2424
docker pull ghcr.io/huggingface/tgi-gaudi:latest
2525
docker pull redis/redis-stack:7.2.0-v9
2626

27-
cd $WORKPATH/../../
28-
docker build -t opea/doc-index-retriever:latest -f GenAIExamples/DocIndexRetriever/Dockerfile .
27+
cd $WORKPATH/
28+
docker build -t opea/doc-index-retriever:latest -f ./Dockerfile .
2929
}
3030

3131
function start_services() {
@@ -47,7 +47,7 @@ function start_services() {
4747
export RERANK_SERVICE_PORT=18000
4848

4949
# Start Docker Containers
50-
docker compose -f docker_compose.yaml up -d
50+
docker compose up -d
5151
sleep 20
5252
}
5353

0 commit comments

Comments
 (0)