0.2.1 • Published 10 years ago
dockops v0.2.1
dockops
docker convenience functions on top of dockerode
Table of Contents generated with DocToc
var dockops = require('dockops')
var docker = dockops.createDocker({ dockerhost: dockerhost });
var images = new dockops.Images(docker);
dockops.logEvents(images, 'verbose');
var containers = new dockops.Containers(docker);
dockops.logEvents(containers, 'verbose');
build('test:uno', testUnoTar, function () {
build('toast:uno', toastUnoTar, function () {
containers.run(.. // run test:uno and toast:uno containers
containers.listRunning(function (err, res) {
inspect(res);
containers.stopRemoveGroup('test', function (err, res) {
containers.listRunning(function (err, res) {
inspect(res);
http.request({ port: 49222 }, function (res) {
console.log('--------------------------')
inspect({ status: res.statusCode, headers: res.headers })
res.pipe(process.stdout)
}).end()
})
})
})
})
})
Installation
npm install dockops
API
generated with docme
License
MIT