Skip to content

Latest commit

 

History

History
37 lines (15 loc) · 1.68 KB

README.adoc

File metadata and controls

37 lines (15 loc) · 1.68 KB

Vert.x OpenShift (v2) Examples

This project shows how to deploy a Vert.x 3 applications to OpenShift V2. The same application is deployed using the two proposed approaches:

  • using the quickstart based on the Do-It-Yourself cartridge (low level integration, without scalability support)

  • using the vert.x 3 cartridge

This project is just an example of the structure and is not directly deployable oon OpenShift. You needs to log in on OpenShift and create the application with. Follows the provided guides:

The application

The application is very simple and just creates a HTTP server. Notice that the application listens on a host and port accessible from the system properties. Openshift requires the application to be bound to this address and port.

The DIY version

This version uses the Do-It-Yourself cartridge. It’s a low level integration, and it does not support (Openshift) scalability. The application fat jar is placed into the application directory. The provided action hooks manages the installation, start and stop of the application:

The cartridge version

This version uses the Vert.x 3 cartridge. It’s a higher level integration, and it does support (Openshift) scalability. The application fat jar is placed into the application directory. Additional configuration can be placed in the configuration directory.