Skip to content

Instantly share code, notes, and snippets.

@jjtroberts
Last active June 1, 2023 15:04
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jjtroberts/d8daea0d480da97cec18bcffb41b6923 to your computer and use it in GitHub Desktop.
Save jjtroberts/d8daea0d480da97cec18bcffb41b6923 to your computer and use it in GitHub Desktop.
Tests MacOS for xcode and installs devops tools.
#!/usr/bin/env bash
# Install all the things
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 \
cosign
# 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