Created
August 19, 2015 12:50
-
-
Save jacoelho/f40d99c43ac69d3d832f to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
export HOMEBREW_CASK_OPTS="--appdir=/Applications" | |
RED=$(tput setaf 1) | |
GREEN=$(tput setaf 2) | |
NORMAL=$(tput sgr0) | |
msg_ok() { | |
echo "${GREEN}✓ ${1}${NORMAL}" | |
} | |
msg_fail() { | |
echo "${RED}✗ ${1}${NORMAL}" | |
} | |
command -v brew >/dev/null 2>&1 || { | |
msg_ok "installing brew" | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
} | |
msg_ok "brew update" && brew update >/dev/null | |
msg_ok "brew upgrade" && brew upgrade >/dev/null | |
brew list brew-cask >/dev/null 2>&1 || { | |
msg_ok "installing cask" | |
brew tap caskroom/homebrew-cask >/dev/null | |
brew install brew-cask >/dev/null | |
} | |
command -v VirtualBox >/dev/null 2>&1 || { | |
msg_ok "installing virtualbox" | |
brew cask install --force virtualbox >/dev/null | |
} | |
command -v docker-machine >/dev/null 2>&1 || { | |
msg_ok "installing docker-machine" | |
brew install docker-machine >/dev/null | |
} | |
command -v docker >/dev/null 2>&1 || { | |
msg_ok "installing docker" | |
brew install docker >/dev/null | |
} | |
command -v docker-compose >/dev/null 2>&1 || { | |
msg_ok "installing docker-compose" | |
brew install docker-compose >/dev/null | |
} | |
# docker-machine create --driver virtualbox dev | |
# eval "$(docker-machine env dev)" | |
# docker ps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment