You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by David Lutterkort <lu...@redhat.com> on 2010/09/01 00:27:54 UTC

Re: [PATCH 0/2] Deltacloud Core JRuby Compatibility

On Tue, 2010-08-31 at 16:06 -0400, Ben Browning wrote:
> You'll notice that we don't pull in eventmachine, thin, or rerun
> gems under JRuby. Because there is no thin gem for JRuby we use
> webrick for the deltacloudd command (patch 2/2).

ACK. Is Webrick the recommended web server under jruby ? I assume under
torquebox you do something completely different to tie into Tomcat.

David



Re: [PATCH 0/2] Deltacloud Core JRuby Compatibility

Posted by Benjamin Browning <bb...@redhat.com>.
David,

On Aug 31, 2010, at 6:27 PM, David Lutterkort wrote:
> 
> ACK. Is Webrick the recommended web server under jruby ? I assume under
> torquebox you do something completely different to tie into Tomcat.


Webrick really is only suitable for development. For production deployment, you'd want to use something like TorqueBox, GlassFish, or Tomcat and jruby-rack / warbler. 

For TorqueBox, all you need to do is install the deltacloud-core gem (once the jruby patches are pushed upstream) and create a deployment descriptor in $TORQUEBOX_HOME/jboss/server/default/deploy/deltacloud-rack.yml.

Example below and at http://gist.github.com/559901

---
application:
  RACK_ROOT: $TORQUEBOX_HOME/jruby/lib/ruby/gems/1.8/gems/bbrowning-deltacloud-core-0.0.4-java
  RACK_ENV: production
web:
  context: /deltacloud
environment:
  API_DRIVER: ec2

This sets up deltacloud-core at http://localhost:8080/deltacloud running the ec2 driver.

Ben