Announcing the Dhall Containerfile type

We are happy to announce a new Dhall package to create Containerfile (or Dockerfile):

The dhall-docs output is also available here.

6 Likes

Do you have any experience reports to share? What kind of thing does this let you do, or make easier, compared with managing raw Dockerfile / Containerfile?

For a single Dockerfile it probably doesn’t make a ton of sense. I suspect the use case is more for generating lots of them out of variegated inputs.

We are using Dhall to manage a collection of containers which needs to share some common statements for CI purpose. Using direct Text interpolation is a bit error prone and that doesn’t compose well: e.g. should the common bits includes the CMD or ENV prefix? Also, having a common dhall-containerfile library let us re-use patterns such as a list of command separated by &&.