Hello folks!
Question on gradle and docker, from the perspective: we will have to run gradle to build our product within a docker container.
Are there any best practices for such a setup? (the online resources I found mostly talk about using docker by gradle, to establish test configurations and such, but not how to run gradle inside docker)
Myself, I can think of:
• make sure that the build cache is shared across docker runs to avoid constant “starting from 0”
• make sure that gradle does NOT run as server (at least for us, our docker sessions are invoked for a built, and then discarded)
• make sure the desired gradle version is installed in the docker image you are using
What are your thoughts?