-
Create temporary directory.
mkdir bg-tb-tmp cd bg-tb-tmp
-
Get latest TorqueBox build from CI and put it in earlier created directory.
-
Save the script as
slim.rb
. -
Run the script.
ruby slim.rb torquebox-dist-bin.zip
-
Move
boxgrinder-torquebox
directory to your home directory.mv boxgrinder-torquebox ~/
-
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
Get BoxGrinder REST surces from Git repository:
mkdir ~/git
cd ~/git
git clone git://github.com/boxgrinder/boxgrinder-rest.git
cd boxgrinder-rest
jruby -S gem install bundler
jruby -S bundle install
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
.
cd ~/boxgrinder-torquebox/jboss
./bin/run.sh -b 0.0.0.0 -c boxgrinder-rest
Got to http://localhost:8080/api.