Skip to content

Commit 00fb8eb

Browse files
committed
rename docker compose.yaml
Signed-off-by: chensuyue <suyue.chen@intel.com>
1 parent 8ad7f36 commit 00fb8eb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+151
-195
lines changed

.github/workflows/docker-compose-e2e.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,7 @@ jobs:
8080
if: cancelled() || failure()
8181
run: |
8282
cd ${{ github.workspace }}/$example/docker/$hardware
83-
container_list=$(cat docker_compose.yaml | grep container_name | cut -d':' -f2)
84-
for container_name in $container_list; do
85-
cid=$(docker ps -aq --filter "name=$container_name")
86-
if [[ ! -z "$cid" ]]; then docker stop $cid && docker rm $cid && sleep 1s; fi
87-
done
83+
docker compose down
8884
echo y | docker system prune
8985
9086
- name: Publish pipeline artifact

AudioQnA/docker/gaudi/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export LLM_SERVICE_PORT=3007
8181

8282
```bash
8383
cd GenAIExamples/AudioQnA/docker/gaudi/
84-
docker compose -f docker_compose.yaml up -d
84+
docker compose up -d
8585
```
8686

8787
## 🚀 Test MicroServices
File renamed without changes.

AudioQnA/docker/xeon/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export LLM_SERVICE_PORT=3007
8181

8282
```bash
8383
cd GenAIExamples/AudioQnA/docker/xeon/
84-
docker compose -f docker_compose.yaml up -d
84+
docker compose up -d
8585
```
8686

8787
## 🚀 Test MicroServices
File renamed without changes.

AudioQnA/tests/test_audioqna_on_gaudi.sh

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ function start_services() {
5858
if [[ "$IMAGE_REPO" != "" ]]; then
5959
# Replace the container name with a test-specific name
6060
echo "using image repository $IMAGE_REPO and image tag $IMAGE_TAG"
61-
sed -i "s#image: opea/audioqna:latest#image: opea/audioqna:${IMAGE_TAG}#g" docker_compose.yaml
62-
sed -i "s#image: opea/audioqna-ui:latest#image: opea/audioqna-ui:${IMAGE_TAG}#g" docker_compose.yaml
63-
sed -i "s#image: opea/*#image: ${IMAGE_REPO}opea/#g" docker_compose.yaml
64-
echo "cat docker_compose.yaml"
65-
cat docker_compose.yaml
61+
sed -i "s#image: opea/audioqna:latest#image: opea/audioqna:${IMAGE_TAG}#g" compose.yaml
62+
sed -i "s#image: opea/audioqna-ui:latest#image: opea/audioqna-ui:${IMAGE_TAG}#g" compose.yaml
63+
sed -i "s#image: opea/*#image: ${IMAGE_REPO}opea/#g" compose.yaml
64+
echo "cat compose.yaml"
65+
cat compose.yaml
6666
fi
6767

6868
# Start Docker Containers
69-
docker compose -f docker_compose.yaml up -d
69+
docker compose up -d
7070
n=0
7171
until [[ "$n" -ge 500 ]]; do
7272
docker logs tgi-gaudi-server > $LOG_PATH/tgi_service_start.log
@@ -125,11 +125,7 @@ function validate_megaservice() {
125125

126126
function stop_docker() {
127127
cd $WORKPATH/docker/gaudi
128-
container_list=$(cat docker_compose.yaml | grep container_name | cut -d':' -f2)
129-
for container_name in $container_list; do
130-
cid=$(docker ps -aq --filter "name=$container_name")
131-
if [[ ! -z "$cid" ]]; then docker stop $cid && docker rm $cid && sleep 1s; fi
132-
done
128+
docker compose down
133129
}
134130

135131
function main() {

AudioQnA/tests/test_audioqna_on_xeon.sh

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ function start_services() {
5454
if [[ "$IMAGE_REPO" != "" ]]; then
5555
# Replace the container name with a test-specific name
5656
echo "using image repository $IMAGE_REPO and image tag $IMAGE_TAG"
57-
sed -i "s#image: opea/audioqna:latest#image: opea/audioqna:${IMAGE_TAG}#g" docker_compose.yaml
58-
sed -i "s#image: opea/audioqna-ui:latest#image: opea/audioqna-ui:${IMAGE_TAG}#g" docker_compose.yaml
59-
sed -i "s#image: opea/*#image: ${IMAGE_REPO}opea/#g" docker_compose.yaml
60-
echo "cat docker_compose.yaml"
61-
cat docker_compose.yaml
57+
sed -i "s#image: opea/audioqna:latest#image: opea/audioqna:${IMAGE_TAG}#g" compose.yaml
58+
sed -i "s#image: opea/audioqna-ui:latest#image: opea/audioqna-ui:${IMAGE_TAG}#g" compose.yaml
59+
sed -i "s#image: opea/*#image: ${IMAGE_REPO}opea/#g" compose.yaml
60+
echo "cat compose.yaml"
61+
cat compose.yaml
6262
fi
6363

6464
# Start Docker Containers
65-
docker compose -f docker_compose.yaml up -d
65+
docker compose up -d
6666
n=0
6767
until [[ "$n" -ge 200 ]]; do
6868
docker logs tgi-service > $LOG_PATH/tgi_service_start.log
@@ -113,11 +113,7 @@ function validate_megaservice() {
113113

114114
function stop_docker() {
115115
cd $WORKPATH/docker/xeon
116-
container_list=$(cat docker_compose.yaml | grep container_name | cut -d':' -f2)
117-
for container_name in $container_list; do
118-
cid=$(docker ps -aq --filter "name=$container_name")
119-
if [[ ! -z "$cid" ]]; then docker stop $cid && docker rm $cid && sleep 1s; fi
120-
done
116+
docker compose down
121117
}
122118

123119
function main() {

ChatQnA/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ docker pull opea/chatqna:latest
2828

2929
Two type of UI are supported now, choose one you like and pull the referred docker image.
3030

31-
If you choose conversational UI, follow the [instruction](https://github.com/opea-project/GenAIExamples/tree/main/ChatQnA/docker/gaudi#-launch-the-conversational-ui-optional) and modify the [docker_compose.yaml](./docker/xeon/docker_compose.yaml).
31+
If you choose conversational UI, follow the [instruction](https://github.com/opea-project/GenAIExamples/tree/main/ChatQnA/docker/gaudi#-launch-the-conversational-ui-optional) and modify the [compose.yaml](./docker/xeon/compose.yaml).
3232

3333
```bash
3434
docker pull opea/chatqna-ui:latest
@@ -74,11 +74,11 @@ source ./docker/gpu/set_env.sh
7474

7575
## Deploy ChatQnA on Gaudi
7676

77-
Please find corresponding [docker_compose.yaml](./docker/gaudi/docker_compose.yaml).
77+
Please find corresponding [compose.yaml](./docker/gaudi/compose.yaml).
7878

7979
```bash
8080
cd GenAIExamples/ChatQnA/docker/gaudi/
81-
docker compose -f docker_compose.yaml up -d
81+
docker compose up -d
8282
```
8383

8484
> Notice: Currently only the <b>Habana Driver 1.16.x</b> is supported for Gaudi.
@@ -87,11 +87,11 @@ Please refer to the [Gaudi Guide](./docker/gaudi/README.md) to build docker imag
8787

8888
## Deploy ChatQnA on Xeon
8989

90-
Please find corresponding [docker_compose.yaml](./docker/xeon/docker_compose.yaml).
90+
Please find corresponding [compose.yaml](./docker/xeon/compose.yaml).
9191

9292
```bash
9393
cd GenAIExamples/ChatQnA/docker/xeon/
94-
docker compose -f docker_compose.yaml up -d
94+
docker compose up -d
9595
```
9696

9797
Refer to the [Xeon Guide](./docker/xeon/README.md) for more instructions on building docker images from source.
@@ -100,7 +100,7 @@ Refer to the [Xeon Guide](./docker/xeon/README.md) for more instructions on buil
100100

101101
```bash
102102
cd GenAIExamples/ChatQnA/docker/gpu/
103-
docker compose -f docker_compose.yaml up -d
103+
docker compose up -d
104104
```
105105

106106
Refer to the [NVIDIA GPU Guide](./docker/gpu/README.md) for more instructions on building docker images from source.
@@ -143,6 +143,6 @@ If you choose conversational UI, use this URL: `http://{host_ip}:5174`
143143
http_proxy="" curl ${host_ip}:6006/embed -X POST -d '{"inputs":"What is Deep Learning?"}' -H 'Content-Type: application/json'
144144
```
145145

146-
2. (Docker only) If all microservices work well, please check the port ${host_ip}:8888, the port may be allocated by other users, you can modify the `docker_compose.yaml`.
146+
2. (Docker only) If all microservices work well, please check the port ${host_ip}:8888, the port may be allocated by other users, you can modify the `compose.yaml`.
147147

148-
3. (Docker only) If you get errors like "The container name is in use", please change container name in `docker_compose.yaml`.
148+
3. (Docker only) If you get errors like "The container name is in use", please change container name in `compose.yaml`.

ChatQnA/docker/aipc/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Then run the command `docker images`, you will have the following 7 Docker Image
7979

8080
### Setup Environment Variables
8181

82-
Since the `docker_compose.yaml` will consume some environment variables, you need to setup them in advance as below.
82+
Since the `compose.yaml` will consume some environment variables, you need to setup them in advance as below.
8383

8484
**Export the value of the public IP address of your AIPC to the `host_ip` environment variable**
8585

@@ -160,7 +160,7 @@ Note: Please replace with `host_ip` with you external IP address, do not use loc
160160
161161
```bash
162162
cd GenAIExamples/ChatQnA/docker/aipc/
163-
docker compose -f docker_compose.yaml up -d
163+
docker compose up -d
164164

165165
# let ollama service runs
166166
# e.g. ollama run llama3
File renamed without changes.

0 commit comments

Comments
 (0)