Hi,

Domain is the top entity for cloud based applications, it is also called as namespace and this would be an integrated part of our application url and common point of monitoring.

Domain is mandate for every application before getting deployed, in short it is the subdomain of rhcloud.com for all of your Application URLs.

Below are the steps for creating a domain :

[root@nikhil OpenShift]# rhc domain create -n mydomain
Password:
Generating OpenShift ssh key to /root/.ssh/libra_id_rsa
Generating public/private rsa key pair.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /root/.ssh/libra_id_rsa.
Your public key has been saved in /root/.ssh/libra_id_rsa.pub.
The key fingerprint is:
ca:0f:e1:3f:ec:13:2a:9e:ce:de:55:40:7b:01:de:d3 root@nikhil.csb
The key's randomart image is:
+--[ RSA 2048]----+
|        o..      |
|       o o o     |
|    +    + + E |
|   d     o .     |
|      . S .      |
|     o o..     p |
|      =o.. po    |
|   ..o.=+   %   |
|   +*...+o       |
+-----------------+

MESSAGES:
OpenShift is currently being upgraded, some services may be unavailable.

Checking ~/.ssh/config
Found rhcloud.com in ~/.ssh/config... No need to adjust
Creation successful

You may now create an application.

How to delete a domain :

rhc domain destroy -n  <Domain name> -l <username>

* username = user id used to login to openshift.redhat.com (mostly your email id that you used to register)

How to see the details of you domain :

[root@nmone deployments]# rhc domain show
Password:

User Info
=========
Namespace: namespace
RHLogin: yourid@ymail.com

Application Info
================
test1
Framework: jbossas-7
Creation: 2012-05-17T06:27:24-04:00
UUID: 9def60a227a04ff98d8c2c535cfa118f
Git URL: ssh://YJR^$I*&^O(G&^%^I5cfa118f@test1-namespace.rhcloud.com/~/git/test1.git/
Public URL: http://test1-namespace.rhcloud.com/

Embedded:
mysql-5.1 - Connection URL: mysql://127.2.107.1:3306/

test2
Framework: jbossas-7
Creation: 2012-05-15T08:11:24-04:00
UUID: addc7b6d3cf24ce68982a1ec3c1b7d14
Git URL: ssh://HGFDTYRSD&^%S*c1b7d14@test2-namespace.rhcloud.com/~/git/test2.git/
Public URL: http://test2-namespace.rhcloud.com/

Embedded:
None
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.