Last active
May 21, 2024 12:32
-
-
Save corneil/7d06a01f6958f482c1cb47e31d65e033 to your computer and use it in GitHub Desktop.
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/bash | |
set +e | |
brew doctor | |
RC=$? | |
if ((RC>0); then | |
echo "Installing: Homebrew" | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
test -d ~/.linuxbrew && eval "$(~/.linuxbrew/bin/brew shellenv)" | |
test -d /home/linuxbrew/.linuxbrew && eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" | |
echo "eval \"\$($(brew --prefix)/bin/brew shellenv)\"" >> ~/.bashrc | |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" | |
fi | |
set -e | |
echo "Installing: docker" | |
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do sudo apt-get remove $pkg; done | |
# Add Docker's official GPG key: | |
sudo apt update | |
sudo apt install ca-certificates curl | |
sudo install -m 0755 -d /etc/apt/keyrings | |
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc | |
sudo chmod a+r /etc/apt/keyrings/docker.asc | |
# Add the repository to Apt sources: | |
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \ | |
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
sudo apt update | |
# install docker engine | |
sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin | |
# add permissions | |
sudo groupadd docker | |
sudo usermod -aG docker $USER | |
newgrp docker | |
# test docker | |
sudo docker run hello-world | |
# Install xmlutils | |
echo "Installing: xmlutils" | |
sudo apt install xsltproc libxml2-utils | |
echo "Installing: gcc, bash-git-prompt,docker-compose,jfrog-cli,k9s,kind,kubernetes-cli,minikube,yq" | |
brew install gcc bash-git-prompt docker-compose jfrog-cli k9s kind kubernetes-cli minikube yq | |
# Install Trivy | |
echo "Installing: Trivy" | |
brew install aquasecurity/trivy/trivy | |
# Install carvel tools | |
echo "Installing: Carvel CLI" | |
brew tap carvel-dev/carvel | |
brew install ytt kapp kctrl kbld imgpkg vendir | |
# Install mustache | |
echo "Installing: Mustache" | |
curl -sSL https://github.com/cbroglie/mustache/releases/download/v1.4.0/mustache_1.4.0_linux_amd64.tar.gz | sudo tar -C /usr/local/bin/ --no-same-owner -xzv mustache | |
# Install kail | |
echo "Installing: kail" | |
curl -sSL https://github.com/boz/kail/releases/download/v0.17.4/kail_v0.17.4_linux_amd64v3.tar.gz | sudo tar -C /usr/local/bin/ --no-same-owner -xzv kail | |
# Install nvm | |
echo "Installing: NVM" | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash | |
echo "Installing: Node" | |
nvm install --lts | |
nvm use --lts | |
echo "Installing: SDKMAN" | |
curl -s "https://get.sdkman.io" | bash | |
source "$HOME/.sdkman/bin/sdkman-init.sh" | |
echo "source \"\$HOME/.sdkman/bin/sdkman-init.sh\"" > .bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment