Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

instance.txt

The rows nr. 1-43 are required; . the others are displayed with the default values (can be rewritten with the file)

...

Property

Default

Required

Description

1

instance-

...

name

project name

yes

the instance name is the VM name as appears in the Compute Engine view

2

machine-type

...

e2-micro

...

yes

the value depends on what the application needs: more CPU or more RAM? for options, please check the Google Cloud documentation

3

email-to

yes

the email is used once to receive an alert for when the VM is ready.

4

root-dir

\/home\/project-name

no

the path on the server where the content of the GCS bucket is uploaded;
this is also used for the commands from the commands.txt file in order to launch/trigger your application execution.

alternatives: \/home\/<your-gcs-bucket> , \/srv\/app

when you SSH in the machine (ex: your email isĀ data-science-guru@boxalino-client.com) , the VM creates a directory /home/data-science-guru (this is default for any server) so this is your local path;

5

image-family

ubuntu-2004-lts

no

6

boot-disk-size

30

no

7

zone

europe-west1-b

no

Code Block
instance-name:application-name
machine-type:e2-micro
email-to:requester@email.comdata-science-guru@boxalino-client.com
root-dir:\/home\/project-name
image-family:ubuntu-2004-lts
boot-disk-size:30
zone:europe-west1-b

The machine-type options are available in the Google Cloud documentation

requirements.txt

This is a typical requirements.txt file for a jupyter/python application.

...

You can also include other commands same as the application has been tested on the local environment.

Code Block
papermill PROJECT-ROOT<root-dir value from instance.txt>/process.ipynb PROJECT-ROOT<root-dir value from instance.txt>/process-output.ipynb

env.yml

...