- We will be using docker based gradle, so first one must install Docker
- To install docker desktop, go to dockers homepage and fetch the suitable docker version, which almost all the time is the docker-ce version
- UBUNTU, follow the steps of digital ocean
- OS-X follow the official website steps
- Win64 one should follow the official steps as well ++one can use and I suggest to use the WSL2 version. More on WSL 2.0 here.
- After you have finished installing docker, fetch the gradle image by running
docker pull gradle
which will fetch thelatest
tagged docker gradle image from the hub. NOTICE! Docker on Windows will interpret your path with the nix convention soC:\Users\John_Doe
needs to be passed as/c/Users/John_doe
otherwise it won't work.
To run the samples execute to following from the sample's directory
- On Nix systems
docker run -i -t --rm -u gradle -v "$PWD":YOUR_PATH_TO_SAMPLE -w YOUR_PATH_TO_SAMPLE gradle gradle <gradle-task>
- On Windows systems
docker run -i -t --rm -u gradle -v YOUR_PATH_TO_SAMPLE:YOUR_PATH_TO_SAMPLE -w YOUR_PATH_TO_SAMPLE gradle gradle <gradle-task>