You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Open-IM-Server/scripts
Alan 45a0266b20
chore: to map files of chat docker image into the IM server (#897)
1 year ago
..
LICENSE fix: script -> scripts 1 year ago
enterprise fix: part of the make rules optimization (#751) 1 year ago
githooks fix: actions milestones auto (#642) 1 year ago
lib feat: add scripts format (#811) 1 year ago
make-rules fix: typo in golang.mk (#855) 1 year ago
README.md feat: config env optimize (#683) 1 year ago
advertise.sh style: add format and lint (#773) 1 year ago
batch_start_all.sh feat: add scripts and fix 1 year ago
build.cmd fix: part of the make rules optimization (#751) 1 year ago
build_all_service.sh fix: support multi-platform build script(#866) (#867) 1 year ago
build_push_k8s_images.sh feat: add all command 1 year ago
check_all.sh fix: check msg-transfer script (#886) 1 year ago
common.sh feat: add scripts format (#811) 1 year ago
coverage.awk test: add chmod file in scripts 1 year ago
coverage.sh feat: add scripts format (#811) 1 year ago
docker_check_service.sh chore: to map files of chat docker image into the IM server (#897) 1 year ago
docker_start_all.sh 815 (#849) 1 year ago
ensure_tag.sh feat: add release 1 year ago
env_check.sh feat: add scripts format (#811) 1 year ago
environment.sh feat: add scripts format (#811) 1 year ago
function.sh feat: add scripts format (#811) 1 year ago
genconfig.sh feat: add scripts format (#811) 1 year ago
init_pwd.sh fix: part of the make rules optimization (#751) 1 year ago
install_im_compose.sh fix: delete batch build all file (#561) 1 year ago
install_im_server.sh Release/v3.1 merge (#724) 1 year ago
mongo-init.sh feat: add copyright 1 year ago
msg_gateway_start.sh fix: start don't kill old process (#892) 1 year ago
msg_transfer_start.sh fix: start don't kill old process (#892) 1 year ago
path_info.sh 815 (#849) 1 year ago
push_start.sh fix: start don't kill old process (#892) 1 year ago
release.sh test: add chmod file in scripts 1 year ago
start.bat 744 (#766) 1 year ago
start_all.sh fix: script update (#889) 1 year ago
start_component_check.sh 815 (#849) 1 year ago
start_cron.sh fix: start don't kill old process (#892) 1 year ago
start_rpc_service.sh fix: start don't kill old process (#892) 1 year ago
stop_all.sh Update stop_all.sh (#822) 1 year ago
style_info.sh fix: scripts of start and check update (#887) 1 year ago
wait-for-it.sh feat: add scripts format (#811) 1 year ago

README.md

OpenIM Scripts Directory Structure

This document outlines the directory structure for scripts in the OpenIM Server project. These scripts play a critical role in various areas like building, deploying, running and managing the services of OpenIM.

scripts/
├── LICENSE                        # License related files
│   ├── LICENSE                    # The license file
│   └── LICENSE_TEMPLATES          # Template for license file
├── README.md                      # Readme file for scripts directory
├── advertise.sh                   # Script for advertisement services
├── batch_start_all.sh             # Script to start all services in batch
├── build.cmd                      # Windows build command script
├── build_all_service.sh           # Script to build all services
├── build_push_k8s_images.sh       # Script to build and push images for Kubernetes
├── check_all.sh                   # Script to check status of all services
├── common.sh                      # Contains common functions used by other scripts
├── coverage.awk                   # AWK script for coverage report generation
├── coverage.sh                    # Script for generating coverage reports
├── docker_check_service.sh        # Docker specific service check script
├── docker_start_all.sh            # Script to start all services in a docker environment
├── ensure_tag.sh                  # Script to ensure proper tagging of docker images
├── enterprise                     # Scripts specific to enterprise version
│   ├── check_all.sh               # Check status of all enterprise services
│   ├── function.sh                # Functions specific to enterprise version
│   └── path_info.cfg              # Path information configuration for enterprise version
├── env_check.sh                   # Script to check the environment
├── function.sh                    # Contains functions used by other scripts
├── githooks                       # Git hook scripts
│   ├── commit-msg                 # Script to validate commit message
│   ├── pre-commit                 # Script to run before each commit
│   └── pre-push                   # Script to run before each push
├── init_pwd.sh                    # Script to initialize password
├── install_im_compose.sh          # Script to install IM with Docker Compose
├── install_im_server.sh           # Script to install IM server
├── lib                            # Library scripts
│   ├── color.sh                   # Script for console color manipulation
│   ├── golang.sh                  # Script for golang related utility functions
│   ├── init.sh                    # Script for initialization tasks
│   ├── logging.sh                 # Script for logging related utility functions
│   ├── release.sh                 # Script for release related utility functions
│   ├── util.sh                    # Script for generic utility functions
│   └── version.sh                 # Script for versioning related tasks
├── make-rules                     # Makefile rules
│   ├── common.mk                  # Common Make rules
│   ├── copyright.mk               # Copyright related Make rules
│   ├── dependencies.mk            # Dependencies related Make rules
│   ├── gen.mk                     # Make rules for code generation
│   ├── golang.mk                  # Golang specific Make rules
│   ├── image.mk                   # Make rules for image building
│   ├── release.mk                 # Make rules for release process
│   ├── swagger.mk                 # Make rules for swagger documentation
│   └── tools.mk                   # Make rules for tools and utilities
├── mongo-init.sh                  # Script to initialize MongoDB
├── msg_gateway_start.sh           # Script to start message gateway service
├── msg_transfer_start.sh          # Script to start message transfer service
├── path_info.sh                   # Script containing path information
├── push_start.sh                  # Script to start push service
├── release.sh                     # Script to perform release process
├── start_all.sh                   # Script to start all services
├── start_cron.sh                  # Script to start cron jobs
├── start_rpc_service.sh           # Script to start RPC service
├── stop_all.sh                    # Script to stop all services
└── style_info.sh                  # Script containing style related information

The purpose of having a structured scripts directory like this is to make the operations of OpenIM Server clear and easy to manage. Each script has its own responsibility, making it easier to maintain and update. It's also helpful for newcomers who can easily understand what each part of the system is doing by just looking at this directory structure.

Each directory and script in the structure should be understood as a part of a larger whole. All scripts work together to ensure the smooth operation and maintenance of the OpenIM Server.

Supported platforms

  • Linux x86_64 (linux_amd64) : 64-bit Linux for most desktop and server systems.

  • Windows x86_64 (windows_amd64) : 64-bit version for most Windows operating systems.

  • macOS x86_64 (darwin_amd64) : 64-bit version for Apple Macintosh computers.

  • Linux ARM64 (linux_arm64) : For ARM-based 64-bit Linux systems such as Raspberry Pi 4 and Jetson Nano.

  • Linux s390x (linux_s390x) : 64-bit Linux for IBM System z hosts.

  • Linux MIPS64 (linux_mips64) : 64-bit Linux for MIPS architecture.

  • Linux MIPS64LE (linux_mips64le) : Suitable for 64-bit Linux systems with little endian MIPS architecture.

examples

Scripts to perform various build, install, analysis, etc operations.

These scripts keep the root level Makefile small and simple.

Examples: