remind101 / conveyor

A fast build system for Docker images.
http://engineering.remind.com/introducing-conveyor/
BSD 2-Clause "Simplified" License
221 stars 24 forks source link

Add worker subcommand. #22

Closed ejholmes closed 8 years ago

ejholmes commented 8 years ago

This is just a little prep for the SQS BuildQueue implementation. Conveyor now has two subcommands:

  1. conveyor server: Only runs the http server that enqueues build requests.
  2. conveyor worker: Runs a configurable number of workers (defaulting to runtime.NumCPU) that will pop jobs from the build queue and perform the build using a docker daemon.

Invoking conveyor without any subcommands will yield the previous behavior and start both the server and the workers.

There's also a --queue flag now, but the only option available is memory://.

After the SQS implementation is added, this will allow you to split Conveyor apart using a setup like this:

benguillet commented 8 years ago

:+1: