From 44a9724827ec42b6ba13991ee9e4338e4f00421c Mon Sep 17 00:00:00 2001 From: skiffer-git <44203734@qq.com> Date: Wed, 23 Nov 2022 09:47:24 +0800 Subject: [PATCH 1/6] readme --- README.md | 80 +++++++++++++++++++++++++------------------------------ 1 file changed, 37 insertions(+), 43 deletions(-) diff --git a/README.md b/README.md index 6a3d03465..ff6d83888 100644 --- a/README.md +++ b/README.md @@ -36,75 +36,69 @@ By deployment of the Open-IM-Server on the customer's server, developers can int > Open-IM relies on five open source high-performance components: ETCD, MySQL, MongoDB, Redis, and Kafka. Privatization deployment Before Open-IM-Server, please make sure that the above five components have been installed. If your server does not have the above components, you must first install Missing components. If you have the above components, it is recommended to use them directly. If not, it is recommended to use Docker-compose, no To install dependencies, one-click deployment, faster and more convenient. -#### Source code deployment +#### Deploy using Docker -1. Install [Go environment](https://golang.org/doc/install). Make sure Go version is at least 1.15. +1. Install [Go environment](https://golang.org/doc/install). Make sure Go version is at least 1.17 -2. Clone the Open-IM project to your server. +2. Clone the Open-IM project to your server ``` git clone https://github.com/OpenIMSDK/Open-IM-Server.git --recursive ``` -3. Build and start Service. +3. Deploy - 1. Shell authorization + 1. Modify env ``` - #cd Open-IM-server/script - - chmod +x *.sh + #cd Open-IM-server + USER=root + PASSWORD=openIM123 #Password with more than 8 digits, excluding special characters + ENDPOINT=http://127.0.0.1:10005 #Replace 127.0.0.1 with Internet IP + DATA_DIR=./ ``` - 2. Execute the build shell - + 2. Deploy && Start + ``` - ./build_all_service.sh + chmod +x install_im_server.sh; + ./install_im_server.sh; ``` - - 3. Start service - - ``` - ./start_all.sh - ``` - + 4. Check service - + ``` - ./check_all.sh + cd script; + ./docker_check_service.sh./check_all.sh ``` - + ![OpenIMServersonSystempng](https://github.com/OpenIMSDK/Open-IM-Server/blob/main/docs/Open-IM-Servers-on-System.png) -#### Docker deployment +#### Deploy using source code -All images are available at https://hub.docker.com/r/lyt1123/open_im_server +1. Go 1.17 or above。 +2. Clone -1. [Install Docker](https://docs.docker.com/install/) 1.13 or above. +```shell +git clone https://github.com/OpenIMSDK/Open-IM-Server.git --recursive +cd cmd/Open-IM-SDK-Core +git checkout mainCopy to clipboardErrorCopied +``` -2. [Install Docker Compose](https://docs.docker.com/compose/install/) 1.22 or above. +1. Set executable permissions -3. Clone the Open-IM project to your server. +```shell +cd ../../script/ +chmod +x *.shCopy to clipboardErrorCopied +``` - ``` - git clone https://github.com/OpenIMSDK/Open-IM-Server.git --recursive - ``` +1. build -4. Start docker-compose with one click(Docker automatically pulls all images) +```shell +./batch_build_all_service.shCopy +``` - ``` - cd Open-IM-Server - docker-compose up -d - ``` - -5. Check service - - ``` - ./docker_check_service.sh - ./check_all.sh - ``` - - ![OpenIMServersondockerpng](https://github.com/OpenIMSDK/Open-IM-Server/blob/main/docs/Open-IM-Servers-on-docker.png) +all services build success ### CONFIGURATION INSTRUCTIONS From 10a0666de931085cc263a231dc52ede12c072287 Mon Sep 17 00:00:00 2001 From: skiffer-git <72860476+skiffer-git@users.noreply.github.com> Date: Fri, 25 Nov 2022 19:56:28 +0800 Subject: [PATCH 2/6] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ff6d83888..9f9e09ebc 100644 --- a/README.md +++ b/README.md @@ -82,20 +82,20 @@ By deployment of the Open-IM-Server on the customer's server, developers can int ```shell git clone https://github.com/OpenIMSDK/Open-IM-Server.git --recursive cd cmd/Open-IM-SDK-Core -git checkout mainCopy to clipboardErrorCopied +git checkout main ``` 1. Set executable permissions ```shell cd ../../script/ -chmod +x *.shCopy to clipboardErrorCopied +chmod +x *.sh ``` 1. build ```shell -./batch_build_all_service.shCopy +./batch_build_all_service.sh ``` all services build success From 3013af8e622e5cce763707f504b855505fcd1bd0 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Tue, 13 Dec 2022 12:42:04 +0800 Subject: [PATCH 3/6] upgrade enterprise --- docker-compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index dac735657..6ba7a43ca 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -139,7 +139,7 @@ services: max-file: "2" open_im_enterprise: - image: openim/open_im_enterprise:v1.0.0 + image: openim/open_im_enterprise:v1.0.1 container_name: open_im_enterprise volumes: - ./logs:/Open-IM-Enterprise/logs From d42d4308e55039405306a787716c6229c76c07ce Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Tue, 13 Dec 2022 13:59:58 +0800 Subject: [PATCH 4/6] upgrade enterprise --- docker-compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 6ba7a43ca..18c13b274 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -115,7 +115,7 @@ services: open_im_server: - image: openim/open_im_server:v2.3.5 + image: openim/open_im_server:v2.3.6 container_name: open_im_server volumes: - ./logs:/Open-IM-Server/logs From 83f128ddcce878fa13ee267992f3adb39502277b Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Tue, 13 Dec 2022 15:11:42 +0800 Subject: [PATCH 5/6] upgrade open_im_enterprise --- docker-compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 18c13b274..4188bbdf8 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -139,7 +139,7 @@ services: max-file: "2" open_im_enterprise: - image: openim/open_im_enterprise:v1.0.1 + image: openim/open_im_enterprise:v1.0.2 container_name: open_im_enterprise volumes: - ./logs:/Open-IM-Enterprise/logs From 0b9d9fa8d707acca1ba520a67420155f9817cdcb Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Thu, 15 Dec 2022 18:43:52 +0800 Subject: [PATCH 6/6] install script --- install_im_server.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/install_im_server.sh b/install_im_server.sh index b2b9b9649..ea641d0f8 100644 --- a/install_im_server.sh +++ b/install_im_server.sh @@ -1,5 +1,14 @@ #!/usr/bin/env bash +internet_ip=`curl ifconfig.me -s` +echo $internet_ip +source .env +echo $MINIO_ENDPOINT +if [ $MINIO_ENDPOINT == "http://127.0.0.1:10005" ]; then + sed -i "s/127.0.0.1/${internet_ip}/" .env + +fi + cd script ; chmod +x *.sh ; ./init_pwd.sh