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

Accessing an application's Python virtual environment


By now, you will be aware that every OpenShift Python application has a virtual environment associated with it. Your application will only be able to use the dependencies available in the virtual environment. In this recipe, you will learn how to access the virtual environment of your OpenShift Python application.

Getting ready

This recipe is based on the assumption that you have read previous recipes in this chapter. To walk through this recipe, you will need the rhc command-line client installed on your machine. Please refer to the Installing the OpenShift rhc command-line client recipe in Chapter 1, Getting Started with OpenShift, for details. Also, if you want to run the application on your local machine, you will need to have Python, pip, and virtualenv installed on your machine. Please refer to the introduction section for links to installation instructions for the respective software.

How to do it…

Perform the following steps to access...