File tree Expand file tree Collapse file tree 22 files changed +945
-919
lines changed
docker_compose/amd/gpu/rocm
CodeGen/docker_compose/amd/gpu/rocm
docker_compose/amd/gpu/rocm
docker_compose/intel/gpu/arc
SearchQnA/docker_compose/amd/gpu/rocm Expand file tree Collapse file tree 22 files changed +945
-919
lines changed Original file line number Diff line number Diff line change 3
3
4
4
ARG IMAGE_REPO=opea
5
5
ARG BASE_TAG=latest
6
- FROM opea/comps-base:$BASE_TAG
7
6
FROM $IMAGE_REPO/comps-base:$BASE_TAG
8
7
9
8
COPY ./audioqna.py $HOME/audioqna.py
Original file line number Diff line number Diff line change 3
3
4
4
ARG IMAGE_REPO=opea
5
5
ARG BASE_TAG=latest
6
- FROM opea/comps-base:$BASE_TAG
7
6
FROM $IMAGE_REPO/comps-base:$BASE_TAG
8
7
9
8
COPY ./audioqna_multilang.py $HOME/audioqna_multilang.py
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ services:
165
165
166
166
chatqna-nginx-server :
167
167
image : ${REGISTRY:-opea}/nginx:${TAG:-latest}
168
- container_name : chaqna -nginx-server
168
+ container_name : chatqna -nginx-server
169
169
depends_on :
170
170
- chatqna-backend-server
171
171
- chatqna-ui-server
Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ services:
187
187
188
188
chatqna-nginx-server :
189
189
image : ${REGISTRY:-opea}/nginx:${TAG:-latest}
190
- container_name : chaqna -nginx-server
190
+ container_name : chatqna -nginx-server
191
191
depends_on :
192
192
- chatqna-backend-server
193
193
- chatqna-ui-server
Original file line number Diff line number Diff line change @@ -192,7 +192,7 @@ services:
192
192
193
193
chatqna-nginx-server :
194
194
image : ${REGISTRY:-opea}/nginx:${TAG:-latest}
195
- container_name : chaqna -nginx-server
195
+ container_name : chatqna -nginx-server
196
196
depends_on :
197
197
- chatqna-backend-server
198
198
- chatqna-ui-server
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ function build_docker_images() {
41
41
}
42
42
function start_services() {
43
43
cd $WORKPATH /docker_compose/intel/cpu/xeon/
44
- export no_proxy=${no_proxy} ,${ip_address}
45
44
export EMBEDDING_MODEL_ID=" BAAI/bge-base-en-v1.5"
46
45
export RERANK_MODEL_ID=" BAAI/bge-reranker-base"
47
46
export LLM_MODEL_ID=" meta-llama/Meta-Llama-3-8B-Instruct"
Load Diff Large diffs are not rendered by default.
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -43,9 +43,6 @@ function build_docker_images() {
43
43
44
44
function start_services() {
45
45
cd $WORKPATH /docker_compose/intel/hpu/gaudi
46
-
47
- export http_proxy=${http_proxy}
48
- export https_proxy=${http_proxy}
49
46
export LLM_MODEL_ID=" mistralai/Mistral-7B-Instruct-v0.3"
50
47
export LLM_ENDPOINT=" http://${ip_address} :8008"
51
48
export LLM_COMPONENT_NAME=" OpeaTextGenService"
Original file line number Diff line number Diff line change @@ -42,8 +42,6 @@ function build_docker_images() {
42
42
43
43
function start_services() {
44
44
cd $WORKPATH /docker_compose/amd/gpu/rocm/
45
- export http_proxy=${http_proxy}
46
- export https_proxy=${http_proxy}
47
45
export CODETRANS_TGI_SERVICE_PORT=8008
48
46
export CODETRANS_LLM_SERVICE_PORT=9000
49
47
export CODETRANS_LLM_MODEL_ID=" Qwen/Qwen2.5-Coder-7B-Instruct"
Original file line number Diff line number Diff line change @@ -45,8 +45,6 @@ function build_docker_images() {
45
45
46
46
function start_services() {
47
47
cd $WORKPATH /docker_compose/intel/cpu/xeon/
48
- export http_proxy=${http_proxy}
49
- export https_proxy=${http_proxy}
50
48
export LLM_MODEL_ID=" mistralai/Mistral-7B-Instruct-v0.3"
51
49
export LLM_ENDPOINT=" http://${ip_address} :8008"
52
50
export LLM_COMPONENT_NAME=" OpeaTextGenService"
Original file line number Diff line number Diff line change @@ -41,8 +41,6 @@ function build_docker_images() {
41
41
42
42
function start_services() {
43
43
cd $WORKPATH /docker_compose/intel/hpu/gaudi/
44
- export http_proxy=${http_proxy}
45
- export https_proxy=${http_proxy}
46
44
export LLM_MODEL_ID=" mistralai/Mistral-7B-Instruct-v0.3"
47
45
export LLM_ENDPOINT=" http://${ip_address} :8008"
48
46
export LLM_COMPONENT_NAME=" OpeaTextGenService"
Original file line number Diff line number Diff line change @@ -41,8 +41,6 @@ function build_docker_images() {
41
41
42
42
function start_services() {
43
43
cd $WORKPATH /docker_compose/intel/cpu/xeon/
44
- export http_proxy=${http_proxy}
45
- export https_proxy=${http_proxy}
46
44
export LLM_MODEL_ID=" mistralai/Mistral-7B-Instruct-v0.3"
47
45
export LLM_ENDPOINT=" http://${ip_address} :8008"
48
46
export LLM_COMPONENT_NAME=" OpeaTextGenService"
Original file line number Diff line number Diff line change @@ -40,8 +40,6 @@ function build_docker_images() {
40
40
41
41
function start_services() {
42
42
cd $WORKPATH /docker_compose/amd/gpu/rocm/
43
- export http_proxy=${http_proxy}
44
- export https_proxy=${http_proxy}
45
43
export HOST_IP=${ip_address}
46
44
export CODETRANS_VLLM_SERVICE_PORT=8008
47
45
export CODETRANS_LLM_SERVICE_PORT=9000
Original file line number Diff line number Diff line change 1
1
# Copyright (C) 2024 Intel Corporation
2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
+ ARG IMAGE_REPO=opea
4
5
ARG BASE_TAG=latest
5
- FROM opea /comps-base:$BASE_TAG
6
+ FROM $IMAGE_REPO /comps-base:$BASE_TAG
6
7
7
8
COPY ./chatqna.py $HOME/chatqna.py
8
9
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ services:
63
63
- ecrag
64
64
vllm-openvino-server :
65
65
container_name : vllm-openvino-server
66
- image : opea/vllm-arc:latest
66
+ image : ${REGISTRY:- opea} /vllm-arc:${TAG:- latest}
67
67
ports :
68
68
- ${VLLM_SERVICE_PORT:-8008}:80
69
69
environment :
Original file line number Diff line number Diff line change 2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
4
services :
5
- edgecraftrag-server :
5
+ edgecraftrag :
6
6
build :
7
7
context : ../
8
8
args :
9
+ IMAGE_REPO : ${REGISTRY}
10
+ BASE_TAG : ${TAG}
9
11
http_proxy : ${http_proxy}
10
12
https_proxy : ${https_proxy}
13
+ dockerfile : ./Dockerfile
14
+ image : ${REGISTRY:-opea}/edgecraftrag:${TAG:-latest}
15
+ edgecraftrag-server :
16
+ build :
11
17
dockerfile : ./Dockerfile.server
18
+ extends : edgecraftrag
12
19
image : ${REGISTRY:-opea}/edgecraftrag-server:${TAG:-latest}
13
20
edgecraftrag-ui :
14
21
build :
15
- context : ../
16
- args :
17
- http_proxy : ${http_proxy}
18
- https_proxy : ${https_proxy}
19
22
dockerfile : ./ui/docker/Dockerfile.ui
23
+ extends : edgecraftrag
20
24
image : ${REGISTRY:-opea}/edgecraftrag-ui:${TAG:-latest}
21
25
edgecraftrag-ui-gradio :
22
26
build :
23
- context : ../
24
- args :
25
- http_proxy : ${http_proxy}
26
- https_proxy : ${https_proxy}
27
27
dockerfile : ./ui/docker/Dockerfile.gradio
28
+ extends : edgecraftrag
28
29
image : ${REGISTRY:-opea}/edgecraftrag-ui-gradio:${TAG:-latest}
29
- edgecraftrag :
30
+ vllm-arc :
30
31
build :
31
- context : ../
32
- args :
33
- http_proxy : ${http_proxy}
34
- https_proxy : ${https_proxy}
35
- dockerfile : ./Dockerfile
36
- image : ${REGISTRY:-opea}/edgecraftrag:${TAG:-latest}
32
+ context : GenAIComps
33
+ dockerfile : comps/third_parties/vllm/src/Dockerfile.intel_gpu
34
+ image : ${REGISTRY:-opea}/vllm-arc:${TAG:-latest}
Original file line number Diff line number Diff line change @@ -30,8 +30,16 @@ HF_ENDPOINT=https://hf-mirror.com
30
30
31
31
32
32
function build_docker_images() {
33
+ opea_branch=${opea_branch:- " main" }
33
34
cd $WORKPATH /docker_image_build
35
+ git clone --depth 1 --branch ${opea_branch} https://github.com/opea-project/GenAIComps.git
36
+ pushd GenAIComps
37
+ echo " GenAIComps test commit is $( git rev-parse HEAD) "
38
+ docker build --no-cache -t ${REGISTRY} /comps-base:${TAG} --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f Dockerfile .
39
+ popd && sleep 1s
40
+
34
41
echo " Build all the images with --no-cache, check docker_image_build.log for details..."
42
+ service_list=" edgecraftrag edgecraftrag-server edgecraftrag-ui"
35
43
docker compose -f build.yaml build --no-cache > ${LOG_PATH} /docker_image_build.log
36
44
37
45
docker images && sleep 1s
@@ -102,16 +110,30 @@ function stop_docker() {
102
110
function main() {
103
111
mkdir -p $LOG_PATH
104
112
113
+ echo " ::group::stop_docker"
105
114
stop_docker
115
+ echo " ::endgroup::"
116
+
117
+ echo " ::group::build_docker_images"
106
118
if [[ " $IMAGE_REPO " == " opea" ]]; then build_docker_images; fi
119
+ echo " ::endgroup::"
120
+
121
+ echo " ::group::start_services"
107
122
start_services
108
- echo " EC_RAG service started " && sleep 1s
123
+ echo " ::endgroup:: "
109
124
125
+ echo " ::group::validate_rag"
110
126
validate_rag
127
+ echo " ::endgroup::"
128
+
129
+ echo " ::group::validate_megaservice"
111
130
validate_megaservice
131
+ echo " ::endgroup::"
112
132
133
+ echo " ::group::stop_docker"
113
134
stop_docker
114
135
echo y | docker system prune
136
+ echo " ::endgroup::"
115
137
116
138
}
117
139
Original file line number Diff line number Diff line change @@ -33,7 +33,14 @@ vLLM_ENDPOINT="http://${HOST_IP}:${VLLM_SERVICE_PORT}"
33
33
34
34
35
35
function build_docker_images() {
36
+ opea_branch=${opea_branch:- " main" }
36
37
cd $WORKPATH /docker_image_build
38
+ git clone --depth 1 --branch ${opea_branch} https://github.com/opea-project/GenAIComps.git
39
+ pushd GenAIComps
40
+ echo " GenAIComps test commit is $( git rev-parse HEAD) "
41
+ docker build --no-cache -t ${REGISTRY} /comps-base:${TAG} --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f Dockerfile .
42
+ popd && sleep 1s
43
+
37
44
echo " Build all the images with --no-cache, check docker_image_build.log for details..."
38
45
docker compose -f build.yaml build --no-cache > ${LOG_PATH} /docker_image_build.log
39
46
@@ -152,19 +159,30 @@ function stop_docker() {
152
159
function main() {
153
160
mkdir -p " $LOG_PATH "
154
161
162
+ echo " ::group::stop_docker"
155
163
stop_docker
164
+ echo " ::endgroup::"
165
+
166
+ echo " ::group::build_docker_images"
156
167
if [[ " $IMAGE_REPO " == " opea" ]]; then build_docker_images; fi
157
- start_time=$( date +%s)
168
+ echo " ::endgroup::"
169
+
170
+ echo " ::group::start_services"
158
171
start_services
159
- end_time=$( date +%s)
160
- duration=$(( end_time- start_time))
161
- echo " EC_RAG service start duration is $duration s" && sleep 1s
172
+ echo " ::endgroup::"
162
173
174
+ echo " ::group::validate_rag"
163
175
validate_rag
176
+ echo " ::endgroup::"
177
+
178
+ echo " ::group::validate_megaservice"
164
179
validate_megaservice
180
+ echo " ::endgroup::"
165
181
182
+ echo " ::group::stop_docker"
166
183
stop_docker
167
184
echo y | docker system prune
185
+ echo " ::endgroup::"
168
186
169
187
}
170
188
You can’t perform that action at this time.
0 commit comments