April 2012

Posted by stylesen

OpenShift is a very cool platform and I got attracted. I wanted to extend my experiment and wanted to onboard an application which I have written. I thought about some ideas which I could code in python and at the same time I can test various features of OpenShift, also I wanted to learn some new web framework in python during this experiment.

Posted by stylesen

In most of the old blog posts on OpenShift, in order to create Python based applications we could see the catridge that needs to be used is wsgi-3.2.1. This was confusing since, the help message of new 'rhc' clients does not lista cartridge of type 'wsgi' as follows:

  -t|--type         type         Type of app to create (nodejs-0.6, jbossas-7, python-2.6, jenkins-1.4, ruby-1.8, diy-0.1, php-5.3, perl-5.10) (required for creating an application)

From the above, it is obvious that in order to deploy a python based wsgi web application we need to create a OpenShift app with the catridge 'python-2.6' as follows:

$ rhc app create -t python-2.6 -a sampleapp

Posted by stylesen

It is possible to shell into the application space of OpenShift Express environment. This is a powerful feature which gives us full control if we are a command line junkie! If we have uploaded the public key from our current machine to http://openshift.redhat.com/ in our account, then we can do a password-less login to the application shell.

Open your application and view details in http://openshift.redhat.com/ which will contain the git repository url which will look like the following:

Copy the above which will act as our ssh string to connect. In order to connect via ssh use the following command which is derived from the above URL:

Posted by stylesen
SqueeZ web page screenshot