Skip to content

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.

  1. Download the script:

    $ 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"
    
  2. Build an image. In this example, download and build the minimal.aib.yml manifest that is available in sig-docs/demos/minimal:

    $ curl -L -o minimal.aib.yml \
    "https://gitlab.com/CentOS/automotive/sig-docs/-/raw/main/demos/minimal/minimal.aib.yml?ref_type=heads"
    
    $ sudo bash ./auto-image-builder.sh build \
    --distro autosd9 \
    --mode image \
    --target qemu \
    --export qcow2 \
    minimal.aib.yml \
    minimal.qcow2
    

For more information about the container, see the automotive-image-builder repository.


© Red Hat