Create a runner on Google Cloud
To run your models on Google Cloud, you first need to get hold of an Google Cloud virtual machine (VM). If you already have one, check the requirements below to make sure your VM has sufficient resources.
The second step is to attach your VM runner to Dotscience.
Get an Ubuntu VM instance on Google Cloud.
Start by logging in to Google Cloud with your Google credentials. If you don’t have a Google account, click Sign in to create an account and then sign in.
When you are signed in, click Console on the top right.
On the left navigation, select Compute Engine and then VM instances.
At this point, if you haven’t already enabled Google Cloud billing, you need to do so. Click Enable billing and you will be guided through the process of setting up a payment method. You only pay for the compute you use, and there are typically free credits available to new users.
Select VM instances from the top of the left navigation. Then click Create to set up a new instance.
Increase the size of the boot disk from the default (10GB) to at least 30GB.
Select an instance with at least 2GB of RAM from the dropdown menu under Machine type.
Optionally, configure further instance settings, such as the Region and Zone. Click Create when you’vee finished setting up, and the instance will boot up.
When your instance is online, it will appear on the VM instances page with a green check mark next to its name.
Install Docker on your instance:
On the VM instances page of the Google Cloud console,in the column labeled Connect, is a dropdown menu for your instance marked SSH. Select Open in browser window from this dropdown. This will launch a browser windown that resembles a terminal, through which you can issue controls to your VM.
If your instance isn’t new, you might want to uninstall any old Docker files that might be on there with the following command. If your VM is brand new, go to step 4.
sudo apt-get remove docker docker-engine docker.io
- Install the latest version of Docker
curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh
- Now Docker is installed but no users have been added to its group. Add your user to the
dockergroup so that you can execute Docker commands without using
sudo. You can see your username in the VM by looking at the command prompt: your name is the part of the prompt before the
@symbol, and will typically have been generated from your Google username. Run the following, substituting in your username:
sudo usermod -a -G docker <username>
You need to log out and in again to the instance to activate the new user permissions. Do this by closing the SSH browser window, and opening a new one as before, by clicking the drop-down menu for your instance marked SSH and selecting Open in browser window .
Check that Docker is up and running and doesn’t require
Create a Dotscience Runner on your VM:
- Go to the Runners section of Dotscience.
- Click on the Add Your Own Runner button.
- Select the Runner type, Storage space and Units that are most appropriate to your machine. Give the runner a name, and click Continue.
- Copy the commands given in the Connecting the runner section and run these on your new runner machine.
- Refresh the Dotscience Runners page. You should see your newly added runner is online.
See the section on exposing GPU’s on your runner for more information on this.