openshift redhat rhc

1. Setup

$ rhc setup
/var/lib/gems/1.8/gems/highline-1.6.21/lib/highline/system_extensions.rb:230: warning: Insecure world writable dir /media/disk-1/eclipse_android in PATH, mode 040777
/var/lib/gems/1.8/gems/highline-1.6.21/lib/highline/system_extensions.rb:230: warning: Insecure world writable dir /media/disk-1/eclipse_android in PATH, mode 040777
OpenShift Client Tools (RHC) Setup Wizard

This wizard will help you upload your SSH keys, set your application namespace,
and check that other programs like Git are properly installed.

If you have your own OpenShift server, you can specify it now. Just hit enter to
use the server for OpenShift Online: openshift.redhat.com.
Enter the server hostname: |openshift.redhat.com|

You can add more servers later using 'rhc server'.

Using an existing token for phong.ek@gmail.com to login to openshift.redhat.com

Saving configuration to /home/dsin/.openshift/express.conf ... done

No SSH keys were found. We will generate a pair of keys for you.
/var/lib/gems/1.8/gems/rhc-1.37.1/lib/rhc/helpers.rb:578: warning: Insecure world writable dir /media/disk-1/eclipse_android in PATH, mode 040777

Created: /home/dsin/.ssh/id_rsa.pub

Your public SSH key must be uploaded to the OpenShift server to access code.
Upload now? (yes|no)
yes

default (type: ssh-rsa)
-----------------------
Fingerprint: XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX
Available: true

You can enter a name for your key, or leave it blank to use the default name.
Using the same name as an existing key will overwrite the old key.

Provide a name for this key: |phongekdsinlapto| dsin-dell-linux

Uploading key 'dsin-dell-linux' ... done

Checking for git ... found git version 1.7.9.5

Checking common problems .. done

Checking for a domain ... dsin

Checking for applications ... found 1

dsin http://dsin-dsin.rhcloud.com/

You are using 1 of 3 total gears
The following gear sizes are available to you: small

Your client tools are now configured.

2. ssh

$ rhc ssh dsin
Connecting to XXXXXXXXXXXXXXXXXXXXXXXX@dsin-dsin.rhcloud.com ...

*********************************************************************

You are accessing a service that is for use only by authorized users.
If you do not have authorization, discontinue use at once.
Any use of the services is subject to the applicable terms of the
agreement which can be found at:
https://www.openshift.com/legal

*********************************************************************

Welcome to OpenShift shell

This shell will assist you in managing OpenShift applications.

!!! IMPORTANT !!! IMPORTANT !!! IMPORTANT !!!
Shell access is quite powerful and it is possible for you to
accidentally damage your application. Proceed with care!
If worse comes to worst, destroy your application with "rhc app delete"
and recreate it
!!! IMPORTANT !!! IMPORTANT !!! IMPORTANT !!!

Type "help" for more info.

[dsin-dsin.rhcloud.com XXXXXXXXXXXXXXXXXXXXXXXX]\> ls
app-deployments app-root gear-registry git haproxy nodejs
[dsin-dsin.rhcloud.com XXXXXXXXXXXXXXXXXXXXXXXX]\> 

NOTE : to view deploy log

$ cd $OPENSHIFT_LOG_DIR

NOTE : sign-in as others

rhc ssh uisp -l username_ie_whatever@gmail.com

ref : http://stackoverflow.com/questions/16046038/openshift-rhc-setup-using-multiple-accounts

3. create application ( either through website or through rhc )

4. Every OpenShift application you create has its own Git repository that only you can access.

To deploy app,

$ git push

ref : Official openshift page

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s