Skip to content

Commit

Permalink
update port since 8000 is not available
Browse files Browse the repository at this point in the history
Signed-off-by: Chendi.Xue <[email protected]>
  • Loading branch information
xuechendi committed Aug 19, 2024
1 parent 809ea1e commit 770e7b2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DocIndexRetriever/docker/gaudi/docker_compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ services:
image: opea/reranking-tei:latest
container_name: reranking-tei-server
ports:
- "8000:8000"
- "18000:8000"
ipc: host
entrypoint: python local_reranking.py
environment:
Expand Down
2 changes: 1 addition & 1 deletion DocIndexRetriever/docker/xeon/docker_compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ services:
image: opea/reranking-tei:latest
container_name: reranking-tei-server
ports:
- "8000:8000"
- "18000:8000"
ipc: host
entrypoint: python local_reranking.py
environment:
Expand Down
8 changes: 4 additions & 4 deletions DocIndexRetriever/tests/test_docindexretriever_on_gaudi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@ ip_address=$(hostname -I | awk '{print $1}')

function build_docker_images() {
cd $WORKPATH/../../
if [ -d "GenAIComps" ] ; then
rm -rf GenAIComps
if [ ! -d "GenAIComps" ] ; then
git clone https://github.com/opea-project/GenAIComps.git
fi
git clone https://github.com/opea-project/GenAIComps.git
cd GenAIComps
git status

Expand Down Expand Up @@ -46,6 +45,7 @@ function start_services() {
export RETRIEVER_SERVICE_HOST_IP=${ip_address}
export RERANK_SERVICE_HOST_IP=${ip_address}
export LLM_SERVICE_HOST_IP=${ip_address}
export RERANK_SERVICE_PORT=18000

# Start Docker Containers
docker compose -f docker_compose.yaml up -d
Expand Down Expand Up @@ -85,7 +85,7 @@ function validate_megaservice() {
local CONTENT=$(curl http://${ip_address}:8889/v1/retrievaltool -X POST -H "Content-Type: application/json" -d '{
"text": "Explain the OPEA project?"
}')
local EXIT_CODE=$(validate "$CONTENT" "reranked_docs" "doc-index-retriever-service-gaudi")
local EXIT_CODE=$(validate "$CONTENT" "OPEA" "doc-index-retriever-service-gaudi")
echo "$EXIT_CODE"
local EXIT_CODE="${EXIT_CODE:0-1}"
echo "return value is $EXIT_CODE"
Expand Down

0 comments on commit 770e7b2

Please sign in to comment.