You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 22, 2023. It is now read-only.
This issue is specific to Gradle builds with Batect.
The documentation should mention using the --no-daemon flag for running Gradle in batect.yml. Several reasons:
There is no point in spinning up a daemon for a Docker ephemeral container
With a daemon, the Docker container's Gradle may be confused by ~/.gradle/daemon and /.gradle/workers directories, as these refer to processes in the host, not the container
If you encounter troubles, run locally ./gradlew --stop to kill any local daemons: This indicates a bug, and "stop" is a workaround
The text was updated successfully, but these errors were encountered:
Presently, both Gradle and Maven builds with Batect (build-gradle and build-maven, respectively) work.
I'm encountering confusing issues with Gradle builds only. This may not be Batect's issue, but Gradle's.
I need to update my batect.yml to exclude "local" vs "container" directories when mounting my ~/.gradle dir (mounting avoids redownloading dependencies). Running ./gradlew --stop before ./batect <some build involving gradle> resolves things otherwise.
@charleskorn Do you have any PRs from folks on the documentation? If not, I'm happy to provide a doc-only PR. I've read comments here and elsewhere on better mount configurations to address Gradle's peculiarities
My general advice to anyone using Gradle is to mount a separate cache volume for ~/.gradle instead of using a mounted directory from the host. On macOS and Windows, the I/O performance of a mounted directory is pretty terrible, and then there are also issues like these that make it unreliable.
This issue is specific to Gradle builds with Batect.
The documentation should mention using the
--no-daemon
flag for running Gradle inbatect.yml
. Several reasons:~/.gradle/daemon
and/.gradle/workers
directories, as these refer to processes in the host, not the container./gradlew --stop
to kill any local daemons: This indicates a bug, and "stop" is a workaroundThe text was updated successfully, but these errors were encountered: