-
-
Save jaredumbehr/dab50e0516047c198e48bd393a8bc647 to your computer and use it in GitHub Desktop.
Tests MacOS for xcode and installs devops tools.
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
#!/usr/bin/env bash | |
# Install all the things (except Microsoft Remote Desktop) | |
function install { | |
xcode-select --install | |
if ! type "brew" > /dev/null; then | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/$(whoami)/.zprofile | |
eval "$(/opt/homebrew/bin/brew shellenv)" | |
fi | |
brew up | |
brew tap phinze/homebrew-cask && brew install brew-cask | |
brew tap bwhaley/ssmsh https://github.com/bwhaley/ssmsh | |
brew tap microsoft/mssql-release https://github.com/Microsoft/homebrew-mssql-release | |
brew update | |
ACCEPT_EULA=y brew install msodbcsql mssql-tools | |
# Container management (alternative to docker: brew install podman) | |
brew install --cask docker | |
brew install --cask \ | |
drawio \ | |
postman \ | |
spectacle \ | |
# Not available for ARM | |
virtualbox \ | |
# Not available for ARM | |
vagrant \ | |
graphiql \ | |
wireshark \ | |
mysqlworkbench \ | |
pgadmin4 \ | |
slack \ | |
microsoft-teams \ | |
microsoft-remote-desktop \ | |
visual-studio-code | |
brew install git \ | |
rpm \ | |
gnu-tar \ | |
jq \ | |
yq \ | |
wget \ | |
kubectl \ | |
dnsmasq \ | |
cli53 \ | |
terraform \ | |
kubectx \ | |
composer \ | |
mysql-client \ | |
vault \ | |
ssmsh \ | |
kubie \ | |
zsh \ | |
tfenv \ | |
go \ | |
azure-cli \ | |
mveritym/homebrew-mel/kubedecode \ | |
certbot \ | |
podman \ | |
minikube | |
# Installing Rust using rustup will also install cargo | |
brew install rustup && rustup-init | |
# Ansible and awscli | |
pip3 install ansible awscli --user | |
# WPCLI | |
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar | |
chmod +x wp-cli.phar | |
mv wp-cli.phar /usr/local/bin/wp | |
wp --info | |
# NVM | |
brew install nvm && \ | |
mkdir ~/.nvm && \ | |
export NVM_DIR="$HOME/.nvm" && \ | |
. "/usr/local/opt/nvm/nvm.sh" && \ | |
nvm install --latest-npm | |
# SSH KeyGen | |
ssh-keygen -t rsa -b 4096 | |
cat << EOF > ~/.ssh/config.bak | |
Host * | |
User $(whoami) | |
Port 22 | |
ServerAliveInterval 60 | |
PreferredAuthentications publickey | |
IdentityFile ~/.ssh/id_rsa | |
EOF | |
# gcloud | |
wget https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-367.0.0-darwin-x86_64.tar.gz && \ | |
tar -xvf google-cloud-sdk-367.0.0-darwin-x86_64.tar.gz && \ | |
./google-cloud-sdk/install.sh | |
# gcloud setup | |
gcloud init | |
gcloud auth configure-docker | |
} | |
install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment