Skip to content

Instantly share code, notes, and snippets.

@leonelgalan
Created February 18, 2016 15:23
Show Gist options
  • Save leonelgalan/085db19f4eeeb01c6e75 to your computer and use it in GitHub Desktop.
Save leonelgalan/085db19f4eeeb01c6e75 to your computer and use it in GitHub Desktop.
Setting up Code Climate with Docker/Docker Machine
: Please update Homebrew often and make sure "Your system is ready to brew."
brew update && brew doctor
: Install VirtualBox
brew tap caskroom/cask
brew cask install virtualbox
: Install/Setup Docker
brew install docker
brew install docker-machine
docker-machine create --driver virtualbox default
eval "$(docker-machine env default)"
docker version
: Instead of "Cannot connect to the Docker daemon. ...", it should show Server
: and it''s properties
brew tap codeclimate/formulae
brew install codeclimate
codeclimate init
codeclimate engines:install
codeclimate analyze
: Make sure you run `eval "$(docker-machine env default)"` every time you need
: docker configured, including when you need it to run linter-codeclimate on
: Atom, start atom from a terminal in which you've setup docker.
eval "$(docker-machine env default)" && atom .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment