1 Star 0 Fork 20

lixianlin01 / om-collections

forked from opensourceway / om-collections 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
README.md 1.47 KB
一键复制 编辑 原始数据 按行查看 历史
zhongjun2 提交于 2022-06-21 11:37 . Added how to test in readme

om-collections

Operation system for opensource community. such as: openEuler, mindSpore

Download

$ git clone https://gitee.com/opensourceway/om-collections

Usage

 cd om-collections
 pip3 install -r requirement.txt
 python george.py

Example of config file: config.ini

[general]
from_data=20200504
es_url=https://127.0.0.1:9200
sleep_time=28800
authorization=Basic xfdjgyttufhggfgfdfgdgfdhgfhgfhg

[baidutongji]
index_name=baidutongji
is_enterprise=true
username=baidutongji_user_name
password=xxxxxxxx
token=dsdfsdfoiuomerkjoiu342374lkjd897234
site_id=37834763

[mailman]
index_name=maillist_user
mailman_core_endpoint=http://mailman-xcfdfsdf:8001/3.1
mailman_core_user=admin
mailman_core_password=password
mailman_core_domain_name=cokdfe.org

Build docker image

git clone https://gitee.com/opensourceway/om-collections
cd ..
docker build -t om:0.0.2 .

run docker image

docker run  -v /local_path/config.ini:/var/lib/om/config.ini -v /local_path/users:/var/lib/om/users  -d  om:0.0.2

Push docker image to repository (Option)

docker tag om:0.0.2 swr.cn-north-4.myhuaweicloud.com/om/om-collection:0.0.2
docker push swr.cn-north-4.myhuaweicloud.com/om/om-collection:0.0.2

How to test it

# run all unit tests
python3 -m unittest 

# run signal model test
python3 -m unittest  test_common
1
https://gitee.com/lixianlin01/om-collections.git
git@gitee.com:lixianlin01/om-collections.git
lixianlin01
om-collections
om-collections
master

搜索帮助