From a6f36aa62348e67192ba55fe161efdb65054c1db Mon Sep 17 00:00:00 2001 From: Thomas Oulevey Date: Oct 23 2019 12:17:00 +0000 Subject: booststrap.sh: create the minimal initial requirements for a koji instance. --- diff --git a/scripts/bootstrap.sh b/scripts/bootstrap.sh new file mode 100644 index 0000000..5eaa65a --- /dev/null +++ b/scripts/bootstrap.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +# Create external-repos + +koji add-external-repo centos6-os "http://mirror.centos.org/centos/6/extras/\$arch/" +koji add-external-repo centos6-updates "http://mirror.centos.org/centos/6/updates/\$arch/" +koji add-external-repo centos6-extras "http://mirror.centos.org/centos/6/extras/\$arch/" + +koji add-external-repo centos7-os "http://mirror.centos.org/centos/7/extras/\$arch/" +koji add-external-repo centos7-updates "http://mirror.centos.org/centos/7/updates/\$arch/" +koji add-external-repo centos7-extras "http://mirror.centos.org/centos/7/extras/\$arch/" +koji add-external-repo centos7-cr "http://mirror.centos.org/centos/7/cr/\$arch/" + +# Create buildsys tags + +koji add-tag buildsys6 +koji add-tag --arches "x86_64" buildsys6-build +koji add-external-repo --tag=buildsys6-build centos6-updates +koji add-external-repo --tag=buildsys6-build centos6-os +koji add-group buildsys6-build build +koji add-group buildsys6-build srpm-build +koji add-group-pkg buildsys6-build build bash bzip2 coreutils cpio diffutils redhat-release findutils gawk gcc gcc-c++ grep gzip info make patch redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux-ng which tar buildsys-tools +koji add-group-pkg buildsys6-build srpm-build srpm-build bash buildsys-macros curl cvs redhat-release gnupg make redhat-rpm-config rpm-build shadow-utils tar buildsys-tools +koji add-target buildsys6 buildsys6-build buildsys6 + + +koji add-tag buildsys7 +koji add-tag --arches "x86_64" buildsys7-build +koji add-external-repo --tag=buildsys7-build centos7-updates +koji add-external-repo --tag=buildsys7-build centos7-os +koji add-group buildsys7-build build +koji add-group buildsys7-build srpm-build +koji add-group-pkg buildsys7-build build bash bzip2 coreutils cpio diffutils redhat-release findutils gawk gcc gcc-c++ grep gzip info make patch redhat-rpm-config rpm-build sed shadow-utils tar unzip util-linux-ng which tar buildsys-tools +koji add-group-pkg buildsys7-build srpm-build srpm-build bash buildsys-macros curl cvs redhat-release gnupg make redhat-rpm-config rpm-build shadow-utils tar buildsys-tools +koji add-target buildsys7 buildsys7-build buildsys7 + +# Create fake sigs + +/opt/cbs-tools/scripts/create_sig.sh -s oranges -p test -r 10 -d 6 -t el6 -x +/opt/cbs-tools/scripts/create_sig.sh -s oranges -p test -r 10 -d 7 -t el7 -x +