Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions Brewfile.vm
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Brewfile.vm — used by the VM acceptance test (scripts/vm-acceptance-test.sh)
# Full environment minus the large JetBrains IDEs and Cursor, which exceed the
# 50GB Tart base image disk limit. Everything else — CLI tools, Docker, iTerm2,
# MongoDB Compass, fonts — is included and tested.
#
# IDEs omitted: cursor, goland, intellij-idea, pycharm
# These are covered by the full Brewfile on a real machine.

# ── Taps ─────────────────────────────────────────────────────────────────────
tap "homebrew/cask-fonts"

# ── CLI Utilities ────────────────────────────────────────────────────────────
brew "git"
brew "gh" # GitHub CLI
brew "vim"
brew "fzf"
brew "ripgrep" # fast grep (rg)
brew "fd" # fast find
brew "bat" # better cat
brew "tmux"
brew "wget"
brew "jq" # JSON processor
brew "tree"

# ── Languages ────────────────────────────────────────────────────────────────
brew "go"
brew "pyenv" # Python version manager
brew "nvm" # Node version manager
brew "openjdk"
brew "maven"

# ── Cloud & DevOps ───────────────────────────────────────────────────────────
brew "kubernetes-cli" # kubectl
brew "kind" # local k8s clusters
brew "helm"
brew "terraform"
brew "oci-cli" # Oracle Cloud
brew "doctl" # DigitalOcean CLI

# ── Databases ────────────────────────────────────────────────────────────────
brew "mongosh" # MongoDB shell

# ── Fonts ────────────────────────────────────────────────────────────────────
cask "font-meslo-lg-nerd-font"

# ── GUI Apps ─────────────────────────────────────────────────────────────────
cask "iterm2"
cask "docker"
cask "mongodb-compass"
4 changes: 2 additions & 2 deletions scripts/vm-acceptance-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ done
echo "▶ Cloning repository into VM"
vm_ssh "git clone https://github.com/amcheste/mac-dev-setup ~/Repos/amcheste/mac-dev-setup"

echo "▶ Running setup.sh"
vm_ssh "cd ~/Repos/amcheste/mac-dev-setup && bash setup.sh"
echo "▶ Running setup.sh (using Brewfile.vm — excludes large IDEs)"
vm_ssh "cd ~/Repos/amcheste/mac-dev-setup && BREWFILE=Brewfile.vm bash setup.sh"

echo "▶ Copying acceptance-test.sh to VM"
vm_scp "$SCRIPT_DIR/acceptance-test.sh" "/tmp/acceptance-test.sh"
Expand Down
5 changes: 4 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ brew tap amcheste/mac-dev-setup https://github.com/amcheste/mac-dev-setup 2>/dev
# ── Brew Bundle ──────────────────────────────────────────────────────────────
echo ""
echo "▶ Installing packages (this may take a few minutes)..."
brew bundle --file="$REPO_DIR/Brewfile" \
# BREWFILE env var allows alternate package lists (e.g. Brewfile.vm for VM tests)
BREWFILE_PATH="${BREWFILE:-$REPO_DIR/Brewfile}"
echo " Using: $BREWFILE_PATH"
brew bundle --file="$BREWFILE_PATH" \
|| { echo "ERROR: brew bundle failed"; exit $FAILED; }

# ── Dotfiles ─────────────────────────────────────────────────────────────────
Expand Down