-
-
Save garrett/ab2d09c9da55353dac63f56409b95369 to your computer and use it in GitHub Desktop.
Cockpit development container toolbox script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -eux | |
NAME=fedora-toolbox-30 | |
if [ -n "${TOOLBOX_RELEASE:-}" ]; then | |
RELEASE="--release $TOOLBOX_RELEASE" | |
NAME="$NAME-$TOOLBOX_RELEASE" | |
else | |
RELEASE='' | |
fi | |
toolbox rm --force $NAME || true | |
toolbox create $RELEASE -c $NAME | |
# install cockpit's build deps and other development tools | |
toolbox run -c "$NAME" sh -exec '\ | |
sudo dnf -y install glibc-all-langpacks | |
sudo dnf builddep -y cockpit | |
sudo dnf install -y make npm fontconfig git valgrind chromium-headless \ | |
libvirt-daemon-kvm libvirt-client python3-libvirt \ | |
virt-viewer libappstream-glib \ | |
expect python3-pycodestyle python3-pyflakes \ | |
fedpkg /usr/bin/oc /usr/bin/genisoimage \ | |
man-pages socat wget genisoimage vim-enhanced \ | |
ansible standard-test-roles rsync | |
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc | |
sudo sh -c "echo -e \"[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc\" > /etc/yum.repos.d/vscode.repo" | |
sudo dnf -y install code gvim vim htop pngquant optipng cargo fish hub \ | |
waifu2x-converter-cpp sqlitebrowser the_silver_searcher iperf3 | |
sudo npm install -g jshint | |
sudo dnf clean packages | |
' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment