GithubHelp home page GithubHelp logo

seveneng / core-container-manager Goto Github PK

View Code? Open in Web Editor NEW

This project forked from me-box/core-container-manager

0.0 1.0 0.0 4.48 MB

The databox container manger

License: MIT License

JavaScript 89.38% CSS 3.57% HTML 7.06%

core-container-manager's Introduction

Databox Container Manager

Databox container manager and dashboard are the part of the databox platform. see the main repository for more information.

For developing Databox core components - Container Manager (CM) exposes following functions:

  1. setHttpsHelper(helper): this function provides a https-agent with Databox root certificate, so that arbitor accepts requests by the https-agent.
  2. install(sla): start a app/driver service as a docker container.
  3. uninstall(service): remove the running service docker container.
  4. restart(container): restart the container.
  5. connect(): this function checks if CM can connect to docker.
  6. listContainers(): this list all Databox componentn containers.
  7. generateArbiterToken(name): this function generates token to be passed to arbitor for the service.
  8. updateArbiter(data): this function updates arbitor endpoint:/cm/: upsert-container-info using post 'data'
  9. restoreContainers(slas): this function restores containers by relaunching them by their sla's.
  10. getActiveSLAs(): this function gives all SLA's registered in the SLA - database.

CM SLA database functions

  1. getSLA(name): find sla with name in ./slaStore/sladatastore.db
  2. getAllSLAs: list all slas in ./slaStore/sladatastore.db
  3. putSLA(name, sla): put sla with name in ./slaStore/sladatastore.db
  4. deleteSLA(name): delete sla with name from ./slaStore/sladatastore.db

CM network functions using docker network

  1. createNetwork(networkName, external): this function creates a docker network with name networkName and boolean type external variable. If external is true, it means external excess to the network is allowed.
  2. connectToNetwork(container, networkName): this function connects a container to the docker network -networkName
  3. disconnectFromNetwork(container, networkName): this function disconnects a container from the docker network - networkName

core-container-manager's People

Contributors

dominicjprice avatar haddadi avatar jzstark avatar ktg avatar pooyadav avatar seveneng avatar toshbrown avatar yousefamar avatar

Watchers

 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.