Skip to content

alairock/ncker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ncker

Node Docker in code runner.

Couldn't find one that was as simple as this. Make sure docker is installed, and that the image you are going to use has been pulled in.

Example:

var ncker = require('./index');

ncker.run({
    image: "iojs",
    ports: ["8080:8080", "21:21"],
    volumes: [
        "/var/www/somesite.dev:/var/www/somesite.dev",
    ],
    command: "npm install",
    workingdir: "/var/www/somesite.dev",
    detached: true,
    name: "npm_installer",
    dnshost: "iojs.somesite.dkr"
});

About

Node Docker in code runner.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages