#!/bin/sh
set -eux
-NAME=cockpit
+NAME=${NAME:-cockpit}
+TAG=${TAG:-latest}
toolbox rm --force $NAME || true
-podman pull quay.io/cockpit/tasks
-yes | toolbox create --image quay.io/cockpit/tasks -c $NAME
+podman pull quay.io/cockpit/tasks:${TAG}
+yes | toolbox create --image quay.io/cockpit/tasks:${TAG} -c $NAME
# install some extra development and desktop tools
toolbox run -c "$NAME" sh -exc '
pandoc texlive-ec texlive-pdfjam \
/usr/bin/scanimage /usr/bin/pngquant /usr/bin/convert \
kpcli \
+ calibre qt5-qtwayland \
dbus-daemon tmt tmt-provision-virtual
# debugging cockpit crashes