From 628ed87e8ce4b1e8c9c8f1e4a7aab9e4313cde11 Mon Sep 17 00:00:00 2001 From: "Xinwei Xiong (cubxxw)" <3293172751nss@gmail.com> Date: Mon, 18 Dec 2023 11:37:47 +0800 Subject: [PATCH] feat: add openim support docker compose deployment Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com> --- config/Readme.md | 17 ----------------- deployments/templates/config.yaml | 2 +- scripts/docker_start_all.sh | 5 +++++ 3 files changed, 6 insertions(+), 18 deletions(-) delete mode 100644 config/Readme.md diff --git a/config/Readme.md b/config/Readme.md deleted file mode 100644 index 1ee450386..000000000 --- a/config/Readme.md +++ /dev/null @@ -1,17 +0,0 @@ -# Configuration file - -The configuration file is automatically generated through make init or scripts/init-config.sh. - -Add the configuration file to the policy that adds version management - - -```bash -make init -``` - - -## Fix config/config.yaml - -```bash -vim config/config.yaml -``` diff --git a/deployments/templates/config.yaml b/deployments/templates/config.yaml index 41deda77a..985fcb17e 100644 --- a/deployments/templates/config.yaml +++ b/deployments/templates/config.yaml @@ -20,7 +20,7 @@ envs: zookeeper: schema: openim # ZOOKEEPER_SCHEMA, the schema to use in Zookeeper zkAddr: - - 127.0.0.1:12181 # ZOOKEEPER_ADDRESS and ZOOKEEPER_PORT, Zookeeper address and port + - 127.28.0.1:12181 # ZOOKEEPER_ADDRESS and ZOOKEEPER_PORT, Zookeeper address and port username: "" # ZOOKEEPER_USERNAME, Username for Zookeeper authentication password: "" # ZOOKEEPER_PASSWORD, Password for Zookeeper authentication diff --git a/scripts/docker_start_all.sh b/scripts/docker_start_all.sh index a167fe8cc..f6f497285 100755 --- a/scripts/docker_start_all.sh +++ b/scripts/docker_start_all.sh @@ -32,6 +32,11 @@ printf "${YELLOW_PREFIX}=======>pwd=%s${COLOR_SUFFIX}\n" "$PWD" bin_dir="$BIN_DIR" logs_dir="$SCRIPTS_ROOT/../logs" +if [ ! -d "$logs_dir" ]; then + echo "mkdir -p $logs_dir" + mkdir -p "$logs_dir" +fi + printf "${YELLOW_PREFIX}=======>bin_dir=%s${COLOR_SUFFIX}\n" "$bin_dir" printf "${YELLOW_PREFIX}=======>logs_dir=%s${COLOR_SUFFIX}\n" "$logs_dir" printf "${YELLOW_PREFIX}=======>sdk_db_dir=%s${COLOR_SUFFIX}\n" "$sdk_db_dir"