Skip to content

Instantly share code, notes, and snippets.

@aliceinwire
Last active March 28, 2024 12:56
Show Gist options
  • Save aliceinwire/ff64ff94e094b67ad17dac79496a63d1 to your computer and use it in GitHub Desktop.
Save aliceinwire/ff64ff94e094b67ad17dac79496a63d1 to your computer and use it in GitHub Desktop.
KernelCI Core API
1) creating a kernelci.toml file
docker run --rm -v $PWD:/home/kernelci -it kernelci/kernelci /bin/bash
kci help file
```
kernelci:~$ kci --help
Usage: kci [OPTIONS] COMMAND [ARGS]...
Entry point for the kci command line tool
Options:
-s, --toml-settings TEXT Path to the TOML user settings
--help Show this message and exit.
Commands:
api Run generic queries with API instances
config Manage the KernelCI YAML pipeline configuration
docker Build and manage Docker images
event Interact with Pub/Sub and message queue events
job Manage KernelCI jobs
node Interact with Node objects
storage Interact with KernelCI storage services
user Manage user accounts
```
send jobs
```
kernelci:~$ kci job --help
Usage: kci job [OPTIONS] COMMAND [ARGS]...
Manage KernelCI jobs
Options:
--help Show this message and exit.
Commands:
generate Generate a job definition in a file
new Create a new job node
submit Submit a job definition to its designated runtime
```
config definition
```
kernelci:~$ kci config --help
Usage: kci config [OPTIONS] COMMAND [ARGS]...
Manage the KernelCI YAML pipeline configuration
Options:
--help Show this message and exit.
Commands:
dump Dump entries from the SECTION of the pipeline YAML...
list-files List the YAML configuration files to be loaded
validate Validate the YAML pipeline configuration
```
example of config definition
https://github.com/kernelci/kernelci-pipeline/blob/e79e3743c2caeb106b99e7eaabd5904d0bca950f/config/pipeline.yaml#L200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment