0.0.1 • Published 12 years ago

docker-wait v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
12 years ago

Docker Wait

A node.js binary to that blocks until a regex match has been made with docker logs output

The intended use is in bash files for server deployment where you want to ensure that a docker container has fully loaded before removing an old container

Must be run as root (in order to ready docker logs)

###Installation

    npm install -g docker-wait

###Usage

    docker-wait [path-to-config-file.json|coffee|js]

###Config File

The binary blocks until the regex match has been with ALL listed containers

    {
      timeout: 30, // number of seconds to wait before exiting with error

      logOutput: true, // send the docker logs output to cli
      containers: {

        'container_name': /match this/g,
        'another_container_name': /Lisening on port \d{4}/
      }
    }

Copyright Campbell Morgan 2014

All Pull Requests welcome

Licence MIT

0.0.1

12 years ago