Logody - Docker-Compose for Regular Programs

Apr 16, 2018   •   Lyndon Maydwell

For a fun Friday afternoon’s hacking, I’ve put together a small program to bring the experience of Docker-Compose to regular programs!

This will allow you to quickly spin up a bunch of processes in parallel, aggregating their output into a single non-interfering stream:

It was inspired by how Docker-Compose handles the output of containers as they perform computation and output.

You can use it quickly with shell-string arguments:

logody “program1 args” “program2 args”

or via a config-file:

  process: uname
    - "-a"

  shell: "echo bar && sleep 1 && exit 1"
    - fail

  process: ./test/test.bash
    - succeed
    - fail

Some examples of what this might be useful for:

  • A config file in your project to spin up tensor-board and jupyter-notebook
  • A make rule to concurrently run tests and linting
  • A way to have a set of services running even after failure for development

Check out more information here!

Level 2
382 Little Collins Street
Melbourne VIC, 3000

Enter from McKillop Street

Contact us

(03) 9008 5922

Get the latest on machine learning and data science in your inbox each month