Questions tagged [earthly]

Questions about Earthly builds and about Earthfile build scripting.

8 questions
2
votes
2 answers

How to avoid installing jq/docker into container running inside of WITH DOCKER block?

I build JVM-based project and would like to have an Earthly target with integration steps similar to this one using WITH DOCKER ... END syntax. WITH DOCKER command is needed to have a real database instance available in the context of integration…
Kirill
  • 6,762
  • 4
  • 51
  • 81
2
votes
1 answer

How to COPY files from outside of the Earthfile's directory?

Suppose I have a monorepo. Apps (app1, app2) use a Gradle as a build system and share some build-logic with includeBuild("../shared-build-logic") which is outside of the root of each app. ├── shared-build-logic │   └── src/... └── app1 ├──…
Kirill
  • 6,762
  • 4
  • 51
  • 81
2
votes
1 answer

Is it possible to build a dynamic list of targets with Earthly

I've been considering the Earthly build automation tool as a replacement for Make in my project. I have a mono repo with a root Makefile, that has a target that scans for subfolders with Makefiles, and builds those with make -C…
mhvelplund
  • 2,099
  • 3
  • 22
  • 38
1
vote
0 answers

"failed to compute cache key: failed to get state for index" error on earthly build on persistent CI node

My CI executes the following steps in sequence: earthly +compile (first make the code compiles) earthly --push +package-and-containerize-all (package to containers and push to registry) The Earthfile code for targets looks like…
Kirill
  • 6,762
  • 4
  • 51
  • 81
1
vote
1 answer

Setting GOOGLE_APPLICATION_CREDENTIALS for Earthly target

I recently started working with the Earthly framework for our CI/CD pipelines. My previous pipelines were based on docker and had the following bootstrapping: docker run \ -e GOOGLE_APPLICATION_CREDENTIALS \ -v…
1
vote
1 answer

Self Signed Certificates in Earthly

I wanted to use earthly on corporate network that uses SSL probing that issues self-signed certificates. I have custom ca-cert pem file, which I have been using successfully with other tools and toolchains like python, curl, etc. I am not able to…
Martin Macak
  • 3,507
  • 2
  • 30
  • 54
0
votes
0 answers

Can Earthly targets access services running on docker host or in other containers on the same docker engine?

Using pure Docker I can use --network cli argument to make it possible for container to access something running either on 0.0.0.0 of Docker host or on some other named network within the same docker engine. Can Earthly targets access services…
Kirill
  • 6,762
  • 4
  • 51
  • 81
0
votes
1 answer

How to build an image from Dockerfile using Earthly target?

I would like to build and image from Dockerfile using Earthly. You might be wondering why do I want that, because I can describe images right inside of Earthfile, but I have 2 reasons for using external Dockerfile: ADD command (which I need to…
Kirill
  • 6,762
  • 4
  • 51
  • 81