X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=blobdiff_plain;f=build-cockpit-toolbox;h=a086c48d8de1893c2856ddf19e6f92fef0873061;hp=5be408830f343d137f0d2fbc3b8d4d9a70db57ef;hb=90cfde43c35e86b4db48f7bbcab16b959a5f2e96;hpb=4600a93a14951393cbe0673e5f168bc04f9f0748 diff --git a/build-cockpit-toolbox b/build-cockpit-toolbox index 5be4088..a086c48 100755 --- a/build-cockpit-toolbox +++ b/build-cockpit-toolbox @@ -1,10 +1,11 @@ #!/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 ' @@ -15,15 +16,15 @@ sudo hostname -F /etc/hostname # enable manpages sudo sed -i s/nodocs// /etc/dnf/dnf.conf -sudo dnf install -y ansible man-pages moreutils \ - python3-boto python3-boto3 libnotify \ - pandoc texlive-ec texlive-pdfjam \ +sudo dnf install -y ansible man-db man-pages moreutils fd-find ripgrep gh \ + python3-boto python3-boto3 python3-openstacksdk libnotify \ + pandoc texlive-ec texlive-pdfjam texlive-beamer \ /usr/bin/scanimage /usr/bin/pngquant /usr/bin/convert \ + kpcli \ calibre qt5-qtwayland \ - dbus-daemon + chromium dbus-daemon tmt tmt-provision-virtual flatpak-builder flatpak-spawn -# debugging cockpit crashes -sudo dnf debuginfo-install -y glib2 glibc libssh gnutls - -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) +# run podman in toolbox +printf "flatpak-spawn --host podman \42\$@\42\n" | sudo tee /usr/local/bin/podman >/dev/null +sudo chmod a+x /usr/local/bin/podman '