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

Using MongoLab MongoDB-as-a-Service with OpenShift


The MongoLab (https://mongolab.com) MongoDB-as-a-Service makes it easy for you to set up, operate, and scale a MongoDB database on top of various cloud providers. In addition to the standard MongoDB features, MongoLab also offers the following functionality:

  • Running MongoDB on all the major cloud providers, such as Amazon, Google, Rackspace, and so on

  • Highly available MongoDB

  • Automated backups

  • Monitoring support

In this recipe, you will learn how to use the MongoLab MongoDB-as-a-Service with your OpenShift applications.

Getting ready

To complete this recipe, you will need an OpenShift application. Also, you need to have a MongoLab account. Go to https://mongolab.com/ and sign up for a new account if you don't have one already.

How to do it…

Perform the following steps to connect with the MongoLab MongoDB server from the OpenShift application:

  1. After you have created a MongoLab account, you will be shown a screen to create your first database. Click...