Live data from Hacker News

Earthly – Makefile Meets Dockerfile

vladaionescu.com

1–10 of 18 posts

Re: Earthly – Makefile Meets Dockerfile

#5
This essentially looks like a Makefile where the tasks (targets) are run inside Docker containers. That is useful, I've definitely written Makefiles where tasks run in containers, and I wish it was easier.

But does this actually replace Bazel? Without language specific rules, like knowledge of dependencies, can it build a full dependency graph? If I have a monorepo with many packages, can Earthly build only what needs to be built, and always build what needs to be built?

Re: Earthly – Makefile Meets Dockerfile

#8

This essentially looks like a Makefile where the tasks (targets) are run inside Docker containers. That is useful, I've definitely written Makefiles where tasks run in containers, and I wish it was easier. But does this actually replace Bazel? Without language specific rules, like knowledge of dependencies, can it build a full dependency graph? If I have a monorepo with many packages, can Earthly build only what need…

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?

Re: Earthly – Makefile Meets Dockerfile

#10
post #9

That Dockerfile looks exactly like a multi-stage build Dockerfile, just with custom and non-standard syntax. Why NIH instead of simply adopting the already supported Dockerfile syntax of doing the same thing?

But isn't this file processed differently?
Post reply on HN