Created
January 2, 2012 06:37
-
-
Save tommyh/1549606 to your computer and use it in GitHub Desktop.
OSX Lion - Machine Bootstrap (rails, mysql, rvm, rubymine, etc)
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
# 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 [email protected]: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