Deploying MongoDB on OpenShift Flex
OpenShift, a free, open source PaaS from Red Hat, allows you to use a MongoDB cartridge to simply deploy and manage applications with a MongoDB backend.
Nosh Petigara, Director of Product Strategy at 10gen (the company that sponsors and lends commercial support for MongoDB), has composed a tutorial that helps you to deploy MongoDB on OpenShift Flex.
This exercise will require registration for Open Flex, and Amazon AWS credentials. The application is built on the Stripes framework. You can get the app source here, or grab the WAR file. You will also need Eclipse to build the project.
Here's the first step of the process:
1. Setup your cloud and cluster:
- If you haven’t already done so, register for access to OpenShift Flex
- Once you get confirmation that you are registered, login to the Flex console
- Create a cluster with your Amazon AWS credentials from the “Cloud” tab.
- Next, go to the “Clusters” tab and select the “Add Cluster” button.
- If you have worked with OpenShift Flex before, then you've already done these steps. Otherwise, step-by-step instructions can be found in the Flex user guide located here.
If you haven't used MongoDB before, check out the mongodb.org site to learn more about the features of the database. A few useful links are:
• MongoDB Quickstart
• MongoDB Tutorial
• MongoDB with Java