mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-04 03:12:19 +08:00
feat: add openim support arm arch
Signed-off-by: Xinwei Xiong (cubxxw) <3293172751nss@gmail.com>
This commit is contained in:
parent
ebf86e5c0f
commit
7dcd40401f
17
.github/workflows/openimci.yml
vendored
17
.github/workflows/openimci.yml
vendored
@ -114,7 +114,7 @@ jobs:
|
|||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
openim-start:
|
openim-start:
|
||||||
name: Test OpenIM install/start on ${{ matrix.os }}
|
name: Test OpenIM install/start on ${{ matrix.os }}-${{ matrix.arch }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@ -125,6 +125,7 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
go_version: ["1.21"]
|
go_version: ["1.21"]
|
||||||
os: ["ubuntu-latest"]
|
os: ["ubuntu-latest"]
|
||||||
|
arch: [arm64, armv7, amd64]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout and Install OpenIM
|
- name: Checkout and Install OpenIM
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@ -143,6 +144,7 @@ jobs:
|
|||||||
# sudo docker ps
|
# sudo docker ps
|
||||||
|
|
||||||
- name: Check the OpenIM environment and status
|
- name: Check the OpenIM environment and status
|
||||||
|
if: runner.os == 'Linux' && matrix.arch == 'amd64'
|
||||||
id: docker_info
|
id: docker_info
|
||||||
run: |
|
run: |
|
||||||
sleep 30
|
sleep 30
|
||||||
@ -155,21 +157,26 @@ jobs:
|
|||||||
|
|
||||||
- name: Comment PR
|
- name: Comment PR
|
||||||
uses: thollander/actions-comment-pull-request@v2
|
uses: thollander/actions-comment-pull-request@v2
|
||||||
|
if: runner.os == 'Linux' && matrix.arch == 'amd64'
|
||||||
with:
|
with:
|
||||||
message: |
|
message: |
|
||||||
> [!TIP]
|
> [!TIP]
|
||||||
> Run make install to check the status
|
> Run make install to check the status
|
||||||
|
|
||||||
### Docker Images:
|
### Docker Images:
|
||||||
```
|
<details><summary>Click to expand docker images</summary>
|
||||||
|
```bash
|
||||||
${{ env.images }}
|
${{ env.images }}
|
||||||
```
|
```
|
||||||
|
</details>
|
||||||
|
|
||||||
### Docker Processes:
|
### Docker Processes:
|
||||||
```
|
<details><summary>Click to expand docker ps</summary>
|
||||||
|
```bash
|
||||||
${{ env.containers }}
|
${{ env.containers }}
|
||||||
```
|
```
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
</details>
|
||||||
continue-on-error: true
|
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
|
||||||
|
|
||||||
execute-scripts:
|
execute-scripts:
|
||||||
name: Execute OpenIM Script On ${{ matrix.os }}
|
name: Execute OpenIM Script On ${{ matrix.os }}
|
||||||
|
|||||||
@ -124,7 +124,13 @@ You can select from the following versions:
|
|||||||
docker save -o <tar-file-name>.tar <image-name>
|
docker save -o <tar-file-name>.tar <image-name>
|
||||||
```
|
```
|
||||||
|
|
||||||
1. **Fetch code**: Clone the repository:
|
If you want to save all the images, use the following command:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker save -o <tar-file-name>.tar $(docker images -q)
|
||||||
|
```
|
||||||
|
|
||||||
|
3. **Fetch code**: Clone the repository:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/openimsdk/openim-docker.git
|
git clone https://github.com/openimsdk/openim-docker.git
|
||||||
@ -134,7 +140,7 @@ Or download the code from [Releases](https://github.com/openimsdk/openim-docker/
|
|||||||
|
|
||||||
> Because of the difference between win and linux newlines, please do not clone the repository with win and then synchronize scp to linux.
|
> Because of the difference between win and linux newlines, please do not clone the repository with win and then synchronize scp to linux.
|
||||||
|
|
||||||
1. **Transfer files**: Use `scp` to transfer all images and code to the intranet server.
|
4. **Transfer files**: Use `scp` to transfer all images and code to the intranet server.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
scp <tar-file-name>.tar user@remote-ip:/path/on/remote/server
|
scp <tar-file-name>.tar user@remote-ip:/path/on/remote/server
|
||||||
@ -142,21 +148,27 @@ scp <tar-file-name>.tar user@remote-ip:/path/on/remote/server
|
|||||||
|
|
||||||
Or choose other transfer methods such as a hard drive.
|
Or choose other transfer methods such as a hard drive.
|
||||||
|
|
||||||
2. **Import images**: On the intranet server:
|
5. **Import images**: On the intranet server:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker load -i <tar-file-name>.tar
|
docker load -i <tar-file-name>.tar
|
||||||
```
|
```
|
||||||
|
|
||||||
3. **Deploy**: Navigate to the `openim-docker` repository directory and follow the [README guide](https://github.com/openimsdk/openim-docker) for deployment.
|
Import directly with shortcut commands:
|
||||||
|
|
||||||
4. **Deploy using docker compose**:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker compose up -d
|
for i in `ls ./`;do docker load -i $i;done
|
||||||
|
```
|
||||||
|
|
||||||
# Verify
|
6. **Deploy**: Navigate to the `openim-docker` repository directory and follow the [README guide](https://github.com/openimsdk/openim-docker) for deployment.
|
||||||
docker compose ps
|
|
||||||
|
7. **Deploy using docker compose**:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
export OPENIM_IP="your ip" # Set Ip
|
||||||
|
make init # Init config
|
||||||
|
docker compose up -d # Deployment
|
||||||
|
docker compose ps # Verify
|
||||||
```
|
```
|
||||||
|
|
||||||
> **Note**: If you're using a version of Docker prior to 20, make sure you've installed `docker-compose`.
|
> **Note**: If you're using a version of Docker prior to 20, make sure you've installed `docker-compose`.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user