Skip to content

Instantly share code, notes, and snippets.

@tommyh
Created January 2, 2012 06:37
Show Gist options
  • Save tommyh/1549606 to your computer and use it in GitHub Desktop.
Save tommyh/1549606 to your computer and use it in GitHub Desktop.
OSX Lion - Machine Bootstrap (rails, mysql, rvm, rubymine, etc)
# Prereqs
# os x (i have lion)
# install Xcode from the "App Store"
#install soloist gem
sudo gem install soloist --no-ri --no-rdoc
#create a dir to store your soloist cookbooks
mkdir -p ~/projects && cd ~/projects
mkdir -p chef/cookbooks/pivotal_workstation && cd chef/cookbooks/pivotal_workstation
curl -L http://github.com/pivotal/pivotal_workstation/tarball/master | gunzip | tar xvf - --strip=1
#create a soloistrc file
cd ~/projects
echo "cookbook_paths:
- ./chef/cookbooks
recipes:
- pivotal_workstation::git
- pivotal_workstation::git_config_global_defaults
- pivotal_workstation::bash_profile
- pivotal_workstation::bash_profile-no_sudo_gem_install
- pivotal_workstation::bash_profile-ps1
- pivotal_workstation::homebrew
- pivotal_workstation::rvm
- pivotal_workstation::mysql
- pivotal_workstation::chrome
- pivotal_workstation::rubymine
- pivotal_workstation::rubymine_preferences_pivotal
- pivotal_workstation::gem_no_rdoc_no_ri
" > soloistrc
#run soloist
cd ~/projects
soloist
#install ruby
rvm install ruby-1.9.2-p180
rvm use ruby-1.9.2-p180
#bootstrap a project
cd ~/projects
git clone git@github.com:FOO/BAR.git
cd BAR
gem install bundler
bundle
rake db:migrate db:test:prepare
rake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment