jcode cloud
Synopsis
jcode cloud ls
jcode cloud reap
jcode cloud run --dir D --command CMD --out DIR [--script FILE] [--result PATH]
[--instance-type T] [--limit S] [--disk GB] [--env K=V]... [--save-cache NAME=DIR]...
Description
The instances of the level cloud (Isolation).
| Subcommand |
Description |
jcode cloud ls |
One line for each running instance with the tag jcode=1: the id, the type, the state, the prefix of its job, and the minutes to its time limit. |
jcode cloud reap |
Terminates each instance past its time limit, and prints their ids. The daemon also does this each 5 min. |
jcode cloud run |
Runs one command on one new instance, with no model and no daemon, and waits for it. See below. |
jcode cloud run
The instance gets the commit HEAD of the git folder D, and the caches of cache in the config. It runs CMD with sh at the top of that tree. The new lines of the log show here while the command runs. At the end, OUT has log.txt and exit.txt, and result.tgz when the tree has PATH. The instance terminates, and the exit code of jcode cloud run is the exit code of CMD.
| Option |
Description |
--script FILE |
A file of this machine that the command can run as $JOB_SCRIPT, such as the setup of the tools. |
--result PATH |
A file or a folder of the tree, after the command, as OUT/result.tgz. |
--instance-type T |
A type, or a list of types in quotes. An x86_64 type gets an x86_64 image. |
--limit S |
The time limit in seconds (300 to 39600). The command stops 2 min before it, so that its log comes back. |
--disk GB |
The size of the disk (8 to 2000). The default is disk_gb of the config, 30. |
--env K=V |
A variable of the command. |
--save-cache NAME=DIR |
Saves DIR of the instance as the cache NAME at the end. |
Errors
| Message |
Cause |
409: the level cloud needs cloud in config.json (docs/dev/cloud.md) |
No cloud in config.json. |
409: the level cloud needs KEYS in cloud of config.json (docs/dev/cloud.md) |
A key of the driver aws is missing. |
the AWS profile "PROFILE" has no role_arn: … |
The profile does not assume the role jcode-caller. |