From ef8ffcebf1535df9df2654268cfacfa9001e1cf8 Mon Sep 17 00:00:00 2001 From: Fabian Arrotin Date: Feb 22 2023 15:19:19 +0000 Subject: Added snippet about kiwi group/media spin for SIGs Signed-off-by: Fabian Arrotin --- diff --git a/docs/buildsys/koji-cbs-sigs.md b/docs/buildsys/koji-cbs-sigs.md index 3afe0af..6715946 100644 --- a/docs/buildsys/koji-cbs-sigs.md +++ b/docs/buildsys/koji-cbs-sigs.md @@ -212,14 +212,17 @@ This script generate new build target in koji for SIGS. OPTIONS: -a ARCHES : Force arches e.g : "x86_64","aarch64 i686", etc... - -b : Enable non public bootstrap repo (SCLO SIG only) - -c COLLECTION : Enable collection in the buildroot e.g : mariadb100 - -d DISTRIBUTION : 5 6 7 8 8s + -s SIG NAME : cloud + -d DISTRIBUTION : 7 8 8s 9 9s (8 and 9 will use RHEL buildroots) -p SIG PROJECT NAME : cloud6-, sclo-, etc... -r SIG PROJECT RELEASE NAME : cloud6-openstack- - -s SIG NAME : cloud - -t DISTTAGS : el7 el7.centos el8_0 el8s + -t DISTTAGS : el7 el7.centos el8_0 el8s el9s el9 + -e EXTREPOS : Additional repositories to add , e.g 'epel8 epel8-next' + -i INHERITANCE : Additional tag-inheritance , e.g 'nfv9s-openvswitch-2-release' + -b : Enable non public bootstrap repo (SCLO SIG only) + -c COLLECTION : Enable collection in the buildroot e.g : mariadb100 -x : delete old -build tag and then recreate. + ``` Let's use the Kmods SIG again as an example : @@ -242,6 +245,10 @@ Added external repo centos8s-baseos to tag kmods8s-packages-main-el8-build (prio ``` +!!! note + The -e and -i (external repos and inheritance) parameters are optional but useful when some SIGs are asking to depend directly on additional existing tags/repos. + + !!! danger If you have to create tags for SCLs, see the note below as we have to consolidate tags into specific one for signing purpose. We'll eventually backport that into automation script later @@ -306,11 +313,8 @@ cbs edit-tag ${tag} --extra rpm.macro.dist='.el9iv' If SIGs are asking to be able to produce media with kiwi plugin, we have to ensure that there is at least one (or more) kojid builders which has/have the `kiwi` plugin enabled (through role). Then at the SIGs tag level, we need to ensure that we add the [mandatory](https://docs.pagure.org/koji/plugins/?highlight=kiwi#image-builds-using-kiwi) `kiwi-build` group. (RPM packages list can vary depending on SIG needs but kiwi-cli and kiwi-systemdeps are mandatory) -``` -build_tag="hyperscale9s-spin_media-main-el9s-build" -koji add-group ${build_tag} kiwi-build -koji add-group-pkg ${build_tag} kiwi-build kiwi-cli kiwi-systemdeps distribution-gpg-keys btrfs-progs -``` +You can now use the `/opt/cbs-tools/scripts/cbs-add-kiwi-support` (interactive script asking for needed informations) script to do this for you + !!! warning Worth knowing that some of these deps are satisfied *only* through Epel repository so it should first be enabled as external repo to the build tag, otherwise they'll not be installed in the buildroot