Settings

Theme

Earthly – Makefile Meets Dockerfile

vladaionescu.com

67 points by scg 6 years ago · 17 comments

Reader

antoncohen 6 years ago

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?

  • riedel 6 years ago

    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?

    • cpitman 6 years ago

      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.

    • wwright 6 years ago

      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.)

kesor 6 years ago

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?

hartzell 6 years ago

> But most importantly, all builds are completely reproducible.

This is only true if the commands that the recipe executes are reproducible. If someone's pulling packages from PyPi or C[PR]AN or ... w/out locking the versions, all bets are off.

This is one of my biggest beefs with many containerization sales pitches...

randallsquared 6 years ago

> A familiar Dockerfile-like syntax is used, [...]

Oh, no. Another slightly different format? :/

curryhoward 6 years ago

This looks a lot like Toast: https://github.com/stepchowfun/toast

folmar 6 years ago

I strive to see a selling feature in comparison to gitlab-ci... Mixing its syntax with docker is only so little.

samsquire 6 years ago

Dockerfiles in YAML

jlelse 6 years ago

Looks nice

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection