diff --git a/docs/koji/bootstrapping.md b/docs/koji/bootstrapping.md index 20cbfb20ffa1baab7e0c351410a8b9861e18590e..c30e220b9e7dc5768726fb2e4fd424fe6ef13b26 100644 --- a/docs/koji/bootstrapping.md +++ b/docs/koji/bootstrapping.md @@ -20,6 +20,10 @@ The following commands were executed from aiadm. The repo structure described here is based on the one created by [alma_snapshots](https://gitlab.cern.ch/linuxsupport/cronjobs/alma_snapshots). ```bash +$ cd bin/tags +$ cat external9al.sh +#!/bin/bash + koji add-external-repo alma9-baseos 'https://linuxsoft.cern.ch/cern/alma/9/BaseOS/$arch/os/' koji add-external-repo alma9-appstream 'https://linuxsoft.cern.ch/cern/alma/9/AppStream/$arch/os/' koji add-external-repo alma9-crb 'http://linuxsoft.cern.ch/cern/alma/9/CRB/$arch/os/' @@ -31,6 +35,12 @@ koji add-external-repo alma9-testing-crb 'http://linuxsoft.cern.ch/cern/alma/9-t koji add-external-repo alma9-latest-baseos 'https://linuxsoft.cern.ch/cern/alma/.9-latest/BaseOS/$arch/os/' koji add-external-repo alma9-latest-appstream 'https://linuxsoft.cern.ch/cern/alma/.9-latest/AppStream/$arch/os/' koji add-external-repo alma9-latest-crb 'http://linuxsoft.cern.ch/cern/alma/.9-latest/CRB/$arch/os/' + +$ ./external_9al.sh +Created external repo 1 +Created external repo 2 +... +Created external repo 9 ``` ## Create the base tag @@ -38,6 +48,10 @@ koji add-external-repo alma9-latest-crb 'http://linuxsoft.cern.ch/cern/alma/.9-l This is the tag that all others from this distro will inherit from. ```bash +$ cd bin/tags +$ cat ./defaults9al.sh +#!/bin/bash + koji add-tag alma9-defaults --arches="x86_64 aarch64" koji add-external-repo -t alma9-defaults alma9-baseos -p 30 --mode bare @@ -48,6 +62,11 @@ koji add-group alma9-defaults build koji add-group alma9-defaults srpm-build koji add-group-pkg alma9-defaults build bash bzip2 coreutils cpio diffutils findutils gawk gcc gcc-c++ grep gzip info kernel-rpm-macros krb5-libs make patch python-rpm-macros python3-rpm-macros redhat-rpm-config rpm-build sed shadow-utils system-release tar unzip util-linux which xz koji add-group-pkg alma9-defaults srpm-build bash bzip2 coreutils cpio diffutils findutils gawk gcc gcc-c++ grep gzip info kernel-rpm-macros krb5-libs make patch python-rpm-macros python3-rpm-macros redhat-rpm-config rpm-build sed shadow-utils system-release tar unzip util-linux which xz + +$ ./defaults9al.sh +Added external repo alma9-baseos to tag alma9-defaults (priority 30) +Added external repo alma9-appstream to tag alma9-defaults (priority 40) +Added external repo alma9-crb to tag alma9-defaults (priority 50) ``` @@ -103,8 +122,13 @@ version for the distro you're adding. You can probably use the previous version for now. Good luck! ```bash +$ cd bin/tags +$ cat external_epel9.sh koji add-external-repo epel9 'https://linuxsoft.cern.ch/epel/9/Everything/$arch/' +$ ./external_epel9.sh +Created external repo 10 + $ cat epel9.sh #!/bin/bash @@ -114,6 +138,7 @@ koji add-tag --arches "x86_64 aarch64" $TAG koji add-external-repo --tag=$TAG epel9 -p 60 --mode=bare $ ./epel9.sh +Added external repo epel9 to tag epel9 (priority 60) ``` ## Create the cern tag @@ -196,9 +221,19 @@ production to point to the new snapshot, otherwise the prod repo will still be m Once all that is done, you can finally add the CERN tag as an external repo: ```bash +$ cd bin/tags +$ cat external_cern9al.sh +#!/bin/bash + koji add-external-repo alma9-cern 'http://linuxsoft.cern.ch/cern/alma/9/CERN/$arch/' koji add-external-repo alma9-testing-cern 'http://linuxsoft.cern.ch/cern/alma/9-testing/CERN/$arch/' koji add-external-repo alma9-latest-cern 'http://linuxsoft.cern.ch/cern/alma/.9-latest/CERN/$arch/' + +$ ./external_cern9al.sh +Created external repo 11 +Created external repo 12 +Created external repo 13 + ``` ## Create base for user tags @@ -206,9 +241,15 @@ koji add-external-repo alma9-latest-cern 'http://linuxsoft.cern.ch/cern/alma/.9- Now we start to bring it all together with a tag that user tags will inherit from: ```bash +$ cd bin/tags +$ cat alma9_cern.sh +#!/bin/bash + koji add-tag --arches "x86_64 aarch64" --parent cern9al-stable alma9-cern koji add-group-pkg alma9-cern srpm-build cern-koji-addons koji add-group-pkg alma9-cern build cern-koji-addons + +$ ./alma9_cern.sh ``` ## Create script to create user tags