cmd: add new build command

This commit adds the `build` command. It takes the same flags as
`manifest` and will build the specified image.
This commit is contained in:
Michael Vogt 2024-12-03 10:17:47 +01:00 committed by Ondřej Budai
parent ce8dd45821
commit e5b3ccd6ed
5 changed files with 193 additions and 16 deletions

View file

@ -25,7 +25,7 @@ $ sudo dnf install osbuild osbuild-depsolve-dnf osbuild-composer
(`osbuild-composer` is only needed to get the repository definitions
and this dependency will go away soon).
## Example
## Examples
To see the list of buildable images run:
```console
@ -37,6 +37,15 @@ rhel-10.0 type:ami arch:x86_64
...
```
To actually build an image run:
```console
$ sudo image-builder build qcow2 --distro centos-9
...
```
this will create a directory `centos-9-qcow2-x86_64` under which the
output is stored.
It is possible to filter:
```console
$ image-builder list-images --filter ami