@ -0,0 +1,63 @@
|
|||||||
|
name: Execute Scripts
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths-ignore:
|
||||||
|
- "docs/**"
|
||||||
|
- "README.md"
|
||||||
|
- "README_zh-CN.md"
|
||||||
|
- "CONTRIBUTING.md"
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
paths-ignore:
|
||||||
|
- "README.md"
|
||||||
|
- "README_zh-CN.md"
|
||||||
|
- "CONTRIBUTING.md"
|
||||||
|
- "docs/**"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
execute-scripts:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Start Docker Compose
|
||||||
|
run: |
|
||||||
|
docker-compose stop
|
||||||
|
docker-compose up -d
|
||||||
|
|
||||||
|
- name: Stop all services
|
||||||
|
run: |
|
||||||
|
chmod +x ./scripts/stop_all.sh
|
||||||
|
./scripts/stop_all.sh
|
||||||
|
|
||||||
|
- name: Build all services
|
||||||
|
run: |
|
||||||
|
chmod +x ./scripts/build_all_service.sh
|
||||||
|
./scripts/build_all_service.sh
|
||||||
|
cat logs/openIM.log
|
||||||
|
|
||||||
|
- name: Start all services
|
||||||
|
run: |
|
||||||
|
chmod +x ./scripts/start_all.sh
|
||||||
|
./scripts/start_all.sh
|
||||||
|
cat logs/openIM.log
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: Check all services
|
||||||
|
run: |
|
||||||
|
chmod +x ./scripts/check_all.sh
|
||||||
|
./scripts/check_all.sh
|
||||||
|
cat logs/openIM.log
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
|
- name: Print openIM.log
|
||||||
|
run: |
|
||||||
|
cat -n logs/openIM.log
|
||||||
|
cat logs/openIM.log >> "$GITHUB_OUTPUT"
|
||||||
|
|
@ -0,0 +1,32 @@
|
|||||||
|
# `/assets`
|
||||||
|
|
||||||
|
The `/assets` directory in the OpenIM repository contains various assets such as images, logos, and animated GIFs. These assets serve different purposes and contribute to the functionality and aesthetics of the OpenIM project.
|
||||||
|
|
||||||
|
## Directory Structure:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
assets/
|
||||||
|
├── README.md # Documentation for the assets directory
|
||||||
|
├── images # Directory holding images related to OpenIM
|
||||||
|
│ ├── architecture.png # Image depicting the architecture of OpenIM
|
||||||
|
│ └── mvc.png # Image illustrating the Model-View-Controller (MVC) pattern
|
||||||
|
├── intive-slack.png # Image displaying the Intive Slack logo
|
||||||
|
├── logo # Directory containing various logo variations for OpenIM
|
||||||
|
│ ├── openim-logo-black.png # OpenIM logo with a black background
|
||||||
|
│ ├── openim-logo-blue.png # OpenIM logo with a blue background
|
||||||
|
│ ├── openim-logo-green.png # OpenIM logo with a green background
|
||||||
|
│ ├── openim-logo-purple.png # OpenIM logo with a purple background
|
||||||
|
│ ├── openim-logo-white.png # OpenIM logo with a white background
|
||||||
|
│ ├── openim-logo-yellow.png # OpenIM logo with a yellow background
|
||||||
|
│ └── openim-logo.png # OpenIM logo with a transparent background
|
||||||
|
└── logo-gif # Directory containing animated GIF versions of the OpenIM logo
|
||||||
|
└── openim-log.gif # Animated OpenIM logo with a transparent background
|
||||||
|
```
|
||||||
|
|
||||||
|
## Copyright Notice:
|
||||||
|
|
||||||
|
The OpenIM logo, including its variations and animated versions, displayed in this repository [OpenIM](https://github.com/OpenIMSDK/openim) under the `/assets/logo` and `/assets/logo-gif` directories, are protected by copyright laws.
|
||||||
|
|
||||||
|
The logo design is credited to @Xx(席欣).
|
||||||
|
|
||||||
|
Please respect the intellectual property rights and refrain from unauthorized use and distribution of these assets.
|
After Width: | Height: | Size: 21 KiB |
@ -0,0 +1 @@
|
|||||||
|
# The OpenIM logo files are licensed under a choice of either Apache-2.0 or CC-BY-4.0 (Creative Commons Attribution 4.0 International).
|
After Width: | Height: | Size: 420 KiB |
@ -0,0 +1 @@
|
|||||||
|
# The OpenIM logo files are licensed under a choice of either Apache-2.0 or CC-BY-4.0 (Creative Commons Attribution 4.0 International).
|
After Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 35 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 32 KiB |
After Width: | Height: | Size: 31 KiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 37 KiB |
@ -1,27 +1,39 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
internet_ip=`curl ifconfig.me -s`
|
|
||||||
|
# Get the public internet IP address
|
||||||
|
internet_ip=$(curl ifconfig.me -s)
|
||||||
echo $internet_ip
|
echo $internet_ip
|
||||||
|
|
||||||
|
# Load environment variables from .env file
|
||||||
source .env
|
source .env
|
||||||
echo $MINIO_ENDPOINT
|
echo $MINIO_ENDPOINT
|
||||||
if [ $MINIO_ENDPOINT == "http://127.0.0.1:10005" ]; then
|
|
||||||
sed -i "s/127.0.0.1/${internet_ip}/" .env
|
|
||||||
|
|
||||||
|
# Replace local IP address with the public IP address in .env file
|
||||||
|
if [ $MINIO_ENDPOINT == "http://127.0.0.1:10005" ]; then
|
||||||
|
sed -i "s/127.0.0.1/${internet_ip}/" .env
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd scripts ;
|
# Change directory to scripts folder
|
||||||
chmod +x *.sh ;
|
cd scripts
|
||||||
|
chmod +x *.sh
|
||||||
|
|
||||||
|
# Execute necessary scripts
|
||||||
./init_pwd.sh
|
./init_pwd.sh
|
||||||
./env_check.sh;
|
./env_check.sh
|
||||||
cd .. ;
|
|
||||||
|
# Go back to the previous directory
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
# Check if docker-compose command is available
|
||||||
if command -v docker-compose &> /dev/null
|
if command -v docker-compose &> /dev/null
|
||||||
then
|
then
|
||||||
docker-compose up -d ;
|
docker-compose up -d
|
||||||
else
|
else
|
||||||
docker compose up -d ;
|
docker compose up -d
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Change directory to scripts folder again
|
||||||
|
cd scripts
|
||||||
|
|
||||||
cd scripts ;
|
# Check docker services
|
||||||
./docker_check_service.sh
|
./docker_check_service.sh
|