Skip to content

Commit

Permalink
updates instructions to use bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
bmabey committed May 26, 2010
1 parent 3659a55 commit c0f115a
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,27 @@ site/docs for more info on how Vagrant works.
To use vagrant you will need to have installed [VirtualBox](http://www.virtualbox.org/wiki/Downloads) *and ran it once*. After that
these commands should get you up and running:

gem install bundler
bundle install
git submodule update --init
gem install vagrant
vagrant box add lucid64 http://s3.lds.li/vagrant/lucid64.box
vagrant up
bundle install
bundle exec vagrant box add lucid64 http://s3.lds.li/vagrant/lucid64.box
bundle exec vagrant up

This will take a while the first time since it is downloading all the needed packages. If this runs
successfully you should be able to hit the various services:

* **Hudson** - http://localhost:4088
* **Hudson via nginx** - http://hudson.codebox:4080
* **ssh** - via `vagrant ssh`
* **ssh** - via `bundle exec vagrant ssh`

For the services proxied via nginx you will need to add the appropriate entries to your `hosts` file.
One easy way to do this is with the ghost gem:

gem install ghost
sudo ghost add hudson.codebox

To rerun chef you can either type `vagrant reload` on the host machine or go to `/tmp/vagrant_chef` on
the VM and type `sudo chef-solo -c solo.rb -j dna.json`. I like running chef-solo on the VM since the
reload command actually takes the VM down, brings it up, and remounts everything.

## Troubleshooting

If vagrant throws an error on `#to_json` then try downgrading the json gems:

gem install json --version 1.2.4
gem install json_pure --version 1.2.4
gem uninstall json # uninstall the more recent versions
gem uninstall json_pure # uninstall the more recent versions
To rerun chef you can either type `bundle exec vagrant reload` or `bundle exec vagrant provision`. The `provision` command is much faster and is preferred. The `reload` command will restart the VM, remount the FS, and setup the port forwarding.

## TODO
* Gerrit

0 comments on commit c0f115a

Please sign in to comment.