Skip to content

Instantly share code, notes, and snippets.

@d
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d/00a3ea3590453cf147c7 to your computer and use it in GitHub Desktop.
Save d/00a3ea3590453cf147c7 to your computer and use it in GitHub Desktop.
install docker on a Mac
#!/bin/bash
set -e -u
set -x
_main() {
softwareupdate --install --all
type brew || install_brew
install_packages
}
install_brew() {
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
}
install_packages() {
local readonly APPS=(
docker
boot2docker
hub
)
local readonly CASK_APPS=(
virtualbox
)
brew install caskroom/cask/brew-cask
brew update
brew cask install "${CASK_APPS[@]}"
brew install "${APPS[@]}"
}
_main
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment