If
we want to see the available domains we can use,
[root@vx111a rubygems-2.2.2]# rhc domain show
You have not yet configured the OpenShift client tools. Please
run 'rhc setup'.
Login to openshift.redhat.com: jagadesh.manchala@gmail.com
Password: ***********
Domain fundomain (owned by jagadesh.manchala@gmail.com)
-------------------------------------------------------
Created: 5:19 PM
ID: 537de4445973ca6cf70000b2
Allowed Gear Sizes:
small
The domain fundomain exists but has no applications. You can use
'rhc
create-app' to create a new application.
If
you see the above command we can see that we need to pass user name and
password. But we can configure keys that will make these connections simple.
These keys will eliminate the need of entering user Name and password all the
times.
For
configuring the SSH,
[root@vx111a rubygems-2.2.2]# rhc setup
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.
Login to openshift.redhat.com: jagadesh.manchala@gmail.com
Password: ***********
OpenShift can create and store a token on disk which allows to
you to
access the server without using your password. The key is stored
in
your home directory and should be kept
secret. You can delete
the key at any time by running 'rhc logout'.
Generate a token now? (yes|no) yes
Generating an authorization token for this client ... lasts
about 1 month
Saving configuration to /root/.openshift/express.conf ... done
No SSH keys were found. We will generate a pair of keys for you.
Created:
/root/.ssh/id_rsa.pub
Your public SSH key must be uploaded to the OpenShift server to
access
code. Upload now?
(yes|no) yes
Since you do not have any keys associated with your OpenShift
account,
your new key will be uploaded as the 'default' key.
Uploading key 'default' ... done
Checking for git ... found git version 1.7.1
Checking common problems .. done
Checking for a domain ... fundomain
Checking for applications ... none
Run 'rhc create-app' to create your first application.
Do-It-Yourself 0.1 rhc create-app <app
name> diy-0.1
JBoss Application Server
7 rhc create-app <app
name> jbossas-7
JBoss Data
Virtualization 6 rhc
create-app <app name>
jboss-dv-6.0.0
JBoss Enterprise
Application Platform 6 rhc create-app <app name> jbosseap-6
Jenkins Server rhc create-app
<app name> jenkins-1
Node.js 0.10 rhc create-app <app
name> nodejs-0.10
Node.js 0.6 rhc create-app
<app name> nodejs-0.6
PHP 5.3 rhc create-app
<app name> php-5.3
PHP 5.4 rhc create-app
<app name> php-5.4
PHP 5.4 with Zend Server
6.1 rhc create-app <app
name> zend-6.1
Perl 5.10 rhc create-app
<app name> perl-5.10
Python 2.6 rhc create-app
<app name> python-2.6
Python 2.7 rhc create-app
<app name> python-2.7
Python 3.3 rhc create-app
<app name> python-3.3
Ruby 1.8 rhc create-app
<app name> ruby-1.8
Ruby 1.9 rhc create-app
<app name> ruby-1.9
Tomcat 6 (JBoss EWS
1.0) rhc create-app
<app name> jbossews-1.0
Tomcat 7 (JBoss EWS
2.0) rhc create-app
<app name> jbossews-2.0
Vert.x 2.1 rhc create-app <app name>
jboss-vertx-2.1
You are using 0 of 3
total gears
The following gear sizes
are available to you: small
Your client tools are now configured.
Now
the SSH is configured, try to see the available domains
[root@vx111a rubygems-2.2.2]# rhc domain show
Domain fundomain (owned by jagadesh.manchala@gmail.com)
-------------------------------------------------------
Created: 5:19 PM
ID: 537de4445973ca6cf70000b2
Allowed Gear Sizes: small
The domain fundomain exists but has no applications. You can use
'rhc create-app' to create a new application.
See we are not asked with the user name and password.Hence our Ssh configuration is done.
More to come , Happy Learning
No comments:
Post a Comment