Eric D. Schabell: AppDev in the Cloud: How To Run JBoss BRMS in a Container

Monday, December 5, 2016

AppDev in the Cloud: How To Run JBoss BRMS in a Container

appdev cloud
Containerized JBoss Business Rules Management System!
I have a series of articles where I explore with you the reasons why application developers can't ignore their stacks anymore, which refers to the Cloud based infrastructures they working in their daily jobs.

This led to my explorations of the possibility to create that Cloud based infrastructure locally as a substitution for the full blown Red Hat Cloud Suite experience.

What would be nice I thought, was to have some form of local private Cloud that was just the same as what you are experiencing at work where full data centers are used to host an organizations Cloud experience.

appdev cloud
First, make sure you have installed the
OpenShift Container Platform.
This led first to an example project that installs Red Hat OpenShift Enterprise (OSE) as an image through the Red Hat Container Development Kit (CDK).

Next, I gave you the JBoss BRMS installation example for use on OSE. This was a perfectly fine way to work, but the ultimate goal is of course to keep up with the latest products that Red Hat provides.

With that in mind I went off looking for a way to provide you with Red Hat OpenShift Container Platform (OCP), in the same easy to use demo format. The results of that project was presented in a previous article, but that is not the end of this story.

Containerize JBoss Business Rules Management System (BRMS)

Once you have installed OpenShift on your machine, either the Red Hat CDK or OCP, then the next step is to start exploring your application development options with Red Hat JBoss middleware products.

This section will take you through another simple to install example project that gives you a fully operational, fresh out of the box installation of JBoss BRMS. Not only that, it will be a containerized installation that is created on your OpenShift installation!

  1. First ensure you have an OpenShift container based installation, such as one of the following installed first:
    appdev cloud
    Watch the container building live on OpenShift
    Container Platform.
  2. Add products to installs directory.
  3. Run 'init.sh' or 'init.bat' file. 'init.bat' must be run with Administrative privileges:
   # The installation needs to be pointed to a running version
   # of OpenShift, so pass an IP address such as:
   #
   $ ./init.sh 192.168.99.100  # example for OCP.

   $ ./init.sh 10.1.2.2        # example for CDK.
Now log in to JBoss BRMS and start developing containerized rules projects (the address will be generated by the init script).
appdev cloud
The pod shown which is your JBoss BRMS container on
OpenShift Container Platform.
Be sure to give the container time to not only start up, but to start up JBoss EAP with JBoss BRMS. You can check this by finding the deployed pod in the OpenShift console and looking into the logs tab.

That's it, you are now able to start developing business logic and events at your leisure.

Stay tuned for more by watching for updates here or following the projects at Red Hat Demo Central.