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"
    

    Important

    This documentation is in the process of being adjusted for the changes implemented in Automotive Image Builder 1.1.5. In the meantime, to keep the sample commands in this documentation valid, you must use the deprecated CLI, as shown in this example.

    $ sudo bash ./auto-image-builder.sh -d build-deprecated \
        --distro autosd9 \
        --target qemu \
        --mode image \
        --export qcow2 \
        minimal.aib.yml \
        minimal.qcow2
    

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


© Red Hat