@@ -27,19 +27,13 @@ export no_proxy=${no_proxy},${ip_address}
2727
2828function build_docker_images() {
2929 opea_branch=${opea_branch:- " main" }
30- # If the opea_branch isn't main, replace the git clone branch in Dockerfile.
31- if [[ " ${opea_branch} " != " main" ]]; then
32- cd $WORKPATH
33- OLD_STRING=" RUN git clone --depth 1 https://github.com/opea-project/GenAIComps.git"
34- NEW_STRING=" RUN git clone --depth 1 --branch ${opea_branch} https://github.com/opea-project/GenAIComps.git"
35- find . -type f -name " Dockerfile*" | while read -r file; do
36- echo " Processing file: $file "
37- sed -i " s|$OLD_STRING |$NEW_STRING |g" " $file "
38- done
39- fi
4030
4131 cd $WORKPATH /docker_image_build
4232 git clone --depth 1 --branch ${opea_branch} https://github.com/opea-project/GenAIComps.git
33+ pushd GenAIComps
34+ echo " GenAIComps test commit is $( git rev-parse HEAD) "
35+ docker build --no-cache -t ${REGISTRY} /comps-base:${TAG} --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f Dockerfile .
36+ popd && sleep 1s
4337
4438 # Download Gaudi vllm of latest tag
4539 git clone https://github.com/HabanaAI/vllm-fork.git && cd vllm-fork
@@ -250,24 +244,36 @@ function main() {
250244 stop_docker " ${docker_compose_profiles[${i}]} "
251245 done
252246
253- # build docker images
247+ echo " ::group::build_docker_images "
254248 if [[ " $IMAGE_REPO " == " opea" ]]; then build_docker_images; fi
249+ echo " ::endgroup::"
255250
256251 # loop all profiles
257252 for (( i = 0 ; i < len_profiles; i++ )) ; do
258253 echo " Process [${i} ]: ${docker_compose_profiles[$i]} , ${docker_llm_container_names[${i}]} "
254+
255+ echo " ::group::start_services"
259256 start_services " ${docker_compose_profiles[${i}]} " " ${docker_llm_container_names[${i}]} "
257+ echo " ::endgroup::"
260258 docker ps -a
261259
260+ echo " ::group::validate_microservices"
262261 validate_microservices " ${docker_llm_container_names[${i}]} "
262+ echo " ::endgroup::"
263+
264+ echo " ::group::validate_megaservice"
263265 validate_megaservice
266+ echo " ::endgroup::"
267+
268+ echo " ::group::validate_gradio"
264269 validate_gradio
270+ echo " ::endgroup::"
265271
266272 stop_docker " ${docker_compose_profiles[${i}]} "
267273 sleep 5s
268274 done
269275
270- echo y | docker system prune
276+ docker system prune -f
271277}
272278
273279main
0 commit comments