1.3. Adding MicroShift repositories to image builder
Use the following procedure to 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-clitool. - You have root-user access to your build host.
Procedure
Create an image builder configuration file for adding the
rhocp-4.17RPM repository source required to pull MicroShift RPMs by running the following command:cat > rhocp-4.17.toml <<EOF id = "rhocp-4.17" name = "Red Hat OpenShift Container Platform 4.17 for RHEL 9" type = "yum-baseurl" url = "https://cdn.redhat.com/content/dist/layered/rhel9/$(uname -m)/rhocp/4.17/os" check_gpg = true check_ssl = true system = false rhsm = true EOFCreate an image builder configuration file for adding the
fast-datapathRPM 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 EOFAdd the sources to the image builder by running the following commands:
$ sudo composer-cli sources add rhocp-4.17.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 listExample output
appstream baseos fast-datapath rhocp-4.17