Pages

Thursday, April 3, 2014

Creating a Domain in OpenShift

Creating a Domain in OpenShift

An OpenShift Online domain forms part of an application's URL and is unique to an account. A domain needs to be created before deploying an application.

Once the configuration of OpenShift is done, we need to then create a Domain name to host the application in and the application itself.

Once we install all the necessary packages , we will get tools like rhc which helps in communicating directly with OpenShift.

Before creating domains and loading our application, we need to create a account with OpenShift. I have created a account with OpenShift.

[root@vx111a rubygems-2.2.2]# rhc domain create -n fundomain
You have not yet configured the OpenShift client tools. Please run 'rhc setup'.
Creating domain 'fundomain' ... Login to openshift.redhat.com:
jagadesh.manchala@gmail.com
Password: ***********
done
You may now create an application using the 'rhc create-app' command

See What Domains Exist
[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.

Rename a Domain
rhc domain rename Old_Domain_Name New_Domain_Name

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


More to Come , Happy Learning 

1 comment :

  1. hi jagadesh,

    This is very useful and excellent blog. I have some doubts on openshift.
    please reply me if you are intrest to help me to clear those doubts.
    Thank you very much for sharing the knowledge..

    ReplyDelete