README: document the new --extra-artifacts=sbom option
Small commit that tweaks the README to include this new option.
This commit is contained in:
parent
cc2d1ac692
commit
ca0c9e63bd
2 changed files with 19 additions and 0 deletions
|
|
@ -14,4 +14,7 @@ qcow
|
||||||
UEFI
|
UEFI
|
||||||
datadir
|
datadir
|
||||||
copr
|
copr
|
||||||
|
SBOM
|
||||||
|
SBOMs
|
||||||
|
spdx
|
||||||
toml
|
toml
|
||||||
|
|
|
||||||
16
README.md
16
README.md
|
|
@ -42,6 +42,8 @@ $ sudo dnf install osbuild osbuild-depsolve-dnf
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
|
### Listing
|
||||||
|
|
||||||
To see the list of buildable images run:
|
To see the list of buildable images run:
|
||||||
```console
|
```console
|
||||||
$ image-builder list-images
|
$ image-builder list-images
|
||||||
|
|
@ -52,6 +54,8 @@ rhel-10.0 type:ami arch:x86_64
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Building
|
||||||
|
|
||||||
To actually build an image run:
|
To actually build an image run:
|
||||||
```console
|
```console
|
||||||
$ sudo image-builder build qcow2 --distro centos-9
|
$ sudo image-builder build qcow2 --distro centos-9
|
||||||
|
|
@ -60,6 +64,8 @@ $ sudo image-builder build qcow2 --distro centos-9
|
||||||
this will create a directory `centos-9-qcow2-x86_64` under which the
|
this will create a directory `centos-9-qcow2-x86_64` under which the
|
||||||
output is stored.
|
output is stored.
|
||||||
|
|
||||||
|
### Blueprints
|
||||||
|
|
||||||
Blueprints are supported, first create a `config.toml` and put e.g.
|
Blueprints are supported, first create a `config.toml` and put e.g.
|
||||||
the following content in:
|
the following content in:
|
||||||
```toml
|
```toml
|
||||||
|
|
@ -80,6 +86,14 @@ $ sudo image-builder build qcow2 --blueprint ./config.toml --distro centos-9
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### SBOMs
|
||||||
|
|
||||||
|
It is possible to generate spdx based SBOM (software bill of materials)
|
||||||
|
documents as part of the build. Just pass `--extra-artifacts=sbom` and
|
||||||
|
it will put them into the output directory.
|
||||||
|
|
||||||
|
### Filtering
|
||||||
|
|
||||||
When listing images, it is possible to filter:
|
When listing images, it is possible to filter:
|
||||||
```console
|
```console
|
||||||
$ image-builder list-images --filter ami
|
$ image-builder list-images --filter ami
|
||||||
|
|
@ -105,6 +119,8 @@ The following filters are currently supported, shell-style globbing is supported
|
||||||
* type: the image type name (e.g. qcow2)
|
* type: the image type name (e.g. qcow2)
|
||||||
* bootmode: the bootmode (legacy, UEFI, hybrid)
|
* bootmode: the bootmode (legacy, UEFI, hybrid)
|
||||||
|
|
||||||
|
### Output control
|
||||||
|
|
||||||
The output can also be switched, supported are "text", "json":
|
The output can also be switched, supported are "text", "json":
|
||||||
```console
|
```console
|
||||||
$ image-builder list-images --output=json
|
$ image-builder list-images --output=json
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue