@@ -17,19 +17,14 @@ ip_address=$(hostname -I | awk '{print $1}')
1717
1818function build_docker_images() {
1919 opea_branch=${opea_branch:- " main" }
20- # If the opea_branch isn't main, replace the git clone branch in Dockerfile.
21- if [[ " ${opea_branch} " != " main" ]]; then
22- cd $WORKPATH
23- OLD_STRING=" RUN git clone --depth 1 https://github.com/opea-project/GenAIComps.git"
24- NEW_STRING=" RUN git clone --depth 1 --branch ${opea_branch} https://github.com/opea-project/GenAIComps.git"
25- find . -type f -name " Dockerfile*" | while read -r file; do
26- echo " Processing file: $file "
27- sed -i " s|$OLD_STRING |$NEW_STRING |g" " $file "
28- done
29- fi
3020
3121 cd $WORKPATH /docker_image_build
3222 git clone --depth 1 --branch ${opea_branch} https://github.com/opea-project/GenAIComps.git
23+ pushd GenAIComps
24+ echo " GenAIComps test commit is $( git rev-parse HEAD) "
25+ docker build --no-cache -t ${REGISTRY} /comps-base:${TAG} --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy -f Dockerfile .
26+ popd && sleep 1s
27+
3328 git clone https://github.com/HabanaAI/vllm-fork.git && cd vllm-fork
3429 VLLM_FORK_VER=v0.6.6.post1+Gaudi-1.20.0
3530 git checkout ${VLLM_FORK_VER} & > /dev/null && cd ../
@@ -160,17 +155,35 @@ function stop_docker() {
160155
161156function main() {
162157
158+ echo " ::group::stop_docker"
163159 stop_docker
160+ echo " ::endgroup::"
164161
162+ echo " ::group::build_docker_images"
165163 if [[ " $IMAGE_REPO " == " opea" ]]; then build_docker_images; fi
164+ echo " ::endgroup::"
165+
166+ echo " ::group::start_services"
166167 start_services
168+ echo " ::endgroup::"
167169
170+ echo " ::group::validate_microservices"
168171 validate_microservices
172+ echo " ::endgroup::"
173+
174+ echo " ::group::validate_megaservice"
169175 validate_megaservice
176+ echo " ::endgroup::"
177+
178+ echo " ::group::validate_frontend"
170179 validate_frontend
180+ echo " ::endgroup::"
171181
182+ echo " ::group::stop_docker"
172183 stop_docker
173- echo y | docker system prune
184+ echo " ::endgroup::"
185+
186+ docker system prune -f
174187
175188}
176189
0 commit comments