]> piware.de Git - bin.git/blobdiff - build-devmock
build-sid-toolbox: Eliminate intermediate container image
[bin.git] / build-devmock
index 2e50451f1b595ac9203c1c5af1da81e9feecc5b1..03f2f3c09109b1a044b595b4e6d38bdcb618a42c 100755 (executable)
@@ -8,10 +8,11 @@ $MOCK --clean
 $MOCK -i $(sed -n '/^BuildRequires:/ {s/^.*: //; s/>=.*$//; s/%{.*}//; p}' ~/upstream/cockpit/tools/cockpit.spec) \
     npm fontconfig git valgrind chromium-headless \
     libvirt-daemon-kvm libvirt-client python3-libvirt \
-    virt-viewer libguestfs-tools-c \
+    virt-viewer libappstream-glib \
     expect python3-pycodestyle python3-pyflakes \
     fedpkg /usr/bin/oc /usr/bin/genisoimage \
-    man-pages socat wget genisoimage vim-enhanced
+    man-pages socat wget genisoimage vim-enhanced \
+    ansible standard-test-roles rsync waiverdb-cli
 
 # interactive shell sessions work as user martin, not builder
 $MOCK --unpriv --copyin /dev/stdin /builddir/.bashrc <<EOF
@@ -27,4 +28,17 @@ fi
 EOF
 
 # make mock compatible with ostree's /home → /var/home structure
-mock -r ${OS:-default} --chroot -- ln -sf /home /var/home
+$MOCK --chroot -- ln -sf /home /var/home
+
+# install rhpkg
+$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
+$MOCK --chroot --unpriv -- ln -s /home/martin/upstream /builddir/upstream