]> piware.de Git - bin.git/blob - build-cockpit-toolbox
build-*-toolbox: Ensure that container image is current
[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     calibre qt5-qtwayland
23
24 # debugging cockpit crashes
25 sudo dnf debuginfo-install -y glib2 glibc libssh gnutls
26
27 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)
28 '