All Projects β†’ earthly β†’ Earthly

earthly / Earthly

Licence: other
Repeatable builds

Programming Languages

31211 projects - #10 most used programming language
7 projects
77523 projects
139335 projects - #7 most used programming language
299 projects
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Earthly

Build Harness
πŸ€–Collection of Makefiles to facilitate building Golang projects, Dockerfiles, Helm charts, and more
Stars: ✭ 236 (-95.93%)
Mutual labels:  build, build-automation, docker-images, build-tool, build-system
A cross platform build and deployment automation system for building projects and executing deployment scripts using C# code.
Stars: ✭ 695 (-88.03%)
Mutual labels:  build, build-automation, build-tool, build-system
Build system scripts based on GENie ( project generator
Stars: ✭ 30 (-99.48%)
Mutual labels:  build, build-automation, build-tool, build-system
Crazy rapid build system.
Stars: ✭ 24 (-99.59%)
Mutual labels:  build, build-automation, build-tool, build-system
A software engineer's workspace manager and build systems wrapper
Stars: ✭ 32 (-99.45%)
Mutual labels:  build, build-automation, build-tool, build-system
πŸš€ gowatch is a command line tool that builds and (re)starts your go project everytime you save a Go or template file.
Stars: ✭ 539 (-90.71%)
Mutual labels:  build, hacktoberfest, build-tool
CBT - fun, fast, intuitive, compositional, statically checked builds written in Scala
Stars: ✭ 489 (-91.58%)
Mutual labels:  build-automation, build-tool, build-system
Cargo Make
Rust task runner and build tool.
Stars: ✭ 895 (-84.58%)
Mutual labels:  build, build-automation, build-tool
Arduino Cmake Ng
CMake-Based framework for Arduino platforms
Stars: ✭ 123 (-97.88%)
Mutual labels:  build, build-tool, build-system
Node Build Monitor
A Build Monitor written in Node.js, which supports several build services and can be easily extended.
Stars: ✭ 336 (-94.21%)
Mutual labels:  build, hacktoberfest, build-tool
A tool for easy automating and customizing build process for Unity.
Stars: ✭ 80 (-98.62%)
Mutual labels:  build, build-tool, build-system
πŸ‘· The aim of this project is to help you to build your things. From Bootstrap themes over static websites to single page applications.
Stars: ✭ 171 (-97.05%)
Mutual labels:  build, build-automation, build-tool
Buildout is a deployment automation tool written in and extended with Python
Stars: ✭ 510 (-91.21%)
Mutual labels:  build, build-automation, build-tool
Ultra Runner
πŸƒβ›° Ultra fast monorepo script runner and build tool
Stars: ✭ 496 (-91.46%)
Mutual labels:  build, hacktoberfest, build-tool
An Electrifying Build System
Stars: ✭ 176 (-96.97%)
Mutual labels:  build, build-automation, build-tool
Software build automation tool for Python.
Stars: ✭ 1,290 (-77.78%)
Mutual labels:  build, build-automation, build-tool
Aria2 Build Msys2
aria2 build scripts on msys2 with custom patches.
Stars: ✭ 112 (-98.07%)
Mutual labels:  build, build-automation, build-tool
The Pantsbuild developer workflow system
Stars: ✭ 1,814 (-68.75%)
Mutual labels:  build-tool, build-system, build
Nginx Builder
A tool to build deb or rpm package of required Nginx version from the source code, with the ability to connect third-party modules. Nginx parameters are set in the yaml configuration file.
Stars: ✭ 123 (-97.88%)
Mutual labels:  build, build-automation, build-tool
Official Open Build Service Documentation. Content gets reviewed and edited. Generated books are available at
Stars: ✭ 26 (-99.55%)
Mutual labels:  build-automation, build-tool, build-system


GitHub Actions CI Join the chat on Slack Docs Website Install Earthly Docker Hub License BSL

🐳 Build anything via containers - build images or standalone artifacts (binaries, packages, arbitrary files)

πŸ›  Programming language agnostic - allows the use of language-specific build tooling

πŸ” Repeatable builds - does not depend on user's local installation: runs the same locally, as in CI

β›“ Parallelism that just works - build in parallel without special considerations

🏘 Mono and Poly-repo friendly - ability to split the build definitions across vast project hierarchies

πŸ’Ύ Shared caching - share build cache between CI runners

πŸ”€ Multi-platform - build for multiple platforms in parallel

🌍 Earthly is a build automation tool for the container era. It allows you to execute all your builds in containers. This makes them self-contained, repeatable, portable and parallel. You can use Earthly to create Docker images and artifacts (e.g., binaries, packages, arbitrary files).

Get Earthly

Table of Contents

Why Use Earthly?

πŸ” Reproduce CI failures

Earthly builds are self-contained, isolated and repeatable. Regardless of whether Earthly runs in your CI or on your laptop, there is a degree of guarantee that the build will run the same way. This allows for faster iteration on the build scripts and easier debugging when something goes wrong. No more git commit -m "try again".

🀲 Builds that run the same for everyone

Repeatable builds also mean that your build will run the same on your colleagues' laptop without any additional project-specific or language-specific setup. This fosters better developer collaboration and mitigates works-for-me type of issues.

πŸš€ From zero to working build in minutes

Jump from project to project with ease, regardless of the language they are written in. Running the project's test suites is simply a matter of running an Earthly target (without fiddling with project configuration to make it compile and run on your system). Contribute across teams with confidence.

πŸ“¦ Reusability

A simple, yet powerful import system allows for reusability of builds across directories or even across repositories. Importing other builds does not have hidden environment-specific implications - it just works.

❀️ It's like Makefile and Dockerfile had a baby

Taking some of the best ideas from Makefiles and Dockerfiles, Earthly combines two build specifications into one.

Where Does Earthly Fit?

Earthly fits between language-specific tooling and the CI

Earthly is meant to be used both on your development machine and in CI. It can run on top of popular CI systems (like Jenkins, Circle, GitHub Actions). It is typically the layer between language-specific tooling (like maven, gradle, npm, pip, go build) and the CI build spec.

How Does It Work?

In short: containers, layer caching and complex build graphs!

Earthly executes builds in containers, where execution is isolated. The dependencies of the build are explicitly specified in the build definition, thus making the build self-sufficient.

We use a target-based system to help users break up complex builds into reusable parts. Nothing is shared between targets other than clearly declared dependencies. Nothing shared means no unexpected race conditions. In fact, the build is executed in parallel whenever possible, without any need for the user to take care of any locking or unexpected environment interactions.

ℹ️ Note

Earthfiles might seem very similar to Dockerfile multi-stage builds. In fact, the same technology is used underneath. However, a key difference is that Earthly is designed to be a general-purpose build system, not just a Docker image specification. Read more about how Earthly is different from Dockerfiles.


See installation instructions.

To build from source, check the contributing page.

Quick Start

Here are some resources to get you started with Earthly

See also the full documentation.

Reference pages

A simple example (for Go)

# Earthfile
FROM golang:1.15-alpine3.13
RUN apk --update --no-cache add git
WORKDIR /go-example

  BUILD +lint
  BUILD +docker

  COPY main.go .
  RUN go build -o build/go-example main.go
  SAVE ARTIFACT build/go-example AS LOCAL build/go-example

  RUN go get
  COPY main.go .
  RUN golint -set_exit_status ./...

  COPY +build/go-example .
  ENTRYPOINT ["/go-example/go-example"]
  SAVE IMAGE go-example:latest
// main.go
package main

import "fmt"

func main() {
  fmt.Println("hello world")

Invoke the build using earthly +all.

Demonstration of a simple Earthly build

Examples for other languages are available in the examples dir.


πŸ“¦ Modern import system

Earthly can be used to reference and build targets from other directories or even other repositories. For example, if we wanted to build an example target from the repository, we could issue

# Try it yourself! No need to clone.
# Run the resulting image.
docker run --rm earthly/examples:go

πŸ”¨ Reference other targets using +

Use + to reference other targets and create complex build inter-dependencies.

Target and artifact reference syntax


  • Same directory (same Earthfile)

    BUILD +some-target
    FROM +some-target
    COPY +some-target/my-artifact ./
  • Other directories

    BUILD ./some/local/path+some-target
    FROM ./some/local/path+some-target
    COPY ./some/local/path+some-target/my-artifact ./
  • Other repositories

    COPY ./

πŸ’Ύ Caching that works the same as Docker builds

Demonstration of Earthly's caching

Cut down build times in CI through Shared Caching.

πŸ›  Multi-platform support

Build for multiple platforms in parallel.

    BUILD \
        --platform=linux/amd64 \
        --platform=linux/arm64 \
        --platform=linux/arm/v7 \
        --platform=linux/arm/v6 \

    FROM alpine:3.13
    CMD ["uname", "-m"]
    SAVE IMAGE multiplatform-image

β›“ Parallelization that just works

Whenever possible, Earthly automatically executes targets in parallel.

Demonstration of Earthly's parallelization

🀲 Make use of build tools that work everywhere

No need to ask your team to install protoc, a specific version of Python, Java 1.6 or the .NET Core ecosystem. You only install once, in your Earthfile, and it works for everyone. Or even better, you can just make use of the rich Docker Hub ecosystem.

FROM golang:1.15-alpine3.13
WORKDIR /proto-example

  FROM namely/protoc-all:1.29_4
  COPY api.proto /defs
  RUN --entrypoint -- -f api.proto -l go
  SAVE ARTIFACT ./gen/pb-go /pb AS LOCAL pb

  COPY go.mod go.sum .
  RUN go mod download
  COPY +proto/pb pb
  COPY main.go ./
  RUN go build -o build/proto-example main.go
  SAVE ARTIFACT build/proto-example

See full example code.

πŸ”‘ Cloud secrets support built-in

Secrets are never stored within an image's layers and they are only available to the commands that need them.

earthly set /user/github/token 'shhh...'
  RUN --push --secret GITHUB_TOKEN=+secrets/user/github/token github-release upload file.bin


How is Earthly different from Dockerfiles?

Dockerfiles were designed for specifying the make-up of Docker images and that's where Dockerfiles stop. Earthly takes some key principles of Dockerfiles (like layer caching), but expands on the use-cases. For example, Earthly can output regular artifacts, run unit and integration tests, and create several Docker images at a time - all outside the scope of Dockerfiles.

It is possible to use Dockerfiles in combination with other technologies (e.g., Makefiles or bash files) to solve such use-cases. However, these combinations are difficult to parallelize, challenging to scale across repositories as they lack a robust import system and also they often vary in style from one team to another. Earthly does not have these limitations as it was designed as a general-purpose build system.

For example, Earthly introduces a richer target, artifact and image referencing system, allowing for better reuse in complex builds spanning a single large repository or multiple repositories. Because Dockerfiles are only meant to describe one image at a time, such features are outside the scope of applicability of Dockerfiles.

How do I tell apart classical Dockerfile commands from Earthly commands?

Check out the Earthfile reference doc page. It has all the commands there and specifies which commands are the same as Dockerfile commands and which are new.

Can Earthly build Dockerfiles?

Yes! You can use the command FROM DOCKERFILE to inherit the commands in an existing Dockerfile.

  SAVE IMAGE some-image:latest

You may also optionally port your Dockerfiles to Earthly entirely. Translating Dockerfiles to Earthfiles is usually a matter of copy-pasting and making minor adjustments. See the getting started page for some Earthfile examples.

How is Earthly different from Bazel?

Bazel is a build tool developed by Google to optimize the speed, correctness, and reproducibility of their internal monorepo codebase. Earthly draws inspiration from some of the principles of Bazel (mainly the idea of repeatable builds), but it is different in a few key ways:

  • Earthly does not replace language-specific tools, like Maven, Gradle, Webpack, etc. Instead, it leverages and integrates with them. Adopting Bazel usually means that all build files need to be completely rewritten. This is not the case with Earthly, as it mainly acts as the glue between builds.
  • The learning curve of Earthly is more accessible, especially if the user already has experience with Dockerfiles. Bazel, on the other hand, introduces some completely new concepts.
  • Bazel has a purely descriptive specification language. Earthly is a mix of descriptive and imperative language.
  • Bazel uses tight control of compiler toolchains to achieve true hermetic builds, whereas Earthly uses containers and well-defined inputs.

Overall, compared to Bazel, Earthly sacrifices some correctness and reproducibility in favor of significantly better usability and composability with existing open-source technologies.


  • Please report bugs as GitHub issues.
  • Join us on Slack!
  • Questions via GitHub issues are welcome!
  • PRs welcome! But please give a heads-up in a GitHub issue before starting work. If there is no GitHub issue for what you want to do, please create one.
  • To build from source, check the contributing page.


Earthly is licensed under the Business Source License 1.1. See licenses/BSL and the Earthly BSL FAQ page for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].