Running Automotive Image Builder from a container
Running Automotive Image Builder from a container¶
The Automotive SIG maintains a container image that you can use to run automotive-image-builder in the
automotive-image-builder Quay.io repo. This
containerized build process is useful for hosts other than RHEL, CentOS, and Fedora, or if you do not want to install the RPM-based
version of the automotive-image-builder tool.
To easily run automotive-image-builder from a container, you can use the auto-image-builder.sh script that is available in the
automotive-image-builder repository.
-
Download the script:
console $ curl -L -o auto-image-builder.sh \ "https://gitlab.com/CentOS/automotive/src/automotive-image-builder/-/raw/main/auto-image-builder.sh?ref_type=heads" -
Build an image. In this example, download and build the
minimal.aib.ymlmanifest that is available in sig-docs/demos/minimal:console $ curl -L -o minimal.aib.yml \ "https://gitlab.com/CentOS/automotive/sig-docs/-/raw/main/demos/minimal/minimal.aib.yml?ref_type=heads"Build a disk image:
console $ bash ./auto-image-builder.sh -d build \ --target qemu \ minimal.aib.yml \ minimal.qcow2
Note
AIB also provides built-in --container and --user-container
options that run containerized builds without the wrapper script. The
--user-container option supports fully rootless builds. For
details, see
Running rootless and containerized builds.
For more information about the container, see the automotive-image-builder repository.