Add MicroShift repositories to image builder

Add the MicroShift repositories to image builder on your build host.

Prerequisites
  • Your build host meets the image builder system requirements.

  • You have installed and set up image builder and the composer-cli tool.

  • You have root-user access to your build host.

Procedure
  1. Create an image builder configuration file for adding the rhocp-4.20 RPM repository source required to pull MicroShift RPMs by running the following command:

    cat > rhocp-4.20.toml <<EOF
    id = "rhocp-4.20"
    name = "Red Hat OpenShift Container Platform 4.20 for RHEL 9"
    type = "yum-baseurl"
    url = "https://cdn.redhat.com/content/dist/layered/rhel9/$(uname -m)/rhocp/4.20/os"
    check_gpg = true
    check_ssl = true
    system = false
    rhsm = true
    EOF
  2. Create an image builder configuration file for adding the fast-datapath RPM repository by running the following command:

    cat > fast-datapath.toml <<EOF
    id = "fast-datapath"
    name = "Fast Datapath for RHEL 9"
    type = "yum-baseurl"
    url = "https://cdn.redhat.com/content/dist/layered/rhel9/$(uname -m)/fast-datapath/os"
    check_gpg = true
    check_ssl = true
    system = false
    rhsm = true
    EOF
  3. Add the sources to the image builder by running the following commands:

    $ sudo composer-cli sources add rhocp-4.20.toml
    $ sudo composer-cli sources add fast-datapath.toml
Verification
  • Confirm that the sources were added properly by running the following command:

    $ sudo composer-cli sources list
    Example output
    appstream
    baseos
    fast-datapath
    rhocp-4.20
Next steps