]> piware.de Git - bin.git/blob - build-cockpit-toolbox
build-cockpit-toolbox: Install KeePass CLI
[bin.git] / build-cockpit-toolbox
1 #!/bin/sh
2 set -eux
3 NAME=cockpit
4
5 toolbox rm --force $NAME || true
6 podman pull quay.io/cockpit/tasks
7 yes | toolbox create --image quay.io/cockpit/tasks -c $NAME
8
9 # install some extra development and desktop tools
10 toolbox run -c "$NAME" sh -exc '
11 # useful hostname
12 echo "cockpit-toolbox" | sudo tee /etc/hostname
13 sudo hostname -F /etc/hostname
14
15 # enable manpages
16 sudo sed -i s/nodocs// /etc/dnf/dnf.conf
17
18 sudo dnf install -y ansible man-pages moreutils \
19     python3-boto python3-boto3 libnotify \
20     pandoc texlive-ec texlive-pdfjam \
21     /usr/bin/scanimage /usr/bin/pngquant /usr/bin/convert \
22     kpcli \
23     calibre qt5-qtwayland \
24     dbus-daemon tmt testcloud
25
26 # qemu:///session support for testcloud: https://pagure.io/testcloud/pull-request/83#
27 sudo dnf install -y https://download.copr.fedorainfracloud.org/results/frantisekz/testcloud-wip/fedora-33-x86_64/01968005-testcloud/python3-testcloud-0.4.0-4.fc33.noarch.rpm https://download.copr.fedorainfracloud.org/results/frantisekz/testcloud-wip/fedora-33-x86_64/01968005-testcloud/testcloud-0.4.0-4.fc33.noarch.rpm
28
29 # debugging cockpit crashes
30 sudo dnf debuginfo-install -y glib2 glibc libssh gnutls
31
32 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)
33 '