Skip to content

Commit

Permalink
fix test script isssue for docker start and stop
Browse files Browse the repository at this point in the history
Signed-off-by: Wang, Kai Lawrence <[email protected]>
  • Loading branch information
wangkl2 committed Jan 16, 2025
1 parent 09b6a7d commit b268cd2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ChatQnA/tests/test_compose_on_xeon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function start_services() {
export HUGGINGFACEHUB_API_TOKEN=${HUGGINGFACEHUB_API_TOKEN}

# Start Docker Containers
docker compose -f compose_vllm.yaml up -d > ${LOG_PATH}/start_services_with_compose.log
docker compose -f compose.yaml up -d > ${LOG_PATH}/start_services_with_compose.log
n=0
until [[ "$n" -ge 100 ]]; do
docker logs vllm-service > ${LOG_PATH}/vllm_service_start.log 2>&1
Expand Down Expand Up @@ -159,7 +159,7 @@ function validate_frontend() {

function stop_docker() {
cd $WORKPATH/docker_compose/intel/cpu/xeon
docker compose -f compose_vllm.yaml down
docker compose -f compose.yaml down
}

function main() {
Expand Down
2 changes: 1 addition & 1 deletion ChatQnA/tests/test_compose_qdrant_on_xeon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function validate_frontend() {

function stop_docker() {
cd $WORKPATH/docker_compose/intel/cpu/xeon
docker compose -f compose_qdrant.yaml stop && docker compose -f compose_qdrant.yaml rm -f
docker compose -f compose_qdrant.yaml down
}

function main() {
Expand Down
4 changes: 2 additions & 2 deletions ChatQnA/tests/test_compose_tgi_on_xeon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function start_services() {

# Start Docker Containers
sed -i "s|container_name: chatqna-xeon-backend-server|container_name: chatqna-xeon-backend-server\n volumes:\n - \"${WORKPATH}\/docker_image_build\/GenAIComps:\/home\/user\/GenAIComps\"|g" compose.yaml
docker compose -f compose.yaml up -d > ${LOG_PATH}/start_services_with_compose.log
docker compose -f compose_tgi.yaml up -d > ${LOG_PATH}/start_services_with_compose.log

n=0
until [[ "$n" -ge 100 ]]; do
Expand Down Expand Up @@ -205,7 +205,7 @@ function validate_frontend() {

function stop_docker() {
cd $WORKPATH/docker_compose/intel/cpu/xeon
docker compose stop && docker compose rm -f
docker compose -f compose_tgi.yaml down
}

function main() {
Expand Down
2 changes: 1 addition & 1 deletion ChatQnA/tests/test_compose_without_rerank_on_xeon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ function validate_frontend() {

function stop_docker() {
cd $WORKPATH/docker_compose/intel/cpu/xeon/
docker compose -f compose_without_rerank.yaml stop && docker compose -f compose_without_rerank.yaml rm -f
docker compose -f compose_without_rerank.yaml down
}

function main() {
Expand Down

0 comments on commit b268cd2

Please sign in to comment.