0.0.29 • Published 8 years ago
docker-remote v0.0.29
DockerRemote
Wrapper for the Docker remote API and CLI.
Usage
DockerRemote = require("docker-remote")
var container = {
name: "sidekick",
build: "bin/build",
run: "bin/sidekick",
env: { ENV: "production" },
git: "git@github.com:winton/sidekick.git#release",
repo: "quay.io/winton/sidekick"
};
var args = new DockerRemote.Args(container);
args.cliParams(); // parameters for CLI
args.apiParams(); // parameters for Docker Remote API
var container = new DockerRemote.Container(container);
container.run(); // run container through remote API
container.rm(); // remove container throught remote API
var image = new DockerRemote.Image(container);
image.build(); // build image through CLI
image.create(); // download image through remote API
Options
The container object has the following possible keys:
build
- The command to run within the Docker container after building the image, before pushing (optional).dockerfile
- The directory to discover the Dockerfile (optional).env
- Object containing environmental variables (optional).git
- A git repository URL string (optional).name
- The name of the container (required).ports
- An array of port strings in "host-port:container-port" format (optional).repo
- The Docker repository to push to on build (optional).run
- The command to run within the Docker container (optional).tags
- An array of tags to use when pushing the image (required).volumes
- An array of volume strings in "host-dir:container-dir:rw|ro" format (optional).
Dev setup
npm install
Docs
node_modules/.bin/codo lib
open doc/index.html
0.0.29
8 years ago
0.0.28
8 years ago
0.0.27
8 years ago
0.0.26
8 years ago
0.0.25
8 years ago
0.0.24
8 years ago
0.0.23
8 years ago
0.0.22
8 years ago
0.0.21
8 years ago
0.0.20
9 years ago
0.0.19
9 years ago
0.0.18
9 years ago
0.0.17
9 years ago
0.0.15
9 years ago
0.0.14
9 years ago
0.0.13
9 years ago
0.0.12
9 years ago
0.0.11
9 years ago
0.0.10
9 years ago
0.0.9
9 years ago
0.0.8
9 years ago
0.0.7
9 years ago
0.0.6
9 years ago
0.0.5
9 years ago
0.0.4
9 years ago
0.0.3
9 years ago
0.0.2
9 years ago
0.0.1
9 years ago