cloudfoundry/sprout-bosh

Name: sprout-bosh

Owner: Cloud Foundry

Description: null

Created: 2015-06-26 23:39:12.0

Updated: 2018-01-02 23:41:40.0

Pushed: 2016-10-13 17:41:52.0

Homepage: null

Size: 279

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

sprout-wrap

This project uses soloist and librarian-chef to run a subset of the recipes in sprout's cookbooks.

Fork it to customize its attributes in soloistrc and the list of recipes you'd like to use for your team. You may also want to add other cookbooks to its Cheffile, perhaps one of the many community cookbooks. By default it configures an OS X Mavericks workstation for Ruby development.

Finally, if you've never used Chef before - we highly recommend you buy & watch this excellent 17 minute screencast by Ryan Bates.

Installation under El Capitan (OS X 10.11)
1. Install Command Line Tools
xcode-select --install

If you receive a message about the update server being unavailable and are on Mavericks, then you already have the command line tools.

2. Clone this project
git clone https://github.com/cloudfoundry/sprout-bosh.git
cd sprout-bosh
3. Install soloist & and other required gems

If you're running under rvm, rbenv, or chruby, you shouldn't preface the following commands with sudo.

sudo gem install bundler
bundle

If you receive errors like this:

clang: error: unknown argument: '-multiply_definedsuppress'

then try downgrading those errors like this:

sudo ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future bundle
4. Run soloist

[The caffeinate command will keep your computer awake while installing; depending on your network connection, soloist can take from 10 minutes to 2 hours to complete.]

caffeinate bundle exec soloist
5. Optionally run other commands to set up workstation
  1. copy Spectacle and Flycut to start on login
  2. run git-hooks & git secrets
    clone git@github.com:pivotal-sprout/sprout-git.git ~/workspace/sprout-git
    $
    le
    le exec soloist run_recipe sprout-git::sprout_hooks
    le exec soloist run_recipe sprout-git::sprout_secrets
    
  3. Mirror displays
  4. Configure Finder
  5. Add ~/pivotal to Finder sidenav (https://www.pivotaltracker.com/story/show/89970764)
  6. Add ~/pivotal/workspace to Finder sidenav (https://www.pivotaltracker.com/story/show/89970764)
  7. Remove 'All my files' from Finder sidenav and as start page (https://www.pivotaltracker.com/story/show/92454292)
  8. Configure Rubymine
  9. Update RubyMine to use Native ssh executable for git (https://www.pivotaltracker.com/story/show/89970316)
  10. Update RubyMine to use Darcula theme and Darcularge font profile
  11. Setup RubyMine to work with Go plugin:
    1. Install Go plugin:
    2. Enter plugin repository:
      • go to: preferences → Plugins → browse repositories
    3. install Go
    4. restart
    5. Configure Go SDK
    6. Click on “Set up SDK” in notification window or
    7. go to: project settings (cmd+;) -> Platform Settings -> SDKs
    8. Add SDK (plus icon in top of column) -> Go SDK -> select '/usr/local/Cellar/go/1.x.x/libexec' -> 'Choose'
  12. Gem install bundler (https://www.pivotaltracker.com/story/show/90239920)
    /workspace/bosh
    co develop
    install bundler -v 1.11.2
    
  13. Install BOSH gems
    /workspace/bosh
    co develop
    install bundler -v 1.11.2
    le
     error  "require': incompatible library version"
    pristine --all
    DIF incompatible library
     pg gem doesn't install, open a new terminal and try again. Really. It worked for me.
    
  14. Run the unit tests:
    ake spec:unit:director
    
  15. Install the integration tests dependencies:
    rt CFLAGS=-I/usr/local/opt/openssl/include
    rt LDFLAGS=-L/usr/local/opt/openssl/lib
    ake spec:integration:install_dependencies
    

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.