feat: save server code

Signed-off-by: Xinwei Xiong(cubxxw-openim) <3293172751nss@gmail.com>
pull/825/head v3.2.2-beta.1
Xinwei Xiong(cubxxw-openim) 2 years ago
parent 1f25f7dc78
commit 5742932df5
No known key found for this signature in database
GPG Key ID: 1BAD6F395338EFDE

11
.github/sync.yml vendored

@ -75,6 +75,17 @@ OpenIMSDK/OpenKF:
dest: .github/.codecov.yml dest: .github/.codecov.yml
replace: false replace: false
openim-sigs/openim-docker:
- source: ./config
dest: ./openim-server/config
replace: true
- source: ./docs
dest: ./openim-server/docs
replace: true
- source: ./scripts
dest: ./openim-server/scripts
replace: true
group: group:
# first groupcommon to all warehouses # first groupcommon to all warehouses
# TODO: add the required warehouse here # TODO: add the required warehouse here

@ -24,8 +24,6 @@ FROM ghcr.io/openim-sigs/openim-bash-image:latest
WORKDIR ${SERVER_WORKDIR} WORKDIR ${SERVER_WORKDIR}
# Copy scripts and binary files to the production image # Copy scripts and binary files to the production image
COPY --from=builder ${OPENIM_SERVER_CMDDIR} /openim/openim-server/scripts
COPY --from=builder ${SERVER_WORKDIR}/config /openim/openim-server/config
COPY --from=builder ${OPENIM_SERVER_BINDIR} /openim/openim-server/_output/bin COPY --from=builder ${OPENIM_SERVER_BINDIR} /openim/openim-server/_output/bin
CMD ["bash","-c","${OPENIM_SERVER_CMDDIR}/docker-start-all.sh"] CMD ["bash","-c","${OPENIM_SERVER_CMDDIR}/docker-start-all.sh"]

@ -98,35 +98,35 @@ services:
restart: always restart: always
command: minio server /data --console-address ':9090' command: minio server /data --console-address ':9090'
# openim-server: openim-server:
# # image: ghcr.io/openimsdk/openim-server:latest # image: ghcr.io/openimsdk/openim-server:latest
# image: registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-server:latest image: registry.cn-hangzhou.aliyuncs.com/openimsdk/openim-server:latest
# # image: openim/openim-server:latest # image: openim/openim-server:latest
# # build: . # build: .
# container_name: openim-server container_name: openim-server
# # healthcheck: # healthcheck:
# # test: ["CMD-SHELL", "./scripts/check-all.sh"] # test: ["CMD-SHELL", "./scripts/check-all.sh"]
# # interval: 30s # interval: 30s
# # timeout: 10s # timeout: 10s
# # retries: 5 # retries: 5
# volumes: volumes:
# - ${DATA_DIR}/_output/openim/logs:/openim/openim-server/logs - ${DATA_DIR}/_output/openim/logs:/openim/openim-server/logs
# - ${DATA_DIR}/config:/openim/openim-server/config - ${DATA_DIR}/config:/openim/openim-server/config
# - ${DATA_DIR}/scripts:/openim/openim-server/scripts - ${DATA_DIR}/scripts:/openim/openim-server/scripts
# restart: always restart: always
# depends_on: depends_on:
# - zookeeper - zookeeper
# - kafka - kafka
# - mysql - mysql
# - mongodb - mongodb
# - redis - redis
# - minio - minio
# network_mode: "host" network_mode: "host"
# logging: logging:
# driver: json-file driver: json-file
# options: options:
# max-size: "1g" max-size: "1g"
# max-file: "2" max-file: "2"
openim-chat: openim-chat:
# image: ghcr.io/openimsdk/openim-chat:latest # image: ghcr.io/openimsdk/openim-chat:latest

Loading…
Cancel
Save