0.0.29 • Published 9 years ago

docker-remote v0.0.29

Weekly downloads
168
License
-
Repository
github
Last release
9 years ago

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

9 years ago

0.0.28

9 years ago

0.0.27

9 years ago

0.0.26

9 years ago

0.0.25

9 years ago

0.0.24

9 years ago

0.0.23

9 years ago

0.0.22

9 years ago

0.0.21

9 years ago

0.0.20

10 years ago

0.0.19

10 years ago

0.0.18

10 years ago

0.0.17

10 years ago

0.0.15

10 years ago

0.0.14

10 years ago

0.0.13

10 years ago

0.0.12

10 years ago

0.0.11

10 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago