Dream. Dare. Do – that is Suyati’s work principle in a nutshell.
Openshift is RedHat’s cloud computing platform. Developed in 2011 by Redhat, Openshift is one of the most soght after PaaS(Platform As A Service) that is available today.Its written in Ruby and is under the Apache License 2.0.Using Openshift’s free plan users can get upto 1GB of storage per **Catridge and upto 3 *Gears.
2.Setting up your cloud server:
To generate the public key:
Open the terminal and type:
$ cd ~/.ssh
$ ssh-keygen -t rsa -C "firstname.lastname@example.org"
# Creates a new ssh key, using the provided email as a label
Generating public/private rsa key pair.
Enter file in which to save the key (/home/you/.ssh/id_rsa):
$ ssh-add id_rsa
Enter passphrase (empty for no passphrase): [Type a passphrase]
Enter same passphrase again: [Type passphrase again]
Your identification has been saved in /home/you/.ssh/id_rsa.
Your public key has been saved in /home/you/.ssh/id_rsa.pub.
The key fingerprint is:
$ sudo apt-get install xclip
# Downloads and installs xclip. If you don't have `apt-get`, you might need to use another installer (like `yum`)
$ xclip -sel clip < ~/.ssh/id_rsa.pub # Copies the contents of the id_rsa.pub file to your clipboard
3.Working with files:
To clone the repository locally:
Open the terminal and move to the folder where the cloned repostitory is present and type
$ git clone ssh://email@example.com/~/git/php.git/
# Clones the users repository locally in the present working directory.
To upload the files:
In Linux and in Windows – Open the terminal(Linux) / Github shell(Windows) and move to the folder where the cloned repository is present and type
$ git add .
#adds the files to the queue
$ git commit -m 'your_message'
#saves the changes to the modified files in the queue
$ git push
#uploads the modified files to the Git repository
Multiple applications can be setup in a single namespace.Each gear gets 1GB of allocated space and the maximum number of gears the can be allocated are 3.The gears will scale automatically according to the application(done by Openshift itself). The users index page is the one that is loaded by default.
Fig1.2: Openshift user applications home
Supported catridges in Openshift:
Java, Php, Zend Server, Python, Ruby, Node.js, Perl.
Supported databases in Openshift:
MongoDB, MySQL, PostgreSQL.
Continous Integration tools in Openshift:
Jenkins Server and Jenkins Client, Cron, SwitchYard.
For more details on Openshift goto https://www.openshift.com/.
*A gear is a package of support tools for the users applciation
**Catridge is framework or components that comprises or makes the application.One or more Catridges can run on a single gear or many gears can handle a single catridge(depends on the scaling).
#This doc has been targeted for the Linux platform.
##There is no guarantee regaring the persistence of this service.