This feature is part of the Earthly Satellites paid plan.
If you are new to Earthly or to Earthly Cloud, you must:
- Download and Install Earthly. As Earthly Satellites is under active development, it is strongly recommended that you ensure that you have the very latest version of Earthly installed.On Linux, simply repeat the installation steps to upgrade to the latest version of Earthly, if you installed Earthly some time ago.On Mac, you can perform:brew updatebrew upgrade earthly/earthly/earthly
- Either create an Earthly organization, or ask your Earthly admin to add you to an existing organization. In order to be added to an existing Earthly organization you need to first create an Earthly account as described above. To verify that you are part of an organization you can run:earthly org lsYou should see an output similar to:/<org-name>/ member
Earthly Satellites allow Earthly to execute builds in the cloud seamlessly. You execute build commands in the terminal, like you always have (for example,
earthly +build), and Earthly takes care of running the build in the cloud in real time, instead of your local machine.
It uploads parts of your working directory, passes along any secrets, executes the build in the cloud while streaming the build log in real-time back to you, and then downloads the resulting build images and artifacts back to your computer.
When you are added to an Earthly organization, you get access to its satellites. To view the satellites currently available in the organization, you can run:
earthly sat ls
If you are part of multiple organizations, you may need to specify the organization name too:
earthly sat --org <org-name> ls
In order to start using satellites, you can select one for use. Selecting a satellite causes Earthly to use that satellite for any builds from that point onwards.
earthly sat select <satellite-name>
Any build performed after selecting a satellite will be performed in the cloud on that satellite. You will notice that the output of the build contains information about the satellite that is being used:
$ earthly +build
1. Init 🚀
Note: the interactive debugger, interactive RUN commands, and inline caching do not yet work on Earthly Satellites.
The following feature flags are recommended for use with Satellites and will be auto-enabled:
satellite | Connecting to core-test...
satellite | ...Done
satellite | Version github.com/earthly/buildkit v0.6.21 7a6f9e1ab2a3a3ddec5f9e612ef390af218a32bd
satellite | Info: Buildkit version (v0.6.21) is different from Earthly version (prerelease)
satellite | Platforms: linux/amd64 (native) linux/amd64/v2 linux/amd64/v3 linux/amd64/v4 linux/arm64 linux/riscv64 linux/ppc64le linux/s390x linux/386 linux/mips64le linux/mips64 linux/arm/v7 linux/arm/v6
satellite | Utilization: 0 other builds, 0/12 op load
satellite | GC stats: 9.0 GB cache, avg GC duration 275ms, all-time GC duration 2.754s, last GC duration 0s, last cleared 0 B
To go back to using your local machine for builds, instead of the satellite, you can unselect the satellite by running:
earthly sat unselect
If a satellite is not currently selected, you can still use it for a specific build by using the
earthly --sat <satellite-name> +build
Conversely, if a satellite is currently selected, you can choose to use the local machine for a specific build using the
earthly --no-sat +build
As satellites run the execution in the cloud, behind the scenes, they require upload of the current directory contents that may be needed as part of the build, and download of the results of the build. This is performed automatically by Earthly, however, if the file transfers are large and/or if the network bandwidth is low, the performance impact can be noticeable.
Oftentimes, you will find that running a build with the flag
--no-outputexecutes significantly faster. This flag disables downloading the build results from the satellite at the end of a build.
--no-outputflag can still be combined with
--push, thus allowing Earthly Satellites to be used as a highly performant deployment tool.