Skip to content

Commit 90d3be8

Browse files
committed
Fix: ci build
Signed-off-by: dittops <dittops@gmail.com>
1 parent e916165 commit 90d3be8

2 files changed

Lines changed: 42 additions & 13 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Copyright (C) 2024 Intel Corporation
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
services:
5+
polylingua:
6+
build:
7+
args:
8+
IMAGE_REPO: ${REGISTRY}
9+
BASE_TAG: ${TAG}
10+
http_proxy: ${http_proxy}
11+
https_proxy: ${https_proxy}
12+
no_proxy: ${no_proxy}
13+
context: ../
14+
dockerfile: ./Dockerfile
15+
image: ${REGISTRY:-opea}/polylingua:${TAG:-latest}
16+
17+
polylingua-ui:
18+
build:
19+
context: ../ui
20+
dockerfile: ./Dockerfile
21+
extends: polylingua
22+
image: ${REGISTRY:-opea}/polylingua-ui:${TAG:-latest}
23+
24+
llm-textgen:
25+
build:
26+
context: GenAIComps
27+
dockerfile: comps/llms/src/text-generation/Dockerfile
28+
extends: polylingua
29+
image: ${REGISTRY:-opea}/llm-textgen:${TAG:-latest}

PolyLingua/tests/test_compose_on_xeon.sh

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,23 @@ echo "Script directory: $SCRIPT_DIR"
2222
echo "Working directory: $WORKPATH"
2323

2424
function build_docker_images() {
25-
echo "Building PolyLingua Docker images..."
26-
cd $WORKPATH
25+
opea_branch=${opea_branch:-"main"}
26+
cd $WORKPATH/docker_image_build
2727

28-
# Build polylingua backend
29-
echo "Building polylingua backend service..."
30-
docker build --no-cache -t ${REGISTRY}/polylingua:${TAG} -f Dockerfile . > ${LOG_PATH}/docker_image_build.log 2>&1
28+
# Clone GenAIComps
29+
git clone --depth 1 --branch ${opea_branch} https://github.com/opea-project/GenAIComps.git
30+
pushd GenAIComps
31+
echo "GenAIComps test commit is $(git rev-parse HEAD)"
32+
docker build --no-cache -t ${REGISTRY}/comps-base:${TAG} --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f Dockerfile .
33+
popd && sleep 1s
3134

32-
# Build polylingua UI
33-
echo "Building polylingua UI service..."
34-
export BACKEND_SERVICE_ENDPOINT="http://${ip_address}:8888"
35-
docker build --no-cache \
36-
--build-arg BACKEND_SERVICE_ENDPOINT=${BACKEND_SERVICE_ENDPOINT} \
37-
-t ${REGISTRY}/polylingua-ui:${TAG} \
38-
-f ui/Dockerfile ./ui >> ${LOG_PATH}/docker_image_build.log 2>&1
35+
# Build all images using build.yaml
36+
echo "Building PolyLingua images with --no-cache, check docker_image_build.log for details..."
37+
service_list="polylingua polylingua-ui llm-textgen"
38+
docker compose -f build.yaml build ${service_list} --no-cache > ${LOG_PATH}/docker_image_build.log 2>&1
3939

4040
echo "Image build completed"
41-
docker images | grep polylingua
41+
docker images | grep -E "polylingua|llm-textgen"
4242
sleep 1s
4343
}
4444

0 commit comments

Comments
 (0)