Run on Google Cloud Platform

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.

  1. 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.

  2. When you are signed in, click Console on the top right.

  3. On the left navigation, select Compute Engine and then VM instances.

  4. 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.

  5. Select VM instances from the top of the left navigation. Then click Create to set up a new instance.

  6. Make sure the operating system for your VM is Ubuntu, preferably the most recent release. You can change this from the default operating system(Debian GNU) in the section labeled Boot disk.

  • 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.

VM requirements: 64-bit Ubuntu Server, 2GB RAM at least, 30GB disk at least.

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:

  1. 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.

  2. 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
  1. Install the latest version of Docker
curl -fsSL -o
sudo sh
  1. Now Docker is installed but no users have been added to its group. Add your user to the docker group 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>
  1. 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 .

  2. Check that Docker is up and running and doesn’t require sudo:

docker info

Create a Dotscience Runner on your VM:

  1. Go to the Runners section of Dotscience.
  2. Click on the Add Your Own Runner button.
  3. Select the Runner type, Storage space and Units that are most appropriate to your machine. Give the runner a name, and click Continue.
  4. Copy the commands given in the Connecting the runner section and run these on your new runner machine.
  5. Refresh the Dotscience Runners page. You should see your newly added runner is online.

GPU-enabled workflows

See the section on exposing GPU’s on your runner for more information on this.