From 358ba36ca7350ba1aa57d2d1700b1ff653323c11 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Wed, 30 Dec 2020 11:37:31 +0100 Subject: [PATCH] Add build-cockpit-toolbox This builds on top of the official cockpit/tasks container, and otherwise installs the same packages as build-devtoolbox. --- build-cockpit-toolbox | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 build-cockpit-toolbox diff --git a/build-cockpit-toolbox b/build-cockpit-toolbox new file mode 100755 index 0000000..6fc6e86 --- /dev/null +++ b/build-cockpit-toolbox @@ -0,0 +1,26 @@ +#!/bin/sh +set -eux +NAME=cockpit + +toolbox rm --force $NAME || true +yes | toolbox create --image quay.io/cockpit/tasks -c $NAME + +# install cockpit's build deps and other development tools +toolbox run -c "$NAME" sh -exc ' +# useful hostname +echo "cockpit-toolbox" | sudo tee /etc/hostname +sudo hostname -F /etc/hostname + +# enable manpages +sudo sed -i s/nodocs// /etc/dnf/dnf.conf + +sudo dnf install -y ansible man-pages standard-test-roles pwgen \ + python3-boto python3-boto3 \ + pandoc texlive-ec texlive-pdfjam \ + /usr/bin/scanimage /usr/bin/pngquant /usr/bin/convert \ + calibre qt5-qtwayland + +sudo dnf debuginfo-install -y glib2 glibc libssh gnutls + +type gh >/dev/null 2>&1 || sudo dnf install -y $(curl -s https://api.github.com/repos/cli/cli/releases/latest | grep -o https:.*_linux_amd64.rpm) +' -- 2.39.5