mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
office tag async send
This commit is contained in:
parent
1fa16bd8dd
commit
44bad0146c
@ -6,6 +6,7 @@ ENV CONFIG_NAME $WORKDIR/config/config.yaml
|
|||||||
|
|
||||||
# 将可执行文件复制到目标目录
|
# 将可执行文件复制到目标目录
|
||||||
ADD ./open_im_api $WORKDIR/main
|
ADD ./open_im_api $WORKDIR/main
|
||||||
|
COPY ./start_api.sh $$WORKDIR
|
||||||
|
|
||||||
# 创建用于挂载的几个目录,添加可执行权限
|
# 创建用于挂载的几个目录,添加可执行权限
|
||||||
RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/db && \
|
RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/db && \
|
||||||
@ -13,4 +14,4 @@ RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/db && \
|
|||||||
|
|
||||||
|
|
||||||
WORKDIR $WORKDIR
|
WORKDIR $WORKDIR
|
||||||
CMD ./main
|
CMD ./start_api.sh
|
51
deploy_k8s/build_push_all_images.sh
Normal file
51
deploy_k8s/build_push_all_images.sh
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
#/bin/sh
|
||||||
|
service=(
|
||||||
|
#api service file
|
||||||
|
api
|
||||||
|
cms_api
|
||||||
|
|
||||||
|
#rpc service file
|
||||||
|
user
|
||||||
|
friend
|
||||||
|
group
|
||||||
|
auth
|
||||||
|
admin_cms
|
||||||
|
message_cms
|
||||||
|
statistics
|
||||||
|
office
|
||||||
|
organization
|
||||||
|
conversation
|
||||||
|
cache
|
||||||
|
gateway
|
||||||
|
transfer
|
||||||
|
msg
|
||||||
|
push
|
||||||
|
sdk_server
|
||||||
|
open_im_demo
|
||||||
|
)
|
||||||
|
#
|
||||||
|
version=v2.0.10
|
||||||
|
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
|
||||||
|
|
@ -1,43 +0,0 @@
|
|||||||
#/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
|
|
||||||
|
|
@ -1,2 +0,0 @@
|
|||||||
var2=`echo "hello world"|awk -F ' ' '{print $1}'`
|
|
||||||
echo $var2
|
|
Loading…
x
Reference in New Issue
Block a user