Install

There are two install options:

Download the binary

Binaries are available for Linux, OSX, and Windows. Download a binary from github.com/dnephin/dobi/releases

Install from source

git clone git@github.com:dnephin/dobi && cd dobi
docker run -ti --rm -w $(pwd) -v $(pwd):$(pwd) -e DOCKER_HOST \
    -v /var/run/docker.sock:/var/run/docker.sock \
    dnephin/dobi:0.11 deps binary

The binaries will be in ./dist/bin

Overview

To run a task use the name of the resource from the dobi.yml config. For example to run a job=test resource:

dobi test

Each resources has a default action which creates the resource, and multiple actions to manage and remove the resource. To remove a resource use the :rm action:

dobi test:rm

Usage

$ dobi --help
A build automation tool for Docker applications

Usage:
  dobi [flags] RESOURCE[:ACTION] [RESOURCE[:ACTION]...]
  dobi [command]

Available Commands:
  autoclean   Run the remove action for all resources
  list        List resources

Flags:
  -f, --filename string   Path to config file (default "dobi.yaml")
      --no-bind-mount     Provide mounts as a layer in an image instead of a bind mount
  -q, --quiet             Quiet
  -v, --verbose           Verbose
      --version           Print version and exit

Use "dobi [command] --help" for more information about a command.