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
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.
OpenShift is a free cloud-based application platform from RedHat. Of late I caught an interest in Cloud Computing and wanted to try out different stuff. Though I did extensive reading on Eucalyptus, Amazon EC2, Ubuntu Cloud, etc. I wanted to try something hands on and chose to experiment with OpenShift. OpenShift has two flavors such as Express and Flex. Express is a shared application platform which supports Ruby, PHP, and Python applications. On the other hand flex is dedicated platform-as-a-service for Java and PHP applications which creates and provides management capabilities to operate on Amazon EC2 clouds (in future more cloud platforms will be added).
Today's date (25th February) is very special in my life for the past 2 years and it will continue to be like that till my end of life. This date for the past couple of years had given me happiness, satisfaction and a sense of achievement. This year is no exception to that and I decided to visit Spastics Society of TamilNadu (SPASTN) located at Taramani, Chennai. It was in 1996 I last visited this place for my project "Care for the Uncared" which I did in my 7th standard along with my friends for "National Children Science Congress". I was with the children for 3 full days and spent lot of time with them in "The Spastics School". Its been more than 15 years now and I visited today as a man with a good cause, it was really joyful to be in the School and speak with people who are closely associated with it. There was lot of changes in the School from my previous visit!
I wrote a book on OpenSource in Tamil and it got published by New Horizon Media (Kizhakku Pathipagam) on last Saturday ie., 07-jan-2012 in Chennai Book Fair 2012. If you get a chance to visit Chennai Book fair drop in at Kizhakku Pathipagam stall and grab a copy of the book.
Following are the link to purchase the book online:
Introduction about this book are available in the following links:
Facebook page: http://www.facebook.com/OpenSourceTamil
In work I wanted python2.7 for using some latest modules. I run Debian 6.0 ie., squeeze in my laptop, but python2.7 is available in Wheezy or Debian testing. In order to install python2.7 from the testing repository add the following in your sources.list file ie., /etc/apt/sources.list
deb http://mirror.cse.iitk.ac.in/debian/ testing main contrib
After adding the testing repository, do an update and then install python2.7 package as follows:
$ sudo aptitude update
$ sudo aptitude install python2.7