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

Introduction


PostgreSQL is a popular, open source relational database used by many web applications around the world. OpenShift supports a stock standard, security hardened version of PostgreSQL database. As you are using standard versions of databases, you are not locked inside OpenShift and can easily port your data if required.

This chapter will use the PHP 5.4 application we created in Chapter 3, Creating and Managing Applications. If you do not have any OpenShift application running, you can create a new OpenShift application by running the following command:

$ rhc create-app myapp php-5.4

You can also use third-party database services, such as EnterpriseDB Cloud Database, if running your database in OpenShift is not possible or you have already invested in third-party services. Another reason why you might like to use a third-party database service is that the OpenShift PostgreSQL cartridge is not scalable. So, for applications where you need horizontally scalable and highly available...