mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
44 lines
1.1 KiB
Bash
44 lines
1.1 KiB
Bash
#/bin/sh
|
|
#service_source_root=(
|
|
# #api service file
|
|
# ../cmd/open_im_api/
|
|
# ../cmd/open_im_cms_api/
|
|
# #rpc service file
|
|
# ../cmd/rpc/open_im_user/
|
|
# ../cmd/rpc/open_im_friend/
|
|
# ../cmd/rpc/open_im_group/
|
|
# ../cmd/rpc/open_im_auth/
|
|
# ../cmd/rpc/open_im_admin_cms/
|
|
# ../cmd/rpc/open_im_message_cms/
|
|
# ../cmd/rpc/open_im_statistics/
|
|
# ../cmd/rpc/open_im_office/
|
|
# ../cmd/rpc/open_im_organization/
|
|
# ../cmd/rpc/open_im_conversation/
|
|
# ../cmd/rpc/open_im_cache/
|
|
# ../cmd/open_im_msg_gateway/
|
|
# ../cmd/open_im_msg_transfer/
|
|
# ../cmd/rpc/open_im_msg/
|
|
# ../cmd/open_im_push/
|
|
# ../cmd/Open-IM-SDK-Core/
|
|
# ../cmd/open_im_demo/
|
|
#)
|
|
#
|
|
version=v2.0.10
|
|
cd ../../script/; ./build_all_service.sh
|
|
cd ../deploy_k8s/dockerfiles
|
|
dockerfile_list=$(ls ../dockerfiles/)
|
|
mv ../../bin/* ./
|
|
echo "start to build images"
|
|
|
|
for dockerfile in $dockerfile_list
|
|
do
|
|
echo "start to build images" $dockerfile
|
|
image=`echo $dockerfile |awk -F '.' '{print $1}'`
|
|
image="openim"+image+$version
|
|
docker build -t $image . -f ../dockerfiles/${dockerfile}
|
|
echo "build ${dockerfile} success"
|
|
docker push $image
|
|
echo "push ${image} success "
|
|
done
|
|
|