Skip to content

Latest commit

 

History

History
78 lines (52 loc) · 1.84 KB

README.md

File metadata and controls

78 lines (52 loc) · 1.84 KB

Installation

TorqueBox

  1. Create temporary directory.

     mkdir bg-tb-tmp
     cd bg-tb-tmp
    
  2. Get latest TorqueBox build from CI and put it in earlier created directory.

  3. Save the script as slim.rb.

  4. Run the script.

     ruby slim.rb torquebox-dist-bin.zip
    
  5. Move boxgrinder-torquebox directory to your home directory.

     mv boxgrinder-torquebox ~/
    
  6. Add symlinks to your ~/.bashrc file.

     export BG_TORQUEBOX_HOME=$HOME/boxgrinder-torquebox
     export JBOSS_HOME=$BG_TORQUEBOX_HOME/jboss
     export JRUBY_HOME=$BG_TORQUEBOX_HOME/jruby
     export PATH=$JRUBY_HOME/bin:$PATH
    

BoxGrinder REST

Get BoxGrinder REST surces from Git repository:

mkdir ~/git
cd ~/git
git clone git://github.com/boxgrinder/boxgrinder-rest.git

Required gems

cd boxgrinder-rest
jruby -S gem install bundler
jruby -S bundle install

Deployment file

Create a knob file for TorqueBox.

application:
  root: /home/goldmann/git/boxgrinder-rest
  env: development
web:
  context: /
queues:
  # REST => NODE
  /queues/boxgrinder_rest/image:

  # NODE => REST
  /queues/boxgrinder_rest/manage/node:
  /queues/boxgrinder_rest/manage/image:
topics:
  # REST => NODE
  /topics/boxgrinder_rest/node:
messaging:
  /queues/boxgrinder_rest/manage/node:  NodeConsumer
  /queues/boxgrinder_rest/manage/image: ImageConsumer

Save above as ~/boxgrinder-torquebox/jboss/server/boxgrinder-rest/deploy/boxgrinder-rest-knob.yml.

Launching

cd ~/boxgrinder-torquebox/jboss
./bin/run.sh -b 0.0.0.0 -c boxgrinder-rest

Verifying

Got to http://localhost:8080/api.