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:
parent
ce8dd45821
commit
e5b3ccd6ed
5 changed files with 193 additions and 16 deletions
11
README.md
11
README.md
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue