From 3f3135b95f797e8376f40255a39f5d4d00e032ff Mon Sep 17 00:00:00 2001 From: "Xinwei Xiong(cubxxw-openim)" <3293172751nss@gmail.com> Date: Sat, 29 Jul 2023 13:16:37 +0800 Subject: [PATCH] fix: chat scripts config Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com> --- Dockerfile | 2 +- scripts/docker_start_all.sh | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3decabdc6..48018daee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,7 +42,7 @@ COPY --from=builder /workspace/config/config.yaml $WORKDIR/config/config.yaml RUN mkdir $WORKDIR/logs && \ chmod +x $WORKDIR/bin/open_im_admin $WORKDIR/bin/open_im_chat $WORKDIR/bin/open_im_admin_api $WORKDIR/bin/open_im_chat_api RUN apt-get -qq update \ - && apt-get -qq install -y --no-install-recommends ca-certificates curl + && apt-get -qq install -y --no-install-recommends ca-certificates curl bash VOLUME ["/chat/logs","/chat/config","/chat/scripts"] diff --git a/scripts/docker_start_all.sh b/scripts/docker_start_all.sh index cb9926560..46af73758 100755 --- a/scripts/docker_start_all.sh +++ b/scripts/docker_start_all.sh @@ -14,9 +14,13 @@ # limitations under the License. OPENIM_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. + +SCRIPTS_ROOT=$OPENIM_ROOT/scripts +cd $SCRIPTS_ROOT + chmod +x ./*.sh +./start_all.sh -$OPENIM_ROOT/scripts/start_all.sh i=1 while ((i == 1)) do