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 downloadable cartridges with OpenShift applications


In this recipe, you will learn how to use a third-party downloadable cartridge with OpenShift applications.

Getting ready

To step through this recipe, you will need rhc installed on your machine. Also, we will make use of the OpenShift application created in the Creating an OpenShift application using the rhc command-line client recipe.

How to do it…

To add the Monit downloadable cartridge, use the rhc add-cartridge command as shown in the following command. Please replace [email protected] with your valid email address:

$ rhc cartridge-add --app myapp https://raw.githubusercontent.com/openshift-cartridges/openshift-origin-cartridge-monit/master/metadata/manifest.yml --env [email protected]

The --env option is used to set the environment variable required by this cartridge. The cartridge required the MONIT_ALERT_EMAIL environment variable, which is used to configure e-mail that would be used to send alert notifications...