Skip to content

Commit 03b12e3

Browse files
Merge branch 'main' into feature/CodeGen_CodeTrans_k8s
2 parents f34ac3b + ccc145e commit 03b12e3

File tree

22 files changed

+945
-919
lines changed

22 files changed

+945
-919
lines changed

AudioQnA/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
ARG IMAGE_REPO=opea
55
ARG BASE_TAG=latest
6-
FROM opea/comps-base:$BASE_TAG
76
FROM $IMAGE_REPO/comps-base:$BASE_TAG
87

98
COPY ./audioqna.py $HOME/audioqna.py

AudioQnA/Dockerfile.multilang

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
ARG IMAGE_REPO=opea
55
ARG BASE_TAG=latest
6-
FROM opea/comps-base:$BASE_TAG
76
FROM $IMAGE_REPO/comps-base:$BASE_TAG
87

98
COPY ./audioqna_multilang.py $HOME/audioqna_multilang.py

ChatQnA/docker_compose/amd/gpu/rocm/README.md

Lines changed: 206 additions & 494 deletions
Large diffs are not rendered by default.

ChatQnA/docker_compose/amd/gpu/rocm/compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ services:
165165

166166
chatqna-nginx-server:
167167
image: ${REGISTRY:-opea}/nginx:${TAG:-latest}
168-
container_name: chaqna-nginx-server
168+
container_name: chatqna-nginx-server
169169
depends_on:
170170
- chatqna-backend-server
171171
- chatqna-ui-server

ChatQnA/docker_compose/amd/gpu/rocm/compose_faqgen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ services:
187187

188188
chatqna-nginx-server:
189189
image: ${REGISTRY:-opea}/nginx:${TAG:-latest}
190-
container_name: chaqna-nginx-server
190+
container_name: chatqna-nginx-server
191191
depends_on:
192192
- chatqna-backend-server
193193
- chatqna-ui-server

ChatQnA/docker_compose/amd/gpu/rocm/compose_faqgen_vllm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ services:
192192

193193
chatqna-nginx-server:
194194
image: ${REGISTRY:-opea}/nginx:${TAG:-latest}
195-
container_name: chaqna-nginx-server
195+
container_name: chatqna-nginx-server
196196
depends_on:
197197
- chatqna-backend-server
198198
- chatqna-ui-server

ChatQnA/tests/test_compose_milvus_on_xeon.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ function build_docker_images() {
4141
}
4242
function start_services() {
4343
cd $WORKPATH/docker_compose/intel/cpu/xeon/
44-
export no_proxy=${no_proxy},${ip_address}
4544
export EMBEDDING_MODEL_ID="BAAI/bge-base-en-v1.5"
4645
export RERANK_MODEL_ID="BAAI/bge-reranker-base"
4746
export LLM_MODEL_ID="meta-llama/Meta-Llama-3-8B-Instruct"

CodeGen/docker_compose/amd/gpu/rocm/README.md

Lines changed: 348 additions & 284 deletions
Large diffs are not rendered by default.

CodeTrans/docker_compose/amd/gpu/rocm/README.md

Lines changed: 130 additions & 57 deletions
Large diffs are not rendered by default.

CodeTrans/tests/test_compose_on_gaudi.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ function build_docker_images() {
4343

4444
function start_services() {
4545
cd $WORKPATH/docker_compose/intel/hpu/gaudi
46-
47-
export http_proxy=${http_proxy}
48-
export https_proxy=${http_proxy}
4946
export LLM_MODEL_ID="mistralai/Mistral-7B-Instruct-v0.3"
5047
export LLM_ENDPOINT="http://${ip_address}:8008"
5148
export LLM_COMPONENT_NAME="OpeaTextGenService"

CodeTrans/tests/test_compose_on_rocm.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ function build_docker_images() {
4242

4343
function start_services() {
4444
cd $WORKPATH/docker_compose/amd/gpu/rocm/
45-
export http_proxy=${http_proxy}
46-
export https_proxy=${http_proxy}
4745
export CODETRANS_TGI_SERVICE_PORT=8008
4846
export CODETRANS_LLM_SERVICE_PORT=9000
4947
export CODETRANS_LLM_MODEL_ID="Qwen/Qwen2.5-Coder-7B-Instruct"

CodeTrans/tests/test_compose_on_xeon.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ function build_docker_images() {
4545

4646
function start_services() {
4747
cd $WORKPATH/docker_compose/intel/cpu/xeon/
48-
export http_proxy=${http_proxy}
49-
export https_proxy=${http_proxy}
5048
export LLM_MODEL_ID="mistralai/Mistral-7B-Instruct-v0.3"
5149
export LLM_ENDPOINT="http://${ip_address}:8008"
5250
export LLM_COMPONENT_NAME="OpeaTextGenService"

CodeTrans/tests/test_compose_tgi_on_gaudi.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ function build_docker_images() {
4141

4242
function start_services() {
4343
cd $WORKPATH/docker_compose/intel/hpu/gaudi/
44-
export http_proxy=${http_proxy}
45-
export https_proxy=${http_proxy}
4644
export LLM_MODEL_ID="mistralai/Mistral-7B-Instruct-v0.3"
4745
export LLM_ENDPOINT="http://${ip_address}:8008"
4846
export LLM_COMPONENT_NAME="OpeaTextGenService"

CodeTrans/tests/test_compose_tgi_on_xeon.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ function build_docker_images() {
4141

4242
function start_services() {
4343
cd $WORKPATH/docker_compose/intel/cpu/xeon/
44-
export http_proxy=${http_proxy}
45-
export https_proxy=${http_proxy}
4644
export LLM_MODEL_ID="mistralai/Mistral-7B-Instruct-v0.3"
4745
export LLM_ENDPOINT="http://${ip_address}:8008"
4846
export LLM_COMPONENT_NAME="OpeaTextGenService"

CodeTrans/tests/test_compose_vllm_on_rocm.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ function build_docker_images() {
4040

4141
function start_services() {
4242
cd $WORKPATH/docker_compose/amd/gpu/rocm/
43-
export http_proxy=${http_proxy}
44-
export https_proxy=${http_proxy}
4543
export HOST_IP=${ip_address}
4644
export CODETRANS_VLLM_SERVICE_PORT=8008
4745
export CODETRANS_LLM_SERVICE_PORT=9000

EdgeCraftRAG/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Copyright (C) 2024 Intel Corporation
22
# SPDX-License-Identifier: Apache-2.0
33

4+
ARG IMAGE_REPO=opea
45
ARG BASE_TAG=latest
5-
FROM opea/comps-base:$BASE_TAG
6+
FROM $IMAGE_REPO/comps-base:$BASE_TAG
67

78
COPY ./chatqna.py $HOME/chatqna.py
89

EdgeCraftRAG/docker_compose/intel/gpu/arc/compose_vllm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ services:
6363
- ecrag
6464
vllm-openvino-server:
6565
container_name: vllm-openvino-server
66-
image: opea/vllm-arc:latest
66+
image: ${REGISTRY:-opea}/vllm-arc:${TAG:-latest}
6767
ports:
6868
- ${VLLM_SERVICE_PORT:-8008}:80
6969
environment:

EdgeCraftRAG/docker_image_build/build.yaml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,33 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
services:
5-
edgecraftrag-server:
5+
edgecraftrag:
66
build:
77
context: ../
88
args:
9+
IMAGE_REPO: ${REGISTRY}
10+
BASE_TAG: ${TAG}
911
http_proxy: ${http_proxy}
1012
https_proxy: ${https_proxy}
13+
dockerfile: ./Dockerfile
14+
image: ${REGISTRY:-opea}/edgecraftrag:${TAG:-latest}
15+
edgecraftrag-server:
16+
build:
1117
dockerfile: ./Dockerfile.server
18+
extends: edgecraftrag
1219
image: ${REGISTRY:-opea}/edgecraftrag-server:${TAG:-latest}
1320
edgecraftrag-ui:
1421
build:
15-
context: ../
16-
args:
17-
http_proxy: ${http_proxy}
18-
https_proxy: ${https_proxy}
1922
dockerfile: ./ui/docker/Dockerfile.ui
23+
extends: edgecraftrag
2024
image: ${REGISTRY:-opea}/edgecraftrag-ui:${TAG:-latest}
2125
edgecraftrag-ui-gradio:
2226
build:
23-
context: ../
24-
args:
25-
http_proxy: ${http_proxy}
26-
https_proxy: ${https_proxy}
2727
dockerfile: ./ui/docker/Dockerfile.gradio
28+
extends: edgecraftrag
2829
image: ${REGISTRY:-opea}/edgecraftrag-ui-gradio:${TAG:-latest}
29-
edgecraftrag:
30+
vllm-arc:
3031
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}

EdgeCraftRAG/tests/test_compose_on_arc.sh

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,16 @@ HF_ENDPOINT=https://hf-mirror.com
3030

3131

3232
function build_docker_images() {
33+
opea_branch=${opea_branch:-"main"}
3334
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+
3441
echo "Build all the images with --no-cache, check docker_image_build.log for details..."
42+
service_list="edgecraftrag edgecraftrag-server edgecraftrag-ui"
3543
docker compose -f build.yaml build --no-cache > ${LOG_PATH}/docker_image_build.log
3644

3745
docker images && sleep 1s
@@ -102,16 +110,30 @@ function stop_docker() {
102110
function main() {
103111
mkdir -p $LOG_PATH
104112

113+
echo "::group::stop_docker"
105114
stop_docker
115+
echo "::endgroup::"
116+
117+
echo "::group::build_docker_images"
106118
if [[ "$IMAGE_REPO" == "opea" ]]; then build_docker_images; fi
119+
echo "::endgroup::"
120+
121+
echo "::group::start_services"
107122
start_services
108-
echo "EC_RAG service started" && sleep 1s
123+
echo "::endgroup::"
109124

125+
echo "::group::validate_rag"
110126
validate_rag
127+
echo "::endgroup::"
128+
129+
echo "::group::validate_megaservice"
111130
validate_megaservice
131+
echo "::endgroup::"
112132

133+
echo "::group::stop_docker"
113134
stop_docker
114135
echo y | docker system prune
136+
echo "::endgroup::"
115137

116138
}
117139

EdgeCraftRAG/tests/test_compose_vllm_on_arc.sh

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,14 @@ vLLM_ENDPOINT="http://${HOST_IP}:${VLLM_SERVICE_PORT}"
3333

3434

3535
function build_docker_images() {
36+
opea_branch=${opea_branch:-"main"}
3637
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+
3744
echo "Build all the images with --no-cache, check docker_image_build.log for details..."
3845
docker compose -f build.yaml build --no-cache > ${LOG_PATH}/docker_image_build.log
3946

@@ -152,19 +159,30 @@ function stop_docker() {
152159
function main() {
153160
mkdir -p "$LOG_PATH"
154161

162+
echo "::group::stop_docker"
155163
stop_docker
164+
echo "::endgroup::"
165+
166+
echo "::group::build_docker_images"
156167
if [[ "$IMAGE_REPO" == "opea" ]]; then build_docker_images; fi
157-
start_time=$(date +%s)
168+
echo "::endgroup::"
169+
170+
echo "::group::start_services"
158171
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::"
162173

174+
echo "::group::validate_rag"
163175
validate_rag
176+
echo "::endgroup::"
177+
178+
echo "::group::validate_megaservice"
164179
validate_megaservice
180+
echo "::endgroup::"
165181

182+
echo "::group::stop_docker"
166183
stop_docker
167184
echo y | docker system prune
185+
echo "::endgroup::"
168186

169187
}
170188

0 commit comments

Comments
 (0)