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
10 # install some extra development and desktop tools
11 toolbox run -c "$NAME" sh -exc '
13 echo "cockpit-toolbox" | sudo tee /etc/hostname
14 sudo hostname -F /etc/hostname
17 sudo sed -i s/nodocs// /etc/dnf/dnf.conf
19 sudo dnf install -y ansible man-pages moreutils gh \
20 python3-boto python3-boto3 python3-openstacksdk libnotify \
21 pandoc texlive-ec texlive-pdfjam texlive-beamer \
22 /usr/bin/scanimage /usr/bin/pngquant /usr/bin/convert \
24 calibre qt5-qtwayland \
25 chromium dbus-daemon flatpak-builder flatpak-spawn
27 # HACK: tmt-provision-virtual has way too heavy dependencies: https://bugzilla.redhat.com/show_bug.cgi?id=2093717
30 Summary: dummy dependencies
33 # https://bugzilla.redhat.com/show_bug.cgi?id=2093717
34 Provides: python3-libguestfs
35 Provides: libguestfs-tools-c
36 # also for tmt-provision-virtual
41 Dummy dependencies to avoid bloat.
45 rpmbuild --define "_topdir /tmp/rpmbuild-dummy" -bb /tmp/spec
46 sudo rpm -i --verbose /tmp/rpmbuild-dummy/RPMS/x86_64/dummy-deps-999-1.fc*.x86_64.rpm
47 rm -rf /tmp/rpmbuild-dummy /tmp/spec
49 sudo dnf install -y --setopt=install_weak_deps=False tmt tmt-provision-virtual
51 # run podman in toolbox
52 printf "flatpak-spawn --host podman \42\$@\42\n" | sudo tee /usr/local/bin/podman >/dev/null
53 sudo chmod a+x /usr/local/bin/podman
55 # debugging cockpit crashes
56 sudo dnf debuginfo-install -y glib2 glibc libssh gnutls