Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 39 lines (20 sloc) 1.41 kB
6767017 @joevandyk Update README
authored
1 This is a sample application used to illustrate how to use chef-solo and bundler and vagrant.
567bdb6 @joevandyk Added README.
authored
2
6767017 @joevandyk Update README
authored
3 In four commands, you download a new linux VM, configure it with chef-solo, and start up a REE/Sinatra/Unicorn/Bundler iPhone mirror of http://news.ycombinator.com.
567bdb6 @joevandyk Added README.
authored
4
6767017 @joevandyk Update README
authored
5 You can then edit the chef cookbooks, run one command, and watch the VM use the new cookbooks.
567bdb6 @joevandyk Added README.
authored
6
7
141b002 @joevandyk Update README
authored
8 ==========================================
9 INSTRUCTIONS
10
567bdb6 @joevandyk Added README.
authored
11 1. Install Virtual Box. http://www.virtualbox.org/wiki/Downloads
12
141b002 @joevandyk Update README
authored
13
567bdb6 @joevandyk Added README.
authored
14 2. Checkout source code to project
67efacf @joevandyk This should be obvious, I suppose.
authored
15 git clone git://github.com/joevandyk/fixienews.git && cd fixienews
567bdb6 @joevandyk Added README.
authored
16
141b002 @joevandyk Update README
authored
17
567bdb6 @joevandyk Added README.
authored
18 3. Install vagrant gem and download Ubuntu 10.04 (lucid)
19 gem install vagrant
141b002 @joevandyk Update README
authored
20 vagrant box add lucid32 http://files.vagrantup.com/lucid32.box
21
567bdb6 @joevandyk Added README.
authored
22
23 4. Start the vagrant box, runs chef-solo, starts up the services
24 vagrant up
141b002 @joevandyk Update README
authored
25 ==========================================
26
27
28
567bdb6 @joevandyk Added README.
authored
29
30 And that's it! Go to http://192.168.10.35:8080 to view it. Preferably with an iPhone.
31
32 The key files to look at:
33 Vagrantfile
34 config/cookbooks/vagrant_main/recipes/default.rb
35
36 You can now edit the recipe file and run "vagrant provision" in the root project directory, and you can see how the cookbooks will run.
37
38 The gems (nokogiri, rack, unicorn, sinatra) have been bundled in the vendor directory via bundler 1.0. No installation of the gems is necessary on the VM -- the only gem that's necessary to install is bundler (and it's installed via chef).
Something went wrong with that request. Please try again.