]> piware.de Git - bin.git/blob - build-cockpit-toolbox
build-cockpit-toolbox: Install moreutils
[bin.git] / build-cockpit-toolbox
1 #!/bin/sh
2 set -eux
3 NAME=cockpit
4
5 toolbox rm --force $NAME || true
6 yes | toolbox create --image quay.io/cockpit/tasks -c $NAME
7
8 # install cockpit's build deps and other development tools
9 toolbox run -c "$NAME" sh -exc '
10 # useful hostname
11 echo "cockpit-toolbox" | sudo tee /etc/hostname
12 sudo hostname -F /etc/hostname
13
14 # enable manpages
15 sudo sed -i s/nodocs// /etc/dnf/dnf.conf
16
17 sudo dnf install -y ansible man-pages standard-test-roles pwgen moreutils \
18     python3-boto python3-boto3 libnotify \
19     pandoc texlive-ec texlive-pdfjam \
20     /usr/bin/scanimage /usr/bin/pngquant /usr/bin/convert \
21     calibre qt5-qtwayland
22
23 sudo dnf debuginfo-install -y glib2 glibc libssh gnutls
24
25 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)
26 '