X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=blobdiff_plain;f=build-cockpit-toolbox;h=d233b7869fa20ed090873ca7f8c2d5e3383791aa;hp=6fc6e865ef7baf1c22db77ac0fb4b675ce9e7563;hb=d9a6587d6b86ba5a35291a85f84fcda1c2099ba2;hpb=358ba36ca7350ba1aa57d2d1700b1ff653323c11 diff --git a/build-cockpit-toolbox b/build-cockpit-toolbox index 6fc6e86..d233b78 100755 --- a/build-cockpit-toolbox +++ b/build-cockpit-toolbox @@ -1,11 +1,13 @@ #!/bin/sh set -eux -NAME=cockpit +NAME=${NAME:-cockpit} +TAG=${TAG:-latest} toolbox rm --force $NAME || true -yes | toolbox create --image quay.io/cockpit/tasks -c $NAME +podman pull quay.io/cockpit/tasks:${TAG} +yes | toolbox create --image quay.io/cockpit/tasks:${TAG} -c $NAME -# install cockpit's build deps and other development tools +# install some extra development and desktop tools toolbox run -c "$NAME" sh -exc ' # useful hostname echo "cockpit-toolbox" | sudo tee /etc/hostname @@ -14,12 +16,15 @@ 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 \ +sudo dnf install -y ansible man-pages moreutils \ + python3-boto python3-boto3 libnotify \ pandoc texlive-ec texlive-pdfjam \ /usr/bin/scanimage /usr/bin/pngquant /usr/bin/convert \ - calibre qt5-qtwayland + kpcli \ + calibre qt5-qtwayland \ + dbus-daemon tmt tmt-provision-virtual +# debugging cockpit crashes 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)