Last active
August 29, 2015 14:17
-
-
Save d/00a3ea3590453cf147c7 to your computer and use it in GitHub Desktop.
install docker on a Mac
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 -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