To setup the Gradle Remote Cache you need to do the following:
Open the Cloud Platform console.
Select Compute Engine Instances.
Click on an existing node, and use Create Similar to create a new node. Note: This node has to be tagged with a network tag called gradle-remote-cache-node for it to be picked up by the load balancer. Make sure you create the node in the zone us-east-1-b.
Click Allow HTTP Traffic and Allow HTTPs Traffic. By doing do, you are allowing UberProxy access to the remote cache. The load balancer is only available when you are on a corp network.
Connect to the newly created node using an SSH session. You can use the gcloud CLI for this. Note: Use the external IP of the newly created node to SSH.
# Note: To switch projects use `gcloud config set project fetch-licenses` # Will show the newly created instance gcloud compute instances list # Will setup ssh configurations gcloud compute config-ssh
Workspace in the home directory.Workspace folder. Remove the .empty file from the data folder.gradle-node folder.tmux session using tmux new -s gradle.chmod +x ~/Workspace/run_node.sudo apt install openjdk-11-jdk.run_node script using sudo ./run_node from inside the tmux session.tmux session.gradle-remote-cache-group instance group.Edit instance group.Save.