From 8dcb304e5dbf0be0e03e69c9eef71391b5e77171 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Fri, 2 Aug 2019 15:44:26 +0200 Subject: [PATCH] build-devmock: Set up waiverdb-cli This needs kerberos, and thus does not work in toolbox. --- build-devmock | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build-devmock b/build-devmock index 1eb0050..a3a6a33 100755 --- a/build-devmock +++ b/build-devmock @@ -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 <> /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 -- 2.39.2