Book Image

WildFly Configuration, Deployment, and Administration

By : Francesco Marchioni, Christopher Adam M Ritchie
Book Image

WildFly Configuration, Deployment, and Administration

By: Francesco Marchioni, Christopher Adam M Ritchie

Overview of this book

Table of Contents (19 chapters)
WildFly Configuration, Deployment, and Administration Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating our first OpenShift application


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.

Installing your first cartridge

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...