5 if [ -n "${TOOLBOX_RELEASE:-}" ]; then
6 RELEASE="--release $TOOLBOX_RELEASE"
7 NAME="$NAME-$TOOLBOX_RELEASE"
12 toolbox rm --force $NAME || true
13 yes | toolbox create $RELEASE -c $NAME
15 # install cockpit's build deps and other development tools
16 toolbox run -c "$NAME" sh -exc '
17 # this just refuses to rpm -i normally
18 sudo dnf install -y cpio
19 rpm2cpio ~martin/Dokumente/Arbeit/RedHat/redhat-internal-cert-install-0.1-7.el7.csb.noarch.rpm | sudo cpio -id --directory=/ --verbose "./etc/pki/*"
22 (cd /etc/yum.repos.d; sudo curl -O --location https://download.devel.redhat.com/rel-eng/RCMTOOLS/rcm-tools-fedora.repo)
24 sudo dnf builddep -y cockpit
25 sudo dnf install -y make npm fontconfig git valgrind chromium-headless \
26 libvirt-daemon-kvm libvirt-client python3-libvirt \
27 virt-viewer virt-install libappstream-glib \
28 expect python3-pycodestyle python3-pyflakes \
29 fedpkg rhpkg /usr/bin/oc /usr/bin/genisoimage \
30 man-pages socat wget genisoimage vim-enhanced \
31 ansible standard-test-roles rsync strace \
32 pwgen glibc-langpack-en waiverdb-cli
34 sudo dnf debuginfo-install -y glib2 glibc libssh gnutls
36 sudo dnf clean packages
38 # unbreak kerberos; https://github.com/debarshiray/toolbox/issues/235
39 cat <<EOF | sudo tee /etc/krb5.conf.d/0_file_ccache
41 default_ccache_name = FILE:/tmp/krb5.ccache
45 printf "[waiverdb]\nauth_method=Kerberos\nresultsdb_api_url=https://resultsdb-api.engineering.redhat.com/api/v2.0\napi_url=https://waiverdb.engineering.redhat.com/api/v1.0\nkrb_principal=HTTP/waiverdb.engineering.redhat.com@REDHAT.COM\n" | sudo tee /etc/waiverdb/client.conf
46 printf "[libdefaults]\n dns_canonicalize_hostname = false\n" | sudo tee /etc/krb5.conf.d/waiverdb-canonicalize-hostname