You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
491 B
31 lines
491 B
3 years ago
|
#/bin/sh
|
||
3 years ago
|
source ./path_info.cfg
|
||
|
|
||
|
# images version
|
||
2 years ago
|
version=v2.3.4
|
||
2 years ago
|
git pull
|
||
3 years ago
|
cd ../script/; ./build_all_service.sh
|
||
|
cd ../deploy_k8s/
|
||
|
|
||
|
for i in ${service[*]}
|
||
|
do
|
||
|
mv ../bin/open_im_${i} ./${i}/
|
||
|
done
|
||
|
|
||
|
echo "move success"
|
||
|
|
||
|
echo "start to build images"
|
||
|
|
||
|
for i in ${service[*]}
|
||
|
do
|
||
|
echo "start to build images" $i
|
||
|
cd $i
|
||
|
image="openim/${i}:$version"
|
||
|
docker build -t $image . -f ./${i}.Dockerfile
|
||
|
echo "build ${dockerfile} success"
|
||
|
docker push $image
|
||
|
echo "push ${image} success "
|
||
|
cd ..
|
||
|
done
|
||
|
|