Giter Site home page Giter Site logo

systemime / vbox Goto Github PK

View Code? Open in Web Editor NEW
11.0 2.0 2.0 33.8 MB

基于k8s和django的快速生成容器的平台,支持webssh与webvnc连接,需要安装guacamole服务,Cloud platform based on kubernetes and django, supports webssh and webvnc

Python 99.83% PHP 0.01% Shell 0.01% SCSS 0.02% Less 0.14%
kubernetes celery rabbitmq webssh guacamole vnc docker django vbox k8s

vbox's Introduction

FastVbox

Cloud platform based on kubernetes and django, supports webssh and webvnc

Need to build redis, rabbitmq, mysql and guacamole services

重构ing,django3.2预计发布的异步ORM很香,目前用django3.1重构了一部分,坐等django3。2正式发布 Django 3.2 does not release an asynchronous ORM, and sqlalchemy only has experimental features. Wait a minute, an asynchronous version may be refactored

测试需要安装guacad服务,主要功能已完成,其他功能暂不更新

开启celery

nohup celery -A Vbox worker -l info -P eventlet > logs/celery_worker.log 2>&1 &
nohup celery -A Vbox beat -l info > logs/celery_beat.log 2>&1 &

  • install
    pip install celery
    pip install redis
    # 或者是直接:pip install "celery[redis]"
    pip install mysqlclient
    # 非必须,默认Celery是不保存任务结果的,如果想要查看任务的结果并且保存到数据库中,就必须安装该依赖,如果不想保存到数据库的话,也可以使用Redis来进行保存
    # pip install django-celery-results
    # if use
    # INSTALLED_APPS = (
    #     ...,
    #     'django_celery_results',
    # )
    # python manage.py migrate django_celery_results
    

缓存

Redis

  • session
  • 容器创建缓存读写
  • bash页面头像等

消息队列

  • RabbitMQ 要在较新的Ubuntu版本上安装它非常简单:

    apt-get install -y erlang
    apt-get install rabbitmq-server
    
  • 然后启用并启动RabbitMQ服务:

    systemctl enable rabbitmq-server
    systemctl start rabbitmq-server
    
  • 检查状态以确保一切运行顺利:

    systemctl status rabbitmq-server
    

vbox's People

Contributors

systemime avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

vbox's Issues

README

README看的一脸懵逼。到最后也不知道怎么才能启动。

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.