Metrics
0
Watch 1 Star 3 Fork 2

staugur / SwarmOpsPythonMIT

Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
Operation of swarm cluster, providing an intermediate layer application of API interface and UI. spread retract

https://github.com/staugur/SwarmOps.git

  • Python 61.9%
  • HTML 36.1%
  • Shell 1.8%
  • Dockerfile 0.2%
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

SwarmOps

Operation of swarm cluster, providing an intermediate layer application of API interface and UI.

LICENSE

MIT

Environment

  1. Python Version: 2.7
  2. Web Framework: Flask, Flask-RESTful
  3. Required Modules: requirements.txt

Usage

1. Requirement:
    1.0 yum install -y gcc gcc-c++ python-devel libffi-devel openssl-devel
    1.1 pip install -r requirements.txt
    
2. modify config.py or add environment variables(os.getenv key in the reference configuration item)

3. run:
    3.1 python main.py                 #开发模式
    3.2 bash online_gunicorn.sh start  #生产模式

Usage for Docker

   cd misc ; docker build -f Dockerfile_gcc -t alpine:gcc .
   cd .. ;   docker build -t swarmops .
   docker run -tdi --name swarmops --net=host swarmops
   ps aux|grep SwarmOps

Demo

https://swarmops.saintic.com

UI

Swarms Services Nodes Storages Network Registry

Release Note

For more info, please read the changelog.md

####Release 0.0.1

作为第一个正式发布版本,SwarmOps实现了对Docker Swarm模式的集群管理,所有操作均采用API形式。

1. UI/API可以初始化、管理多个Swarm集群
2. UI/API可以增删查改服务
3. UI/API可以增删查改节点
4. UI/API可以查询服务的其他属性, 例如replicas节点,并生成Nginx样例配置
5. 数据持久化存储local或redis, 使用redis可以多点部署
6. 认证采用passport, 并设置只允许登陆的用户列表

####Release 0.0.2

1. UI大部分功能重磅更新, 采用layer弹层方式取消跳转
2. UI集成私有仓, 支持V1版本, 查删操作
3. network查询

####Release 0.0.3

TODO

Not yet developed(暂不开发)

Comments ( 0 )

You need to Sign in for post a comment

Help Search