You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by Michal Fojtik <mf...@redhat.com> on 2012/12/13 14:13:49 UTC
Deltacloud on Torquebox
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 <mf...@redhat.com>
Deltacloud API, CloudForms
Re: Deltacloud on Torquebox
Posted by Martyn Taylor <mt...@redhat.com>.
This is great stuff Michal.
On 12/13/2012 01:13 PM, Michal Fojtik wrote:
> 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/
>
Re: Deltacloud on Torquebox
Posted by David Lutterkort <lu...@redhat.com>.
Hi Michal,
thanks for the writeup - and great news; can you put this up on the
website or the wiki ?
What's tte reason for turning off iptables ? That's the one step I'd
like to see improved ...
David
On Thu, 2012-12-13 at 14:13 +0100, Michal Fojtik wrote:
> 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/
>