]> piware.de Git - bin.git/blob - build-cockpit-toolbox
build-cockpit-toolbox: Support running podman
[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 gh \
20     python3-boto python3-boto3 libnotify \
21     pandoc texlive-ec texlive-pdfjam texlive-beamer \
22     /usr/bin/scanimage /usr/bin/pngquant /usr/bin/convert \
23     kpcli \
24     calibre qt5-qtwayland \
25     chromium dbus-daemon tmt tmt-provision-virtual flatpak-builder flatpak-spawn
26
27 # run podman in toolbox
28 printf "flatpak-spawn --host podman \42\$@\42\n" | sudo tee /usr/local/bin/podman >/dev/null
29 sudo chmod a+x /usr/local/bin/podman
30
31 # debugging cockpit crashes
32 sudo dnf debuginfo-install -y glib2 glibc libssh gnutls
33 '