]> piware.de Git - bin.git/blob - build-rhtoolbox
build-rhtoolbox: Simplify certificate install
[bin.git] / build-rhtoolbox
1 #!/bin/sh
2 set -eux
3 NAME=redhat
4 RELEASE=33
5
6 toolbox rm --force $NAME || true
7 yes | toolbox create --release $RELEASE -c $NAME
8
9 # install cockpit's build deps and other development tools
10 toolbox run -c "$NAME" sh -exc '
11 # useful hostname
12 echo "redhat" | sudo tee /etc/hostname
13 sudo hostname -F /etc/hostname
14
15 sudo dnf update -y
16
17 sudo curl -o /etc/pki/ca-trust/source/anchors/RH-IT-Root-CA.crt https://password.corp.redhat.com/RH-IT-Root-CA.crt
18 sudo update-ca-trust
19
20 (cd /etc/yum.repos.d; sudo curl -O --location https://download.devel.redhat.com/rel-eng/RCMTOOLS/rcm-tools-fedora.repo)
21 sudo dnf install -y rhpkg krb5-workstation
22
23 # 1minutetip
24 sudo umount /mnt  # HACK: rhts-test-env-5.0-2.fc32eng.noarch wants to fiddle with it
25 sudo wget -O /etc/yum.repos.d/qa-tools.repo http://liver.brq.redhat.com/repo/qa-tools.repo
26 sudo wget -O /etc/yum.repos.d/beaker-client.repo http://download.lab.bos.redhat.com/beakerrepos/beaker-client-Fedora.repo
27 sudo dnf install -y qa-tools-workstation-1minutetip
28
29 sudo dnf clean packages
30
31 # unbreak kerberos; https://github.com/debarshiray/toolbox/issues/235
32 cat <<EOF | sudo tee /etc/krb5.conf.d/0_file_ccache
33 [libdefaults]
34     default_ccache_name = FILE:/tmp/krb5.ccache
35 EOF
36 '