Ei kuvausta

Akshay Mankar fd795b8dde WIP 6 vuotta sitten
defaults 504e5dc072 Fix type of Step in helpers 6 vuotta sitten
examples fd795b8dde WIP 6 vuotta sitten
helpers a468562f15 Add helpers to create composite steps 6 vuotta sitten
render 4fd5b9cf6f Render get and put steps properly 6 vuotta sitten
resource-types 34b4c6c7c7 Add package.dhall to types/ 6 vuotta sitten
resources db8c2fd699 Move defaults.dhall to defaults/package.dhall 6 vuotta sitten
types 7317d07c0b It doesn't work 6 vuotta sitten
utils be77fa95a7 Implent resourcesFromJobs for recursive Steps 6 vuotta sitten
README.md 2c9c6a8636 Create README 6 vuotta sitten

README.md

Dhall Concourse

Note: A lot of this README is inspired (some of it copied) from the dhall-kubernetes README, so thanks to the authors!

Dhall Concourse provides Dhall bindings for Concourse, so you can generate concourse pipelines from Dhall expressions. This will let you easily typecheck, template and modularize your Concourse pipelines.

Why do I need this?

There are a lot of issues one could face while building any non-trivial pipeline. Few them could be:

  1. Pipeline yaml becomes very big and unmanageable
  2. Same set of jobs are required to be run in different environments
  3. Same set of hooks but with slight changes in all jobs. E.g. slack notifications, releasing resources on failure, etc.

Most common way to deal with these have been to use a templating language like erb, but it gets very messy very fast. We can do a lot better.

Dhall solves all of this, being a programming language with builtin templating, all while being non-Turing complete, strongly typed and strongly normalizing (i.e.: reduces everything to a normal form, no matter how much abstraction you build), so saving you from the "oh-noes-I-made-my-config-in-code-and-now-its-too-abstract" nightmare.

For a Dhall Tutorial, see the readme of the project, or the full tutorial.

Prerequisites

You need a patched version of dhall for this which supports the type JSON and function toJSON : forall(a : Type) -> a -> JSON. It is implemented at https://github.com/akshaymankar/dhall-recursive-json. It can be installed using instructions in the README.

Examples

There are a few examples in the examples directory.