cube.py

Cube sample script

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

Positional Arguments

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

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. Default local

Sub-commands:

prepare

Copy SDK and generate the project files

cube.py prepare [-h] [-n]

Named Arguments

-n, --dry-run

Just print what it will do

Default: False

unload

Unload the specified target definition in the cloud

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

Positional Arguments

targets The targets to build

build-cloud

Build the specified target for the cloud

cube.py build-cloud [-h] [-v VERSION] [targets [targets ...]]

Positional Arguments

targets The targets to build

Named Arguments

-v, --version The engine version to use

upload-images

Upload Cube sample images to the cloud

cube.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/cube”).

Default: “/images/cube”

-u, --update-config
 

Upload configuration to the current cluster.

Default: False

load

Load the specified target definition in the cloud

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

Positional Arguments

targets The targets to build

build

Build the specified target

cube.py build [-h] [-v VERSION] [targets [targets ...]]

Positional Arguments

targets The targets to build

Named Arguments

-v, --version The engine version to use

env

Print environment variables

cube.py env [-h]