什么是OMS?
Last updated
cd /you/path/omsd && ./oms --config=/you/path/config.yamlversion: '2.3'
services:
oms:
image: ghcr.io/ssbeatty/oms/oms:v0.7.5
restart: always
ports:
- "9090:9090"
volumes:
- ./data:/opt/oms/data
- ./config:/etc/omsapp:
name: oms
addr: 127.0.0.1
port: 9090
mode: dev
data_path: data # 运行文件目录
run_start: false # 是否在运行时打开浏览器 windows
temp_date: 336h # 执行日志的保存时间 默认14天
db:
driver: postgres
user: root
password: 123456
dsn: 127.0.0.1:3306
db_name: omsoms
├─omsd # 可执行程序
└─data
├─plugin # 插件存放目录
├─tasks # 任务日志
├─tmp # 缓存目录
├─oms.db # 数据库文件
└─upload # 临时上传文件夹# 使用用户root将omsd注册为服务
omsd --action install --user root --config /path/your/config.yaml
# 取消注册
omsd --action uninstall# clone
git clone --recurse-submodules https://github.com/ssbeatty/oms.git
# build frontend (node version > 14.0)
cd web/omsUI
yarn && yarn build
# 打包 oms
# linux
packr build -o oms cmd/omsd/main.go
# win
packr build -o oms.exe cmd/omsd/main.go