]> piware.de Git - bin.git/commitdiff
build-devmock: Set up waiverdb-cli
authorMartin Pitt <martin@piware.de>
Fri, 2 Aug 2019 13:44:26 +0000 (15:44 +0200)
committerMartin Pitt <martin@piware.de>
Fri, 9 Aug 2019 16:54:06 +0000 (18:54 +0200)
This needs kerberos, and thus does not work in toolbox.

build-devmock

index 1eb005097b78fd294f168ae928b1f3f1a7c9a21e..a3a6a33dbbbc46cc24d52408f34e5d8a98e9d409 100755 (executable)
@@ -12,7 +12,7 @@ $MOCK -i $(sed -n '/^BuildRequires:/ {s/^.*: //; s/>=.*$//; s/%{.*}//; p}' ~/ups
     expect python3-pycodestyle python3-pyflakes \
     fedpkg /usr/bin/oc /usr/bin/genisoimage \
     man-pages socat wget genisoimage vim-enhanced \
-    ansible standard-test-roles rsync
+    ansible standard-test-roles rsync waiverdb-cli
 
 # interactive shell sessions work as user martin, not builder
 $MOCK --unpriv --copyin /dev/stdin /builddir/.bashrc <<EOF
@@ -34,6 +34,10 @@ $MOCK --chroot -- ln -sf /home /var/home
 $MOCK -i ~martin/Dokumente/Arbeit/RedHat/redhat-internal-cert-install-0.1-7.el7.csb.noarch.rpm
 $MOCK --chroot -- 'echo >> /etc/dnf/dnf.conf; curl --location https://download.devel.redhat.com/rel-eng/RCMTOOLS/rcm-tools-fedora.repo >> /etc/dnf/dnf.conf; dnf install -y rhpkg'
 
+# set up waiverdb
+mock --chroot -- '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" > /etc/waiverdb/client.conf'
+mock --chroot -- 'sed -i "/\[libdefaults\]/ s/$/\n    dns_canonicalize_hostname = false/" /etc/krb5.conf'
+
 # ssh looks at passwd, not $HOME
 $MOCK --chroot --unpriv -- rm -rf /builddir/.ssh
 $MOCK --chroot --unpriv -- ln -s /home/martin/.ssh /builddir/.ssh