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

Cleaning up the application


As you start using OpenShift for application development, the different components, such as Git and cartridge log directories, which constitute an application, will start consuming disk space. In the OpenShift Online free tier, applications are allocated only 1 GB of disk space so that it becomes critical to use the disk space effectively to avoid disk quota errors. In this recipe, you will learn how to clean up your application periodically to avoid disk quota errors.

Getting ready

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

How to do it…

To clean up the application, open a command-line terminal and run the following command:

$ rhc tidy-app --app myapp

How it works…

The rhc tidy-app command helps to manage the application disk space. Under the hood, it performs three operations:

  1. To start off, the rhc tidy...