Skip to content

Commit

Permalink
openim create and fix scripts add config (#321)
Browse files Browse the repository at this point in the history
* feat: add openim support docker compose deployment

Signed-off-by: Xinwei Xiong (cubxxw) <[email protected]>

* feat: add openim support docker compose deployment

Signed-off-by: Xinwei Xiong (cubxxw) <[email protected]>

* feat: add openim support docker compose deployment

Signed-off-by: Xinwei Xiong (cubxxw) <[email protected]>

---------

Signed-off-by: Xinwei Xiong (cubxxw) <[email protected]>
  • Loading branch information
cubxxw authored Dec 18, 2023
1 parent b0db9d1 commit cdc192c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/scripts-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
sleep 30;
- name: start all services
run: |
sudo cp ./deployments/templates/config.yaml ./config/config.yaml
sudo make init
sudo make start
shell: bash

Expand Down
2 changes: 1 addition & 1 deletion config/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ make init

```bash
vim config/config.yaml
```
```
2 changes: 1 addition & 1 deletion deployments/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 5 additions & 0 deletions scripts/docker_start_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit cdc192c

Please sign in to comment.