9. Environment setup

Supporting video

Setting up gradle - Arch Linux

First things first you need to install docker first. To do it you will have to consult pacman with the following command sudo pacman -S docker. After it has installed everything for you it is optional but sometimes handy to install docker-compose as well. To do that, run sudo pacman -S docker-compose.

After docker has been installed on your system, pull the gradle image as written here by running sudo docker pull gradle.

The previous steps can be done on

  1. Ubuntu
  2. Mac
  3. Windows, I’d suggest to use WSL2 on windows if it is possible, makes life a bit easier.

Supporting video

Running the samples - Arch Linux

When docker based gradle is fetched you can run the commands from the editor of choice. Since I show the examples in VSCode I would suggest using it. As it is written on the gradle docker webpage you can run the examples from the sample’s root directory, by running the command docker run --rm -u gradle -v "$PWD":/home/gradle/project -w /home/gradle/project gradle gradle <gradle-task>.