X-Git-Url: https://piware.de/gitweb/?p=bin.git;a=blobdiff_plain;f=build-cockpit-toolbox;h=55d87eb6e947b5a6625d187cd0d74ed292500721;hp=4ddd582cd88ec406e30e75d29d207c0788e93b7e;hb=refs%2Fheads%2Fmaster;hpb=94cb9b6b8120f24f79f0a51f12bfcdf3ab44b26b diff --git a/build-cockpit-toolbox b/build-cockpit-toolbox index 4ddd582..39844bd 100755 --- a/build-cockpit-toolbox +++ b/build-cockpit-toolbox @@ -4,8 +4,8 @@ NAME=${NAME:-cockpit} TAG=${TAG:-latest} toolbox rm --force $NAME || true -podman pull quay.io/cockpit/tasks:${TAG} -yes | toolbox create --image quay.io/cockpit/tasks:${TAG} -c $NAME +podman pull ghcr.io/cockpit-project/tasks:${TAG} +yes | toolbox create --image ghcr.io/cockpit-project/tasks:${TAG} -c $NAME # install some extra development and desktop tools toolbox run -c "$NAME" sh -exc ' @@ -16,14 +16,17 @@ sudo hostname -F /etc/hostname # enable manpages sudo sed -i s/nodocs// /etc/dnf/dnf.conf -sudo dnf install -y ansible man-db man-pages moreutils fd-find ripgrep gh \ +sudo dnf install -y ansible bash-completion man-db man-pages moreutils fd-find ripgrep gh git-delta neovim \ python3-boto python3-boto3 python3-openstacksdk libnotify \ simple-scan /usr/bin/scanimage /usr/bin/pngquant /usr/bin/convert pdfmerge \ - kpcli \ + cargo rustfmt clippy \ calibre qt5-qtwayland \ - chromium dbus-daemon tmt tmt-provision-virtual flatpak-builder flatpak-spawn + tmt flatpak-builder flatpak-spawn \ + fedpkg centpkg -# 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 +# commands to forward to the host +for cmd in podman toolbox nmcli eog evince; do + printf "#!/bin/sh\nexec flatpak-spawn --host $cmd \42\$@\42\n" | sudo tee /usr/local/bin/$cmd >/dev/null + sudo chmod a+x /usr/local/bin/$cmd +done '