Skip to content

Comment on Earthly – Makefile Meets Dockerfileparent

Comments

Except all the nice things from makefiles like actual rules are missing in this one. There must be a better way to do this. Isn't there a tool to actually incrementally build container layers in the normal file system that works with the real make or any other build system?

That sounds like Buildah (https://github.com/containers/buildah/blob/master/README.md).

Buildah can work with standard Dockerfiles, but it can also do a lot more. For example, you can mount the container filesystem, modify it (say using make), then use those updates as a new layer.

Bazel has a set of rules to do this AFAICT. The OCI format isn’t particularly complex, so it’s probably not hard to build something into Make or CMake or so on. (IMO Bazel has some of the best tools for abstraction and reuse in a build system, so it makes even more sense there.)

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.