]> piware.de Git - bin.git/blob - build-cockpit-toolbox
debian-backport-cockpit: bullseye is Debian 11
[bin.git] / build-cockpit-toolbox
1 #!/bin/sh
2 set -eux
3 NAME=${NAME:-cockpit}
4 TAG=${TAG:-latest}
5
6 toolbox rm --force $NAME || true
7 podman pull quay.io/cockpit/tasks:${TAG}
8 yes | toolbox create --image quay.io/cockpit/tasks:${TAG} -c $NAME
9
10 # install some extra development and desktop tools
11 toolbox run -c "$NAME" sh -exc '
12 # useful hostname
13 echo "cockpit-toolbox" | sudo tee /etc/hostname
14 sudo hostname -F /etc/hostname
15
16 # enable manpages
17 sudo sed -i s/nodocs// /etc/dnf/dnf.conf
18
19 sudo dnf install -y ansible man-pages moreutils \
20     python3-boto python3-boto3 libnotify \
21     pandoc texlive-ec texlive-pdfjam \
22     /usr/bin/scanimage /usr/bin/pngquant /usr/bin/convert \
23     kpcli \
24     calibre qt5-qtwayland \
25     dbus-daemon tmt tmt-provision-virtual
26
27 # debugging cockpit crashes
28 sudo dnf debuginfo-install -y glib2 glibc libssh gnutls
29
30 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)
31 '