@@ -22,23 +22,23 @@ echo "Script directory: $SCRIPT_DIR"
2222echo " Working directory: $WORKPATH "
2323
2424function 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