PROVIDER - Containerised reproducible builds
Earthly
Earthly is a containerised reproducible build tool describing steps in 1 Earthfile and running them in containers so local and CI match, with layer caching typically saving 50% or more and 5 or more pipeline integrations; the gaps are learning cost and ecosystem size.
4pts
Detailed Notes
Pros 5 items
Cons 4 items
Service Overview
Earthly is a Go-based build tool that writes build steps into an Earthfile and runs them inside containers, sharing one build definition between laptops and CI.
In the development tools category it is the next-generation build tool: lighter than Bazel, heavier than Make, focused on reproducibility and cache sharing.
Key Strengths
- Reproducible: builds run in containers
- Cache reuse: layers shared across machines
- Single definition: 1 Earthfile for local and CI
- Broad integrations: 5 or more pipeline platforms
- Free and open: MPL-2.0 licence
Product Ecosystem
Platform capabilities
Earthfile syntax, containerised execution, target dependency graphs, local and remote caching, satellite execution and Makefile interoperability.
Integrations
Works with GitHub Actions, GitLab CI, CircleCI, Jenkins and Buildkite, and fits Docker and Kubernetes build chains.
Typical scenarios
Multi-language monorepo builds, local and CI consistency, image building and pushing and complex dependency orchestration.
Limitations
- Learning curve: new syntax and model
- Extra setup: remote caching needs infrastructure
- Ecosystem size: smaller community than Bazel
- Complexity: dependency graphs grow in huge repos
Use Cases
- High local-to-CI parity needs (★★★★★): the core value
- Multi-language monorepos (★★★★☆): one build entry point
- Minimal script builds (★★☆☆☆): may be too heavy
- Existing Bazel setups (★★☆☆☆): limited gain
Pricing
| Item | Price | Notes |
|---|---|---|
| Earthly CLI | $0 | MPL-2.0, free and open source |
| Satellites | Usage based | Remote cache and parallel execution |
| Managed CI | Subscription | Integrated with code hosting |
FAQ
Does it need Docker?
Local runs need a container runtime, with Docker or Podman recommended.
Can it replace Make?
It covers builds and images while still able to call Make as a step.
How is caching shared?
Remote caching or satellites reuse layers across machines.
Does it support Windows?
Mainly through WSL or container environments.
Code Examples
# Earthfile
VERSION 0.8
FROM golang:1.22-alpine
WORKDIR /src
deps:
COPY go.mod go.sum ./
RUN go mod download
SAVE ARTIFACT go.mod AS LOCAL go.mod
build:
FROM +deps
COPY . .
RUN go build -o /out/app ./cmd/app
SAVE ARTIFACT /out/app AS LOCAL build/app
docker:
FROM alpine:3.20
COPY +build/app /usr/local/bin/app
ENTRYPOINT ["/usr/local/bin/app"]
SAVE IMAGE demo/app:latest
# Run targets and push the image
earthly +build
earthly +docker --push
# Use remote caching
earthly --remote-cache=registry.example.com/cache +build
Community & Resources
- Website: https://earthly.dev/
- Documentation: https://docs.earthly.dev/
- Source repository: https://github.com/earthly/earthly
Articles
- 01 GitLab CI/CD Best Practices: From Beginner to Production-Grade Pipelines 07-18
- 02 Prometheus Monitoring System Setup: From Metric Collection to Alert Notifications 07-18
- 03 Ansible Automation Ops Guide: From Configuration Management to Application Deployment 07-18
- 04 Docker Beginner Tutorial: From Installation to Containerized Web Deployment 07-18
- 05 API Integration Guide: REST vs GraphQL Comparison and Selection 07-18
- 06 GitHub Actions CI/CD Tutorial: Automated Build, Test, and Deployment 07-18
- 07 Docker Compose Multi-Container Deployment: Building Complete Application Orchestration 07-18
- 08 Kubernetes Deployment Guide for Beginners: Building a K8s Cluster from Scratch 07-18
- 09 Best VS Code Extensions 2026: Boost Your Development Productivity 07-18
- 10 Frontend Toolchain 2026: Vite / Next.js / Tailwind CSS Ecosystem 07-18