Book Image

OpenShift Cookbook

By : Shekhar Gulati
Book Image

OpenShift Cookbook

By: Shekhar Gulati

Overview of this book

Table of Contents (19 chapters)
OpenShift Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Running OpenShift on a Virtual Machine
Index

Creating scalable apps from nonscalable apps


OpenShift currently does not support the conversion of an existing nonscalable application to a scalable application. In this recipe, you will learn how to create a new scalable application using an existing nonscalable application.

Getting ready

To complete this recipe, you will need rhc installed on your machine. This recipe will require all three available gears, so please make sure to delete any existing applications.

How to do it…

Perform the following steps to covert a nonscalable application to a scalable application:

  1. Open a new command-line terminal and navigate to a convenient location where you want to create the application.

  2. Create a nonscalable application with JBoss EAP 6 using the following command:

    $ rhc create-app jobstore jbosseap postgresql-9.2 --from-code https://github.com/OpenShift-Cookbook/chapter7-jobstore-javaee6.git
    
  3. To create a scalable application using the application created in step 2, run the following command:

    $ rhc create...