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. Open port the port 8080 on firewall.

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/

  • No labels