← All Articles

Introducing Trackman. Execute commands as a workflow.

Khash SajadiKhash Sajadi
Oct 8th 19Updated Jun 17th 21
Open Source

introducing-trackman-execute-commands-as-a-workflow

Today we are officially open-sourcing Trackman, the execute-commands-as-a-workflow tool we built for ourselves and Cloud 66 Skycap.

What is Trackman?

Trackman is a command-line tool and Go library that runs multiple commands in a workflow. It supports parallel steps, step dependencies, async steps, and success checkers.

Why do I need Trackman?

Most of us are familiar with Bash (or other shell) scripts: a simple way to run commands in order. Bash, as a scripting language is a powerful and flexible way to do almost anything you want in Linux. On Windows, this is true for PowerShell scripts.

When deploying our applications to Kubernetes, we often find ourselves running command sequences like this:

  1. Run helm install
  2. Wait for the installation to complete successfully
  3. Run kubectl apply -f some_file.yml
  4. Wait for it to successfully start the application
  5. Run some migration job, like a database schema migration.

While putting all these commands in a Bash script is possible, we can observe a pattern here: run a command, check to see it's done right, move on to the next step.

Trackman is a way to just do that: run commands, check they ran fine, run the next step.

If you want some more complex workflows, Trackman can run steps in parallel, define dependencies between them (A depends on B and C's successful completion), run some "pre-flight" checks before running a step and some more.

How do I use Trackman?

Trackman can run as a single executable on Linux, Mac or Windows without any dependencies. It can also be used as a library in a Golang project if you would like to add its functionality to another tool you are building. To learn more about Trackman you can checkout Trackman repository or watch our Trackman pre-release webinar:

What's next?

We currently use Trackman to simplify Cloud 66 Skycap deployments. Trackman is also integrated into Cloud 66 Toolbelt. In the future, Trackman will add support for Notifiers (to notify an external entity of a step's run progress) and re-tries and more. In the meantime, please check it out and feel free to PR!


Try Cloud 66 for Free, No credit card required