JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 11
  • Score
    100M100P100Q39723F
  • License MIT

Combination of arpanet and mdock for a viking docker cluster

Package Exports

  • vdock

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vdock) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

vdock

A combination of arpanet and mdock.

vdock is the core code for the viking master but without the opinionated PaaS parts around it.

install

$ npm install vdock

usage

var http = require('http')
var vdock = require('vdock')

var options = {
    ip:'192.168.8.120',
    hostname:'node1',
    masters:'192.168.8.120,192.168.8.121,192.168.8.122',
    dockerport:2375,
    masterport:8791,
    etcdport:4001,
    etcdpeerport:7001,
    etcdpath:'/arpanet'
}

var master = vdock.master(options)

// we can customize using the master.router (which is a routes-router)
master.router.addRoute('/my/custom/route', function(req, res){

})

// server is now a (mostly) docker compatable HTTP endpoint
var server = http.createServer(master.router)
server.listen(options.masterport)


// this is how non-master nodes are registered onto the network
var slave = vdock.slave(options)
slave.join(options)
slave.leave()

// you can also grab the etcd client
var etcd = vdock.etcd(options)

license

MIT