I had a question, which basically was just a mirror of an issue previously asked:
I find the syntax of Earthfiles really appealing, and the re-usability/composability aspect of being able to reference other files. I'm not super familiar with Docker internals, but when it comes to copying artifacts, like binaries or static assets, isn't that the same as the
COPY command or using the multi-stage build in Docker?
Often times I find myself needing multiple languages in a Docker project to compile binaries, which then just get copied over as an asset, and I was wondering if there were some unique features that Earthly had compared to Docker with this.
v0.2.0is out! Includes some fixes related to "out of disk space" error, renames
Earthfile, introduces a config file and many other goodies. Full details on the releases page: https://github.com/earthly/earthly/releases/tag/v0.2.0
v0.3is out! It includes a new interactive mode (
-i) where it drops you in a shell if the build fails. It also adds support for Dockerfiles (
FROM DOCKERFILE). Mac builds are now almost 3x faster (!!). And many other goodies! https://github.com/earthly/earthly/releases
Hi Earthly team!
Question - what's the earth/earthly philosophy around conditional logic for specific commit refs? Do I just have conditional logic in my CI?
I do realize that I could just have a separate target that publishes assets, like for docker assets I could invoke
SAVE IMAGE and have a separate
publish target where I invoke
SAVE IMAGE --push ....
I'm curious how the earthly team recommends I accomplish this with earth. If possible, I'd like as little logic in my CI as possible.
@vladaionescu got it working :)
one interesting thing I noticed / is expected: I packaged my application as a .deb and installed it into the openjdk-8 debian image, and now I essentially have an image twice the size, as the docker layer has my .deb and the results of installation. Is there a trick in earthly to either copy and install my .deb in one line (to avoid the duplicate layers) or to squash layers?
I believe I found a bug with the
EARTHLY_SECRETS env var: earthly/earthly#229
lmk if i'm just doing it wrong, thanks.
v0.3.2is out! Bash autocomplete, new syntax for docker operations (
WITH DOCKER), support for generated dockerfiles and a number of bug fixes. More info here https://github.com/earthly/earthly/releases/tag/v0.3.2
v0.3.5is out! It features target aware completion for bash and zsh and a couple bug fixes. More details here https://github.com/earthly/earthly/releases/tag/v0.3.5
any ideas why this might happen?
ERROR: (helper image for fake dep operations) failed to authorize: failed to fetch anonymous token: context canceled
Error: solve side effects: solve: failed to solve: rpc error: code = Canceled desc = failed to load cache key: failed to authorize: failed to fetch anonymous token: context canceled