ut4.py¶
UT4 sample script
usage: ut4.py [-h] [--loglevel {DEBUG,INFO,WARNING,ERROR}]
[--logformat LOGFORMAT] [-c CLUSTER_ID]
{env,prepare,checkin,build,build-cloud,load,unload,upload-images}
...
Positional Arguments¶
command | Possible choices: env, prepare, checkin, build, build-cloud, load, unload, upload-images |
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:¶
prepare¶
Copy SDK and generate the project files
ut4.py prepare [-h] [-n]
Named Arguments¶
-n, --dry-run | Just print what it will do Default: False |
checkin¶
Checkin the files back (for internal use)
ut4.py checkin [-h] [-n]
Named Arguments¶
-n, --dry-run | Just print what it will do Default: False |
build¶
Build the specified target
ut4.py build [-h] [targets [targets ...]]
Positional Arguments¶
targets | The targets to build |
build-cloud¶
Build the specified target for the cloud
ut4.py build-cloud [-h] [targets [targets ...]]
Positional Arguments¶
targets | The targets to build |
load¶
Load the specified target definition in the cloud
ut4.py load [-h] [-s] [targets [targets ...]]
Positional Arguments¶
targets | The targets to build |
Named Arguments¶
-s, --ssl | Generate self-signed certificates. Default: False |
unload¶
Unload the specified target definition in the cloud
ut4.py unload [-h] [targets [targets ...]]
Positional Arguments¶
targets | The targets to build |
upload-images¶
Upload tutorial images to the cloud
ut4.py upload-images [-h] [-b BUCKET] [-p PATH] [-u] [--region REGION]
[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/ut4”). Default: “/images/ut4” |
-u, --update-config | |
Upload configuration in the current cluster. Default: False | |
--region | Region where the images will be uploaded. |