Before we develop an application to run on OpenShift, we should first define some OpenShift terms:
Application: This is obviously the application you will deploy to OpenShift.
Gear: This is the container that contains your server, along with the various resources required to run your application, such as RAM, the processor, and hard disk space.
Cartridge: A cartridge is a plugin that provides a specific functionality. For example, you can select a WildFly cartridge and a database cartridge to be added to your gear.
To view all available cartridges, run the following command:
$ rhc cartridge list
The syntax to create an application is as follows:
$ rhc app create app_name cartridge_name
At the time of writing, there is no WildFly cartridge available in the cartridge list. For this example, I am going to use a cartridge that is available on GitHub (https://github.com/openshift-cartridges/openshift-wildfly-cartridge). Navigate...