1 Star 0 Fork 829

IF / spug

forked from 小伟 / spug 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Spug

Python3 Flask Node Element

Spug is an open source O & M management system developed with Python + Flask + Vue + Element. The system is separated from the front and the back of the system to help small and medium-sized enterprises manage the hosts, tasks, deployment, configuration files, monitoring and alarming

Spug是一款使用Python+Flask+Vue+Element组件开发的开源运维管理系统,系统前后端分离,帮助中小型企业完成主机、任务、发布部署、配置文件、监控、报警等管理。

Demo演示地址:https://spug.qbangmang.com/login

Demo账号密码:<admin/spug>

Feature 功能


  • CMDB 资产管理
  • Task 任务计划管理
  • CI/CD 部署、发布管理
  • Config File 配置文件管理
  • Monitor 监控(未完成)
  • Alarm 报警(未完成)

Environment 环境


  • Python 3.x
  • Flask 1.0.x
  • Node 6.x
  • Element 2.x

快速启动


$ docker pull reg.qiniu.com/openspug/spug
$ docker run -d -p 80:80 reg.qiniu.com/openspug/spug

$ 访问:http://主机ip
$ 默认账号密码:admin/spug

# 可选参数:
$ docker run -d -e REGISTRY_SERVER="hub.qbangmang.com" -p 80:80 reg.qiniu.com/openspug/spug

$ -e MYSQL_HOST = "192.168.1.10"              // 指定数据库地址
  -e MYSQL_DATABASE="spug"                    // 指定数据库名称,
  -e MYSQL_USER="spuguser"                    // 指定数据库用户名
  -e MYSQL_PASSWORD="spugpwd"                 // 指定数据库密码
  -e MYSQL_PORT="3306"                        // 指定数据库端口

  -e REGISTRY_SERVER="hub.qbangmang.com"      // 指定私有镜像仓库
  -e REGISTRY_USER="hubuser"                  // 指定私有镜像仓库用户名
  -e REGISTRY_PASSWORD="hubpwd"               // 指定私有镜像仓库密码

⚠️注意:如果使用了 -e MYSQL_HOST 意味着你将使用外部数据库,容器内自带的数据库将不会启动,且你需要通过以下方式手动执行数据库的初始化操作

# 在容器内执行
/usr/bin/python3 /scripts/init_spug.py

更多Dockerfile Dockerfile

详细安装步骤


   文档

Development 开发


   1. Clone code 克隆代码:
   $ git clone https://github.com/openspug/spug.git

   2. Start server 启动服务端:
   $ cd spug/spug_api
   $ pip install -r requirements.txt  //安装依赖包
   $ mv config.py.example config.py   //编辑配置文件
   $ python manage.py init_db         //初始化数据库
   $ python manage.py create_admin    //创建管理员
   $ python main.py                   //启动服务

   3. Start web  启动前端:
   $ cd spug/spug_web
   $ npm install
   $ npm run dev

   4. Visit 访问:
   $ http://$HOST:8080 (http://你的主机IP:8080 来访问 Spug)

前端单独使用


Spug项目前后端分离,支持前端单独运行,也支持后端单独运行。 如果你想单独基于前端项目开发自己需要的后台功能,那么可以访问前端独立出来的项目https://github.com/openspug/spug-vue-admin

Preview 预览


image image image image image

Docs 开发者文档


Contributor 贡献者


1.0.5

  • zyupo
  • Yooke

1.0.0

  • zyupo 项目发起者
  • Yooke Spug架构师、熟悉多种开发语言。
  • junun 部分功能开发
  • yuyc 部分功能开发

开发者群


QQ群号: 783951751

image

License & Copyright


MIT

MIT License Copyright (c) 2019 openspug Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

开源运维平台 展开 收起
Python
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/ifimgod/spug.git
git@gitee.com:ifimgod/spug.git
ifimgod
spug
spug
master

搜索帮助