1.1.0 • Published 7 years ago

docker-compose-client v1.1.0

Weekly downloads
1
License
MPL-2.0
Repository
github
Last release
7 years ago

docker-compose-client

License: MPL 2.0 npm standard-readme compliant

Server that exposes CloudApi through GraphQL.

Table of Contents

Install

yarn add docker-compose-client

Server

build

λ git clone git@github.com:yldio/docker-compose-api.git
λ cd docker-compose-api
λ docker build -t docker-compose-api .

run

local:

λ docker run -p 4242:4242 -d docker-compose-api

remote:

λ docker run \
-v "/local/path/to/docker/cert":"/usr/src/cert" \
-e DOCKER_CERT_PATH=/usr/src/cert \
-e DOCKER_HOST="http://us-sw-1.docker.joyent.com:2376" \
-e DOCKER_CLIENT_TIMEOUT=300 \
-e COMPOSE_HTTP_TIMEOUT=300 \
-p 4242:4242 \
-d \
docker-compose-api

Usage

const client = new DockerComposeClient();

client.provision({
  projectName: 'docker-compose-client',
  manifest: `
    hello:
      image: hello-world:latest
    world:
      image: consul:latest
    node:
      image: node:latest
  `
}, (err, res, more) => {
  // can be called multiple times, check 'more' if that is the case
});

License

MPL-2.0

1.1.0

7 years ago

1.0.9

7 years ago

1.0.7

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago