Wednesday, June 6, 2012

OpenShift Primer Demo - Drools Planner rises to new heights in the Clouds

The following demo is an OpenShift World Premier for the Drools Planner Project.

I am a fan of the Drools Planner project and know the lead Geoffrey for some time now. I have always wondered why this project was not showcasing in an OpenShift demo and we got to chatting about it. I promised to provide the HowTo if he would push me a working WAR file, which he did that same night.

The demo is available live online here: http://droolsplanner-onthe.rhcloud.com/droolsplanner

Here is how to run the demo application from any OpenShift instance, which will highlight a vehicle routing (planning) problem that optimizes and refreshes your browser every few seconds. Note that the performance is a bit slower to resolve the problem than on a local machine, but that is just the limiting resources that have been allocated to my OpenShift instance.


Drools Planner on OpenShift Express



Installing the Drools Planner tool on OpenShift was never easier!

Running on OpenShift

Create an account at http://openshift.redhat.com/
Create a jbossas-7 application
rhc app create -a droolsplanner -t jbossas-7
Add this upstream openshift-droolsplanner repo
cd droolsplanner
git remote add upstream -m master git://github.com/eschabell/openshift-droolsplanner.git
git pull -s recursive -X theirs upstream master
# note that the git pull above can be used later to pull updates.
Then push the repo upstream
git push
That's it, you can now checkout your application at:
http://droolsplanner-$your_domain.rhcloud.com/droolsplanner


You too can now be a Planner in the Clouds in minutes! ;-)