From: Martin Pitt Date: Tue, 23 Jul 2019 16:45:59 +0000 (+0200) Subject: Add build-devtoolbox X-Git-Url: https://piware.de/gitweb/?a=commitdiff_plain;h=c98a0a42a3835be0f532e3b840379caf5ca673f1;p=bin.git Add build-devtoolbox Counterpart to build-devmock to compare mock with toolbox. --- diff --git a/build-devtoolbox b/build-devtoolbox new file mode 100755 index 0000000..cfe4d71 --- /dev/null +++ b/build-devtoolbox @@ -0,0 +1,34 @@ +#!/bin/sh +set -eux +NAME=devel + +if [ -n "${TOOLBOX_RELEASE:-}" ]; then + RELEASE="--release $TOOLBOX_RELEASE" + NAME="$NAME-$TOOLBOX_RELEASE" +else + RELEASE='' +fi + +toolbox rm --force $NAME || true +toolbox create $RELEASE -c $NAME + +# install cockpit's build deps and other development tools +toolbox run -c "$NAME" sh -exc ' +# this just refuses to rpm -i normally +sudo dnf install -y cpio +rpm2cpio ~martin/Dokumente/Arbeit/RedHat/redhat-internal-cert-install-0.1-7.el7.csb.noarch.rpm | sudo cpio -id --directory=/ --verbose "./etc/pki/*" +sudo update-ca-trust + +(cd /etc/yum.repos.d; sudo curl -O --location https://download.devel.redhat.com/rel-eng/RCMTOOLS/rcm-tools-fedora.repo) + +sudo dnf builddep -y cockpit +sudo dnf install -y make npm fontconfig git valgrind chromium-headless \ + libvirt-daemon-kvm libvirt-client python3-libvirt \ + virt-viewer libguestfs-tools-c libappstream-glib \ + expect python3-pycodestyle python3-pyflakes \ + fedpkg rhpkg /usr/bin/oc /usr/bin/genisoimage \ + man-pages socat wget genisoimage vim-enhanced \ + ansible standard-test-roles rsync + +sudo dnf clean packages +'