openimsdk / openim-docker

openim-docker configuration for deploying OpenIM. Provides a build solution for a stable distribution, as well as a docker compose deployment strategy
https://openim.io
Apache License 2.0
36 stars 46 forks source link

feat: add openim mongo logic #88

Closed cubxxw closed 7 months ago

cubxxw commented 7 months ago


🔍 What type of PR is this?

/kind feature

đź‘€ What this PR does / why we need it:

Could you please assist in addressing some lingering issues with the Mongo database in this PR? Additionally, it would be greatly appreciated if you could also tackle the CICD concerns. Thank you for your help!

đź…° Which issue(s) this PR fixes:

Fixes #

đź“ť Special notes for your reviewer:

🎯 Describe how to verify it

đź“‘ Additional documentation e.g., RFC, notion, Google docs, usage docs, etc.:

sweep-ai[bot] commented 7 months ago

Apply Sweep Rules to your PR?

sweep-ai[bot] commented 7 months ago
Sweeping Resolving merge conflicts: track the progress here.

I'm currently resolving the merge conflicts in this PR. I will stack a new PR once I'm done.

[!CAUTION]

An error has occurred: Cmd('git') failed due to: exit code(128) cmdline: git commit stderr: 'Author identity unknown

*** Please tell me who you are.

Run

git config --global user.email "you@example.com" git config --global user.name "Your Name"

to set your account's default identity. Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'root@1b1e655815b6.(none)')' (tracking ID: 16398fce95)

kubbot commented 7 months ago

[!TIP] Run make install to check the status

Docker Images:

REPOSITORY                        TAG                       IMAGE ID       CREATED         SIZE
minio/minio                       latest                    b1b460d8cc87   6 hours ago     151MB
bitnami/node-exporter             1.7.0                     a84c996dd656   13 hours ago    96.8MB
ghcr.io/openimsdk/openim-server   release-v3.5              28e920abd4bc   35 hours ago    622MB
ghcr.io/openimsdk/openim-chat     release-v1.5              7c9643d7bdb9   2 days ago      257MB
ghcr.io/openimsdk/openim-admin    toc-base-open-docker.35   62d5a9c79413   6 days ago      190MB
bitnami/zookeeper                 3.8                       be603263ac72   13 days ago     516MB
ubuntu                            20.04                     f78909c2b360   3 weeks ago     72.8MB
mysql                             5.7                       5107333e08a8   3 weeks ago     501MB
ubuntu                            22.04                     174c8c134b2a   3 weeks ago     77.8MB
node                              18-alpine                 f3776b60850d   3 weeks ago     132MB
node                              20-alpine                 0dc964c4b6e5   3 weeks ago     136MB
prom/prometheus                   v2.48.1                   ea7f826b1553   4 weeks ago     247MB
bitnami/kafka                     3.5.1                     f79889e4e4af   5 weeks ago     558MB
node                              18                        44b36f415b2c   5 weeks ago     1.09GB
moby/buildkit                     buildx-stable-1           be698b50dea4   5 weeks ago     172MB
moby/buildkit                     latest                    be698b50dea4   5 weeks ago     172MB
alpine                            3.16                      e525c930fe75   5 weeks ago     5.54MB
alpine                            3.17                      7997ad530b08   5 weeks ago     7.06MB
alpine                            3.18                      b541f2080109   5 weeks ago     7.33MB
node                              20                        cda45fab4fca   6 weeks ago     1.1GB
buildpack-deps                    buster                    60881f5a8209   6 weeks ago     802MB
buildpack-deps                    bullseye                  5d9ba14c7abd   6 weeks ago     834MB
debian                            10                        d20e99fdc4dc   6 weeks ago     114MB
debian                            11                        873181a41b99   6 weeks ago     124MB
grafana/grafana                   10.2.2                    06e5d59b720d   6 weeks ago     399MB
ghcr.io/openimsdk/openim-web      latest                    096b23e2bf88   8 weeks ago     177MB
node                              16                        1ddc7e4055fd   4 months ago    909MB
prom/alertmanager                 v0.26.0                   9f27df16978d   4 months ago    66.8MB
node                              16-alpine                 2573171e0124   4 months ago    118MB
mongo                             6.0.2                     b70536aeb250   14 months ago   695MB
redis                             7.0.0                     53aa81e8adfa   19 months ago   117MB

Docker Processes:

CONTAINER ID   IMAGE                                                    COMMAND                  CREATED              STATUS                        PORTS                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        NAMES
3747e7b7d892   ghcr.io/openimsdk/openim-chat:release-v1.5               "/openim/openim-chat…"   About a minute ago   Up About a minute (healthy)   0.0.0.0:10008-10009->10008-10009/tcp, :::10008-10009->10008-10009/tcp                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        openim-chat
b6fa4d236f6b   prom/alertmanager:v0.26.0                                "/bin/alertmanager -…"   About a minute ago   Up About a minute             0.0.0.0:19093->9093/tcp, :::19093->9093/tcp                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  alertmanager
446bf07a0110   prom/prometheus:v2.48.1                                  "/bin/prometheus --c…"   About a minute ago   Up About a minute             0.0.0.0:19090->9090/tcp, :::19090->9090/tcp                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  prometheus
cd7662b08dbd   ghcr.io/openimsdk/openim-server:release-v3.5             "/openim/openim-serv…"   2 minutes ago        Up 2 minutes (healthy)        0.0.0.0:10001-10002->10001-10002/tcp, :::10001-10002->10001-10002/tcp, 0.0.0.0:20100->20100/tcp, :::20100->20100/tcp, 0.0.0.0:20110->20110/tcp, :::20110->20110/tcp, 0.0.0.0:20120->20120/tcp, :::20120->20120/tcp, 0.0.0.0:20130->20130/tcp, :::20130->20130/tcp, 0.0.0.0:20140->20140/tcp, :::20140->20140/tcp, 0.0.0.0:20150->20150/tcp, :::20150->20150/tcp, 0.0.0.0:20160->20160/tcp, :::20160->20160/tcp, 0.0.0.0:20170->20170/tcp, :::20170->20170/tcp, 0.0.0.0:20230->20230/tcp, :::20230->20230/tcp, 0.0.0.0:21300-21301->21300-21301/tcp, :::21300-21301->21300-21301/tcp, 0.0.0.0:21400-21403->21400-21403/tcp, :::21400-21403->21400-21403/tcp   openim-server
baa2dcaafb0f   bitnami/node-exporter:1.7.0                              "/opt/bitnami/node-e…"   2 minutes ago        Up 2 minutes                  0.0.0.0:19100->9100/tcp, :::19100->9100/tcp                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  node-exporter
628eecf2db6a   ghcr.io/openimsdk/openim-web:latest                      "bash -c 'openim-web…"   2 minutes ago        Up 2 minutes                  0.0.0.0:11001->11001/tcp, :::11001->11001/tcp                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                openim-web
b9ceff200c7f   mongo:6.0.2                                              "docker-entrypoint.s…"   2 minutes ago        Up 2 minutes                  0.0.0.0:37017->27017/tcp, :::37017->27017/tcp                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                mongo
be954ba8f454   mysql:5.7                                                "docker-entrypoint.s…"   2 minutes ago        Up 2 minutes                  33060/tcp, 0.0.0.0:13306->3306/tcp, :::13306->3306/tcp                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       mysql
f767ecf72134   redis:7.0.0                                              "docker-entrypoint.s…"   2 minutes ago        Up 2 minutes                  0.0.0.0:16379->6379/tcp, :::16379->6379/tcp                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  redis
490faa6b9191   bitnami/zookeeper:3.8                                    "/opt/bitnami/script…"   2 minutes ago        Up 2 minutes                  2888/tcp, 3888/tcp, 8080/tcp, 0.0.0.0:12181->2181/tcp, :::12181->2181/tcp                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    zookeeper
abdd2515c3ea   minio/minio:latest                                       "/usr/bin/docker-ent…"   2 minutes ago        Up 2 minutes                  0.0.0.0:9090->9090/tcp, :::9090->9090/tcp, 0.0.0.0:10005->9000/tcp, :::10005->9000/tcp                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       minio
40df23646d33   grafana/grafana:10.2.2                                   "/run.sh"                2 minutes ago        Up 2 minutes                  0.0.0.0:13000->3000/tcp, :::13000->3000/tcp                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  grafana
1531fd97f132   ghcr.io/openimsdk/openim-admin:toc-base-open-docker.35   "/docker-entrypoint.…"   2 minutes ago        Up 2 minutes                  0.0.0.0:11002->80/tcp, :::11002->80/tcp                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      openim-admin
a3dcbd850939   bitnami/kafka:3.5.1                                      "/opt/bitnami/script…"   2 minutes ago        Up 2 minutes                  0.0.0.0:19092->9092/tcp, :::19092->9092/tcp                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  kafka
a28250d0fe79   moby/buildkit:buildx-stable-1                            "buildkitd --allow-i…"   3 minutes ago        Up 3 minutes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               buildx_buildkit_builder-7387b6fc-fff8-445d-88aa-af378c9e131a0