0.1.0 • Published 10 years ago

spinup-tarstreams v0.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

spinup-tarstreams

Spins up tar streams each in it's own docker container.

var path          = require('path')
  , dockerifyRepo = require('dockerify-github-repo')
  , spinup        = require('spinup-tarstreams')

var group = 'bmarkdown';

// we get a tar stream for each tagged release of thlorenz/browserify-markdown-editor
// and launch a docker container for each to be able to inspect multiple versions of it 
dockerifyRepo(
    'thlorenz/browserify-markdown-editor'
  , { dockerify: {  dockerfile: path.join(__dirname, 'Dockerfile') } }
  , function (err, streamfns) {
      if (err) return console.error(err);
      launch(group, streamfns)
  }
);

function launch(group, streamfns) {
  spinup(streamfns, { group: group, loglevel: 'verbose', container: { exposePort: 3000 } }, function (err, res) {
    if (err) return console.error(err);
    console.log('Started the following containers: ', res);
  });
}

full exampe

Installation

npm install spinup-tarstreams

API

generated with docme

License

MIT

0.1.0

10 years ago

0.0.1

10 years ago