Deploying Kill Bill on OpenShift

Thanks to the entry-level offering of the Cloud Application Platform by Red Hat — OpenShift, you can run in the cloud Kill Bill and the Kill Bill admin UI — Kaui, for free. This article will guide you through it. Note that you only have free access to small containers (so called gears), which are less than ideal to run Kill Bill on: RAM is capped at 512MB, which is a bit small for the JVM (especially if you install Kill Bill plugins). This is reflected in the UI, which feels slow. While it is probably good enough for quick prototyping, we recommend you use at least a medium gear for your production environment. Once you created an account, the first step is to setup the OpenShift command line client: gem install rhc rhc setup Check the OpenShift documentation for more details. Let’s create our Demo app, which will be running Tomcat and MySQL: rhc create-app Demo jbossews-2.0 rhc cartridge add mysql-5.1 -a Demo Note that for simplicity, we created a non-scaled application. This means that Tomcat and MySQL will be installed on the same gear. For a real production environment, we would create a scaled application instead, which would make OpenShift install automatically MySQL on its own dedicated gear. The next step is to download Kill Bill. Grab the latest jar-with-dependencies.war artifact from Maven Central. Creating the Demo app should have cloned a demo.git repository. Go to that directory and copy the war file (you can also cleanup the src/ directory and pom.xml file): cp /path/to/killbill-server-*.war webapps/ROOT.war git rm -r src/ pom.xml Kill Bill system properties can be...