Hi guys, I tried to run Deltacloud API (latest master) on TorqueBox[1] using jRuby 1.7.1.
First, setup environment: 1. Get F17 virtual machine with minimal install 2. Create some non-privileged user 3. su -c 'yum install gcc gcc-c++ make tar java-1.7.0-openjdk git' 4. Disable firewall: $ su -c 'iptables -F' 5. Install rbenv: - $ git clone git://github.com/sstephenson/rbenv.git ~/.rbenv - $ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile - $ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile - $ exec $SHELL -l - $ git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build 6. Now install jRuby: - $ rbenv install jruby-1.7.1 - $ rbenv local jruby-1.7.1 - $ gem install bundler 7. Install TorqueBox (>100MB !): - $ gem install torquebox-server - $ rbenv rehash 8. And clone Deltacloud API: - $ git clone git://github.com/mifo/deltacloud.git - $ cd deltacloud/server && bundle 9. And deploy Deltacloud API to torquebox: - $ cd deltacloud/server && torquebox deploy - $ API_FRONTEND="deltacloud,cimi,ec2" torquebox run -b 0.0.0.0 Now if you have TorqueBox running, you can access Deltacloud API on this URL: http://YOUR_VM_IP:8080/ You can see that Deltacloud will offer you all three frontends. All three works perfecly. I tried to run 'cimiplan' tests against that URL and all tests pass. I got few failures for 'test:deltacloud' but nothing major (like wrong 'Server' header, blobs not supported, etc). Also, since I started using 'cimiplan' as a 'benchmark' :-) I got interesting timings. All tests finish in 12 seconds, which is very cool time. -- Michal [1] http://torquebox.org/ -- Michal Fojtik <[email protected]> Deltacloud API, CloudForms
