forked from crowbar/crowbar
-
Notifications
You must be signed in to change notification settings - Fork 6
Crowbar 2 build instructions
cloudedge edited this page Jul 15, 2012
·
8 revisions
These are VERY early notes! Please update and be patient.
Note: We are working on branch release/rails3anddb/master
- Build a Ubuntu 12.04 environment
1
sudo -i apt-get updateapt-get install curl git-core ruby ssh- read https://github.com/galthaus/railsready
- `wget --no-check-certificate -O crowbar.sh https://raw.github.com/galthaus/railsready/master/crowbar.sh && bash crowbar.sh'
- verify:
rvm listandgem list - if rails is not in the gem list,
gem install rails
- get the code
git clone https://github.com/dellcloudedge/barclamp-crowbar.gitmkdir /opt/dellmv barclamp-crowbar /opt/dellcd /opt/dell/barclamp-crowbargit checkout release/rails3anddb/mastercd /crowbar_frameworkbundle
- setup offline mode (or configure a chef server)
- copy over cache into db (you need to supply the cache dump from an existing Crowbar Utils..Export)
vi config/config/environments/development.rb- change CHEF_ONLINE to be
CHEF_ONLINE = false #File.exist? CHEF_CLIENT_KEY - change OFFLINE_FILES_DIR to match where you copied the cache files
- prep environment
cd configcp catalog.yml.example catalog.yml
- run the code
script/rails server- open http://[your server ip]:3000/ in a friendly browser (hint, IE is not friendly)