Skip to content

Commit

Permalink
update compose.yaml fix the test issue (opea-project#467)
Browse files Browse the repository at this point in the history
Signed-off-by: chensuyue <suyue.chen@intel.com>
  • Loading branch information
chensuyue authored Jul 28, 2024
1 parent 1b33989 commit a2437e8
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 22 deletions.
18 changes: 9 additions & 9 deletions AudioQnA/tests/test_audioqna_on_gaudi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ function start_services() {

# Start Docker Containers
docker compose up -d
n=0
until [[ "$n" -ge 500 ]]; do
docker logs tgi-gaudi-server > $LOG_PATH/tgi_service_start.log
if grep -q Connected $LOG_PATH/tgi_service_start.log; then
break
fi
sleep 1s
n=$((n+1))
done
n=0
until [[ "$n" -ge 500 ]]; do
docker logs tgi-gaudi-server > $LOG_PATH/tgi_service_start.log
if grep -q Connected $LOG_PATH/tgi_service_start.log; then
break
fi
sleep 1s
n=$((n+1))
done
}


Expand Down
10 changes: 9 additions & 1 deletion AudioQnA/tests/test_audioqna_on_xeon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function start_services() {
# Start Docker Containers
docker compose up -d
n=0
until [[ "$n" -ge 200 ]]; do
until [[ "$n" -ge 500 ]]; do
docker logs tgi-service > $LOG_PATH/tgi_service_start.log
if grep -q Connected $LOG_PATH/tgi_service_start.log; then
break
Expand All @@ -81,6 +81,14 @@ function validate_megaservice() {
if [[ $result == *"AAA"* ]]; then
echo "Result correct."
else
docker logs whisper-service > $LOG_PATH/whisper-service.log
docker logs asr-service > $LOG_PATH/asr-service.log
docker logs speecht5-service > $LOG_PATH/tts-service.log
docker logs tts-service > $LOG_PATH/tts-service.log
docker logs tgi-service > $LOG_PATH/tgi-service.log
docker logs llm-tgi-server > $LOG_PATH/llm-tgi-server.log
docker logs audioqna-xeon-backend-server > $LOG_PATH/audioqna-xeon-backend-server.log

echo "Result wrong."
exit 1
fi
Expand Down
3 changes: 0 additions & 3 deletions CodeGen/docker/gaudi/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ services:
- codegen-gaudi-backend-server
ports:
- "5174:80"
build:
args:
- BACKEND_SERVICE_ENDPOINT=${BACKEND_SERVICE_ENDPOINT}
ipc: host
restart: always

Expand Down
3 changes: 0 additions & 3 deletions CodeGen/docker/xeon/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ services:
- codegen-xeon-backend-server
ports:
- "5174:80"
build:
args:
- BACKEND_SERVICE_ENDPOINT=${BACKEND_SERVICE_ENDPOINT}
ipc: host
restart: always

Expand Down
3 changes: 0 additions & 3 deletions DocSum/docker/gaudi/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ services:
container_name: docsum-gaudi-react-ui-server
depends_on:
- docsum-gaudi-backend-server
build:
args:
- BACKEND_SERVICE_ENDPOINT=${BACKEND_SERVICE_ENDPOINT}
ports:
- "5174:80"
environment:
Expand Down
3 changes: 0 additions & 3 deletions DocSum/docker/xeon/compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ services:
container_name: docsum-xeon-react-ui-server
depends_on:
- docsum-xeon-backend-server
build:
args:
- BACKEND_SERVICE_ENDPOINT=${BACKEND_SERVICE_ENDPOINT}
ports:
- "5174:80"
ipc: host
Expand Down

0 comments on commit a2437e8

Please sign in to comment.