Home / Utilities / Free Cloud Hosting by RedHat’s Openshift
Free Cloud Hosting

Free Cloud Hosting by RedHat’s Openshift

1.Introduction:

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 Cloud Hosting plan users can get upto 1GB of storage per **Catridge and upto 3 *Gears.

Supported catridges in Openshift:
Java, Php, Zend Server, Python, Ruby, Node.js, Perl, WordPress, drupal, codeigniter, phpmyadmin, laravel, MEAN,

Supported databases in Openshift:
MongoDB, MySQL, PostgreSQL.

Continous Integration tools in Openshift:
Jenkins Server and Jenkins Client, Cron, SwitchYard, tomcat, apache,vert.x

2. Setting up Free Cloud Hosting Server:

  • First the user has to SignUp at http://www.openshift.com/
  • Once signed up , goto MY APPS and click on”Create your first application now”
  • Then choose the type of programming Catridge ( Zend Server, Php, WordPress, Ruby, Python, and many more).
  • Then the user can get a public URL where the domain name and namespace. The users homepage will be “http://Application name-namespace.rhcloud.com”.
  • Next the user can specify the source code of his application from github(If present), else it will be automatically managed by Openshift itself(a Git code repository will be automatically created in the cloud with default configuration, files and folders).
  • Openshift automatically selects a grear for the application(small, medium or large).
  • The catridge will be automatically selected as the one selected in the first field.
  • The user can also opt for scaling his application(which will be automatically done), the user has also provision for enabling Jenkins (continuous integration tool).
  • Now the user has to provide his public key (As Openshift uses Git version control system, the user can access his repositiory only using SSH protocol.)

Setup SSH Key

  1. Got to ‘Setting’ option in you dashboard menu
  2. Click on ‘Add New Key’ button.
  3. Open your public ssh key in any editor. Generally ssh keys are placed in your .ssh folder in your home folder in linux. If not already created ssh key in your system then you need to create. Click here for ssh key generation.
  4. Copy public ssh key content and paste into openshift’s ssh setting page.
  5. Click on ‘Create’ button to save.

After the public key is entered the user will be directed to the homepage, where the user can add supporting database or continuous integration tools for his main Catridge. Note down the username and password that is provided by Openshift for setting up the database or other tools.

In the applications homepage “ADD CATRIDGE” can be used to add additional catridges.

Connect to Server to Work with Files

There are several ways to connect and work with files.

#1. Using GIT Repository: 

  • Next clone the Git repository locally: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 protected]/~/git/php.git/
    # Clones the users repository locally in the present working directory.
  • Now edit the required files and upload into the Git repository using the following commands:
    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.

 

#2. Using  SFTP: 

  1.  Open Fileilla. Go to Menu >> Edit >> Preferences. This will open filezilla setting window.
  2.  From left side meu, go to Connection >> SFTP
  3. Click on ‘Add Keyfile’ button and select ssh private key.
  4. After selecting private key, there is a message will appear like below:
    ftp setting
  5. Click on ‘Yes’ button and system will create new file from selected file and will ask to save any where.  Just save file in .ppk format and click on ‘Ok’ button in left side
  6. Now Find  host and user name from your openshift application git/ssh url. Example if your application ssh/git url is : ssh://[email protected]/~/git/php.git/
    Then host is ‘php-newopen.rhcloud.com’ and user is ‘52778783e0b8cd9390000503’
  7. Now create connection. Put  host (php-newopen.rhcloud.com) in host section and select SFTP in protocol section.  Put user (52778783e0b8cd9390000503) in user section and make blank password section, because key file will work as password. Now click on ‘Connect’ button.
  8. Now your ftp is connected to openshift server. The default path that will you see is like this: /var/lib/openshift/52778783e0b8cd9390000503 . But server root path is different. To go to server root path , go through ‘app-root >> runtime >> repo ‘. This will be your server root path.

For any query or doubt comment here or contact on [email protected]

 

About cmadmin

Web Developer & Designer | Android App Developer

Leave a Reply

Your email address will not be published. Required fields are marked *

Login


Username
Create an Account!
Password
Forgot Password? (close)

Sign Up


Username
Email
Password
Confirm Password
Want to Login? (close)

Forget Password?


Username or Email
(close)
%d bloggers like this:
SHARE
OR
SUBSCRIBE
To get latest new / tutorial / technology / development information subscribe with us.
ARE YOU READY? GET IT NOW!
Lets Get Updated with latest trends & tutorials!
Your Information will never be shared with any third party.
Ready for latest tutorials & tools !
OR SUBSCRIBE WITH