]> piware.de Git - bin.git/blob - install-rhel-tools
install-rhel-tools: Update for new RH root CA
[bin.git] / install-rhel-tools
1 #!/bin/sh
2 # Install RHEL development tools into a toolbox
3 set -eux
4
5 sudo curl -o /etc/pki/ca-trust/source/anchors/2015-RH-IT-Root-CA.crt https://certs.corp.redhat.com/certs/2015-IT-Root-CA.pem
6 sudo curl -o /etc/pki/ca-trust/source/anchors/2022-RH-IT-Root-CA.crt https://certs.corp.redhat.com/certs/2022-IT-Root-CA.pem
7
8 sudo update-ca-trust
9
10 (cd /etc/yum.repos.d; sudo curl -O --location https://download.devel.redhat.com/rel-eng/RCMTOOLS/rcm-tools-fedora.repo)
11 sudo dnf install -y rhpkg
12
13 # CentOS stream
14 sudo dnf copr enable -y james/centpkg
15 sudo dnf install -y centpkg streamkoji
16
17 # coverity
18 sudo dnf copr enable -y copr.devel.redhat.com/kdudka/covscan
19 sudo dnf install -y covscan-client
20
21 # 1minutetip: https://wiki.test.redhat.com/BaseOs/Projects/1minuteTIP
22 if mountpoint /mnt; then sudo umount /mnt; fi # HACK: rhts-test-env-5.0-2.fc32eng.noarch wants to fiddle with it
23 . /etc/os-release
24 sudo curl -o /etc/yum.repos.d/qa-tools.repo https://copr.devel.redhat.com/coprs/lpol/qa-tools/repo/fedora-36/lpol-qa-tools-fedora-${VERSION_ID}.repo
25 sudo curl -o /etc/yum.repos.d/beaker-client.repo http://download.lab.bos.redhat.com/beakerrepos/beaker-client-Fedora.repo
26 sudo dnf install -y qa-tools-workstation-1minutetip tmt-redhat-provision-minute