Skip to content

Commit 2a38930

Browse files
committed
Use model cache for embeddings docker compose test.
Signed-off-by: ZePan110 <ze.pan@intel.com>
1 parent e73c22a commit 2a38930

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

comps/third_parties/tei/deployment/docker_compose/compose.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ services:
99
ports:
1010
- "${TEI_EMBEDDER_PORT:-12000}:80"
1111
volumes:
12-
- "./data:/data"
12+
- "${DATA_PATH-./data}:/data"
1313
shm_size: 1g
1414
environment:
1515
no_proxy: ${no_proxy}
@@ -30,7 +30,7 @@ services:
3030
ports:
3131
- "${TEI_RERANKING_PORT:-12003}:80"
3232
volumes:
33-
- "./data:/data"
33+
- "${DATA_PATH-./data}:/data"
3434
shm_size: 1g
3535
environment:
3636
no_proxy: ${no_proxy}
@@ -51,7 +51,7 @@ services:
5151
ports:
5252
- ${TEI_RERANKING_PORT:-12004}:80
5353
volumes:
54-
- "./data:/data"
54+
- "${DATA_PATH-./data}:/data"
5555
shm_size: 1g
5656
environment:
5757
no_proxy: ${no_proxy}

tests/embeddings/test_embeddings_tei.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ set -x
77

88
WORKPATH=$(dirname "$PWD")
99
ip_address=$(hostname -I | awk '{print $1}')
10+
export DATA_PATH=${model_cache}
1011

1112
function build_docker_images() {
1213
cd $WORKPATH

0 commit comments

Comments
 (0)