diff --git a/deploy_k8s/admin_cms/admin_cms.Dockerfile b/deploy_k8s/admin_cms/admin_cms.Dockerfile index 6527d0e2a..bf310981c 100644 --- a/deploy_k8s/admin_cms/admin_cms.Dockerfile +++ b/deploy_k8s/admin_cms/admin_cms.Dockerfile @@ -1,7 +1,7 @@ FROM ubuntu # 设置固定的项目路径 -ENV WORKDIR /bin +ENV WORKDIR /Open-IM-Server ENV CONFIG_NAME $WORKDIR/config/config.yaml # 将可执行文件复制到目标目录 @@ -11,5 +11,8 @@ ADD ./open_im_admin_cms $WORKDIR/main RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/db && \ chmod +x $WORKDIR/main +VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script","/Open-IM-Server/db/sdk"] + + WORKDIR $WORKDIR CMD ./main diff --git a/deploy_k8s/api/api.Dockerfile b/deploy_k8s/api/api.Dockerfile index bf86691d8..346045b7c 100644 --- a/deploy_k8s/api/api.Dockerfile +++ b/deploy_k8s/api/api.Dockerfile @@ -1,7 +1,7 @@ FROM ubuntu # 设置固定的项目路径 -ENV WORKDIR /bin +ENV WORKDIR /Open-IM-Server ENV CONFIG_NAME $WORKDIR/config/config.yaml # 将可执行文件复制到目标目录 @@ -11,5 +11,8 @@ ADD ./open_im_api $WORKDIR/main RUN mkdir $WORKDIR/logs $WORKDIR/config $WORKDIR/db && \ chmod +x $WORKDIR/main +VOLUME ["/Open-IM-Server/logs","/Open-IM-Server/config","/Open-IM-Server/script","/Open-IM-Server/db/sdk"] + + WORKDIR $WORKDIR CMD ./main diff --git a/deploy_k8s/build_push_all_images.sh b/deploy_k8s/build_push_all_images.sh index 8902ec8a6..c043ebb7f 100644 --- a/deploy_k8s/build_push_all_images.sh +++ b/deploy_k8s/build_push_all_images.sh @@ -2,26 +2,26 @@ 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 + 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