Add MicroShift repositories to image builder
Add the MicroShift repositories to image builder on your build host.
-
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.
-
Create an image builder configuration file for adding the
rhocp-4.20RPM 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 -
Create 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 EOF -
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
-
Confirm that the sources were added properly by running the following command:
$ sudo composer-cli sources listExample outputappstream baseos fast-datapath rhocp-4.20
-
Create the blueprint. For more information, see the following links: