tutorial.py

Tutorial sample script

usage: tutorial.py [-h] [--loglevel {DEBUG,INFO,WARNING,ERROR}]
                   [--logformat LOGFORMAT] [-c CLUSTER_ID]
                   {build,env,build-cloud,unload,upload-images,load,prepare}
                   ...

Positional Arguments

command Possible choices: build, env, build-cloud, unload, upload-images, load, prepare

Named Arguments

--loglevel

Possible choices: DEBUG, INFO, WARNING, ERROR

Set the script log level

--logformat Set the script log format
-c, --cluster_id
 

The cluster id. If not set with the command line, uses the environment variable GENVID_CLUSTER_ID if it exists. Otherwise defaults to ‘local’

Default: “local”

Sub-commands:

build

Build the specified target

tutorial.py build [-h] [targets [targets ...]]

Positional Arguments

targets The targets to build.

env

Print environment variables

tutorial.py env [-h]

build-cloud

Build the specified target for the cloud

tutorial.py build-cloud [-h] [targets [targets ...]]

Positional Arguments

targets The targets to build.

unload

Unload the specified target definition in the cloud

tutorial.py unload [-h] [targets [targets ...]]

Positional Arguments

targets The targets to load.

upload-images

Upload tutorial images to the cloud

tutorial.py upload-images [-h] [-b BUCKET] [-p PATH] [-u]
                          [targets [targets ...]]

Positional Arguments

targets The targets to upload.

Named Arguments

-b, --bucket Name of the bucket to use. Default is a combination of AWS account, bastion, and cluster IDs.
-p, --path

The path in the bucket (default: “/images/tutorial”).

Default: “/images/tutorial”

-u, --update-config
 

Upload configuration to the current cluster.

Default: False

load

Load the specified target definition in the cloud

tutorial.py load [-h] [targets [targets ...]]

Positional Arguments

targets The targets to load.

prepare

Copy the Genvid files.

tutorial.py prepare [-h]