Installing Python Application in OpenShift PaaS

Advertisement

Installing Python Application in OpenShift PaaS needs some modification and custom commands as you might not able to run. Here are some tips for Python. Basically Python is a high-level programming language, usages can be quite complex scientific usage and OpenShift is a great platform to test whether a Python App is running rightly or not.

Steps For Installing Python Application in OpenShift PaaS

First, you can create an Python instance either from command line or from the web Interface. Python 2.7 is official, Python 3.3 is community edition. After creating the instance, first SSH to to OpenShift’s that instance , for example :

Obviously, I can either clone the git or wget the zip file or add the remote git as source from web interface. wget is less complex. The application is actually not made for extra changes neded for OpenShift. We are taking that you have used web interface to install Python as cartridge.

You can run which python command to check whether Python rightly got installed. In the temporary dir (we have changed directory before) :

It is the uncanny official method. It will actually point you towards system default Python directory. The version will be different and will ask for root access. You might expect an easy installation. But it will never happen. For this reason there are few ways :