Code Monkey home page Code Monkey logo

swarmui's Introduction

GoDoc travis

swarmui (state = between pet project and alpha)

Swarm UI is a toolkit with an Api (REST), a WebUI and a autoscaling service for Docker/Docker Swarm

The api use docker compose file to describe services for a project

Two autoscaling type : - By node number of contianer of your service = number of node (nice for logging, monitoring, etc) - By CPU consumption with the limit to scale up and down (eg: 15% - 70%) and the min and max containers

I spent a few hours on this project (i don't have a lot a spare time), it's a pet project. So yes the code is ugly, yes i didn't use redux with react, yes the webui is ugly as hell. But it's just the beginning so please be gentle and if something is too ugly for you, you can just contribute it ;)

#screenshots

Alt text Alt text Alt text Alt text

#Run with docker

  • launch etcd https://coreos.com/etcd/docs/latest/docker_guide.html
  • docker run -it -p 8080:8080 -e SWARMUI_KV_HOST="IP_ETCD:4001" -e SWARMUI_KV_STORE=etcd -v /var/run/docker.sock:/var/run/docker.sock jfdamy/swarmui /swarmui s
  • docker run -it -e SWARMUI_KV_HOST="IP_ETCD:4001" -e SWARMUI_KV_STORE=etcd -v /var/run/docker.sock:/var/run/docker.sock jfdamy/swarmui /swarmui a

#Run the api and the webui

  • run npm run build in webui directory
  • export SWARMUI_KV_STORE=etcd (etcd, consul, zk)
  • export SWARMUI_KV_HOST="192.168.64.2:4001"
  • swarmui need DOCKER env var to connect to the docker daemon or docker swarm
  • go build
  • ./swarmui s for the REST API and WebUI
  • ./swarmui a for the autoscaling service

#Dependencies

  • Use libcompose to handle docker compose files of your projects
  • Use etcd or consul or zk (use libkv of docker) to store docker compose files of your projects
  • Docker or Docker Swarm obviously

#TODO

  • Produce some Documentation
  • Load Balancer for services
  • Job scheduler
  • A version of the api and the bus event in proto buf, thrift, ... (i don't know yet)
  • Cleanup a litle bit the source code

swarmui's People

Contributors

jfdamy avatar

Stargazers

 avatar Konstantinos Faliagkas avatar Oleksandr Chyrko avatar Michael Herman avatar Chew Chit Siang avatar  avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

zhangpeihao

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.