GithubHelp home page GithubHelp logo

wangguanxiaoer / cmdb-2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lancger/cmdb

0.0 0.0 0.0 10.94 MB

django, webssh, websftp, docker 容器管理, web => xshell (从CMDB网页直接跳转到Xshell终端)

License: Other

Shell 0.13% Python 84.90% HTML 5.64% CSS 9.33%

cmdb-2's Introduction

cmdb

996.icu LICENSE

项目本来是叫webssh,去年那时只从CMDB中提取webssh功能,这次加了些功能后就干脆叫cmdb算了。

  • 特色:

      基于django、python2.7开发,部署简单。
      1. 本项目功能实用/通用。为方便阅读理解,代码备注详细,适合将代码/功能集成到各自系统中二次开发,也很适合新手学习/入门。
      2. webssh终端,该有功能基本都有,websocker基于django的channels模块,和http在同一监听端口,减少模块依赖安装
      3. websftp文件操作,基于elfinder,上传下载,在线图片预览、文本编辑,文本语法高亮着色(基于ace编辑器)
      4. 软件终端(SSH透明堡垒机),支持从网页跳转到Xshell,比webssh/sftp更方便,需文件操作时可以从Xshell启动Xftp进行
      如果客戶端是Linux系統,跳转到SecureCRT和FX。
      5. docker管理,支持跨多宿主机管理容器,支持创建二层容器网络(二层桥接和macvlan,
      相当于使容器网卡和所属宿主机网卡接在同一交换机上,而不跨路由/NAT),
      容器创建好后无需映射端口到宿主机而可供其它主机/跨宿主机容器访问,详情帮助见 根目录\c\help\docker\docker二层网络.txt
      6. Elasticsearch索引管理
      7. 支持otp二维码验证登陆
    
  • 环境:

      centos6/7
      python2.7
    
  • 搭建:

      一. 容器部署方式(推荐,如果是生产方式,建议在外部部署使用mysql、redis)
      # 拉取镜像(基于centos7创建,pull下载169.2M)
      docker pull py2010/cmdb
      # 启动容器,部署完成
      docker run -it -p 8088:8088 -p 2222:2222 py2010/cmdb
      (如果为便于git更新,项目代码放在宿主机上的/xxx/xxx,加 -v /xxx/xxx:/kf/dj 参数挂载目录)
      二、如果不使用容器,手工部署也很简单,requirements.txt中写得比较详细,
      准备centos6或7(估计unbuntu也行,没实际布署测试过),
      python2.7安装requirements.txt中的模块,安装redis。
      下载项目代码,在项目根目录执行c/d start启动django网站。
      
      容器或centos系统布署并启动好了后, 访问网页,http://ip:8088,用户名/密码:admin/admin@2019
    

顺便建了个群,欢迎加入

  • QQ群号 972746120 django开发交流
  • django开发交流

截图:

  • 软件终端 xshell

  • 主机列表

  • 网页SFTP (在线文本编辑) websftp

  • 网页SFTP (图片预览) websftp

  • 网页终端 vi

  • 容器添加

  • 容器管理列表

  • 容器终端(webssh)

  • 镜像管理列表

  • 容器网络列表

  • 容器网络添加(支持二层网络)

感谢:

webssh、websftp项目,借签 jimmy201602/webterminal

License

LGPL2.1 996

cmdb-2's People

Contributors

gaff2016 avatar py2010 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.