Skip to content

Instantly share code, notes, and snippets.

@jfear
Last active July 7, 2020 14:00
Show Gist options
  • Save jfear/47b0224fc1b9b8303736c91c234c5c98 to your computer and use it in GitHub Desktop.
Save jfear/47b0224fc1b9b8303736c91c234c5c98 to your computer and use it in GitHub Desktop.
The script I use generate my podman container development environment.
#!/bin/bash -e
toolbox rm --force fedora-toolbox-32
echo "## Creating development container..."
toolbox create
run="toolbox run"
echo "## Updating Image"
$run sudo dnf update -y
echo "## Installing development pacakges"
$run sudo dnf groupinstall -y "Development Tools"
$run sudo dnf install -y gcc libnsl langpacks-en golang
echo "## Installing Development Tools"
$run sudo dnf install -y \
zsh \
tmux \
fzf \
ripgrep \
autojump \
autojump-zsh \
fd-find \
bat \
tokei \
exa \
procs \
direnv \
neovim \
xclip \
xsel \
htop \
hugo \
pandoc
echo "## Installing VScode"
$run sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
$run 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'
$run sudo dnf check-update
$run sudo dnf install -y code xorg-x11-apps libX11-xcb
echo "## Installing Singularity"
$run sudo dnf install -y singularity
$run sudo chmod 4755 /usr/libexec/singularity/bin/starter
$run sudo sed -i "s/^\(enable overlay = \)try/\1no/" /etc/singularity/singularity.conf
echo "## Installing shfmt"
$run GO111MODULE=on go get mvdan.cc/sh/v3/cmd/shfmt
echo "## Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment