Monday, April 21, 2014

Managing OpenShift with RHC Command Line

In all the previous articles we have seen how we can create domains , application and cartridges. In all the cases we have used the “rhc” commands for dealing with these Operations. In this article we will see how we can use “rhc” command with available options.

We can get the help for rhc command like,

Getting started:
  setup              Connects to OpenShift and sets up your keys and domain
  create-app         Create an application
  apps               List all your applications
  cartridges         List available cartridges
  add-cartridge      Add a cartridge to your application
  set-env            Set one or more environment variable(s) to your application
  logout             End the current session

Working with apps:
  tail               Tail the logs of an application
  port-forward       Forward remote ports to the workstation
  threaddump         Trigger a thread dump for JBoss and Ruby apps
  snapshot           Save the current state of your application locally
  git-clone          Clone and configure an application's repository locally

Management commands:
  account            Display details about your OpenShift account
  alias              Add or remove a custom domain name for an app
  app                Commands for creating and managing applications
  authorization      Manage your authorization tokens
  cartridge          Manage your application cartridges
  deployment         Commands for deploying and managing deployments of an application
  domain             Add or rename the container for your apps
  env                Manages user-defined environment variables set on a given application
  member             Manage membership on domains and teams
  scp                SCP a file to or from your application
  server             Display information about the status of the OpenShift service
  ssh                SSH into the specified application
  sshkey             Add and remove keys for Git and SSH
  team               Create or delete a team


We will see some of the commands and examples of using them.

----Account Information----
[root@vx111a funtest]# rhc accountt
Login jagadesh.manchala@gmail.com on openshift.redhat.com
---------------------------------------------------------
  ID:                     537de3924382ec94c9000394
  Plan:                   Free
  Gears Used:         3
  Gears Allowed:     3
  Domains Allowed: 1
  Allowed Gear Sizes: small
  SSL Certificates:   no

OpenShift Information
[root@vx111a funtest]# rhc server
Connected to openshift.redhat.com
All systems running fine


----Domain----
Create Domain
[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>

----Application----
For application we have the available actions,

List of Actions
  configure          Configure several properties that apply to an application
  create             Create an application
  delete             Delete an application from the server
  deploy             Deploy a git reference or binary file of an application
  force-stop         Stops all application processes
  reload             Reload the application's configuration
  restart            Restart the application
  scale-down         Scale down the application's web cartridge
  scale-up           Scale up the application's web cartridge
  show               Show information about an application
  start              Start the application
  stop               Stop the application
  tidy               Clean out the application's logs and tmp directories and tidy up the git repo on the server
Create an Application
[root@vx111a funtest]# rhc app create -a dbtest -t jbossas-7
Application Options
-------------------
Domain:     fundomain
Cartridges: jbossas-7
Gear Size:  default
Scaling:    no

Creating application 'dbtest' ... done

Waiting for your DNS name to be available ... done

Initialized empty Git repository in /soa/openShift/funtest/dbtest/.git/
Warning: Permanently added the RSA host key for IP address '54.234.230.143' to the list of known hosts.

Your application 'dbtest' is now available.

  URL:        http://dbtest-fundomain.rhcloud.com/
  SSH to:     537f4c0f50044652c1000265@dbtest-fundomain.rhcloud.com
  Git remote: ssh://537f4c0f50044652c1000265@dbtest-fundomain.rhcloud.com/~/git/dbtest.git/

Run 'rhc show-app dbtest' for more details about your app.

Application Status
[root@vx111a funtest]# rhc app show Sample-app
Application 'Sample-app' not found.
[root@vx111a funtest]# rhc app show funtest
funtest @ http://funtest-fundomain.rhcloud.com/ (uuid: 537f2c545973caec750002b8)
--------------------------------------------------------------------------------
  Domain:     fundomain
  Created:    May 23  4:39 PM
  Gears:      1 (defaults to small)
  Git URL:    ssh://537f2c545973caec750002b8@funtest-fundomain.rhcloud.com/~/git/funtest.git/
  SSH:        537f2c545973caec750002b8@funtest-fundomain.rhcloud.com
  Deployment: auto (on git push)

  jbossas-7 (JBoss Application Server 7)
  --------------------------------------
    Gears: 1 small

Reload an Application
[root@vx111a funtest]# rhc app reload funtest
RESULT:
funtest config reloaded

Delete a application
[root@vx111a funtest]# rhc app delete funtest
This is a non-reversible action! Your application code and data will be permanently deleted if you continue!

Are you sure you want to delete the application 'funtest'? (yes|no): y

Deleting application 'funtest' ... deleted

Confirm Deletion of an application
[root@vx111a funtest]# rhc app delete jenapp --confirm
Deleting application 'jenapp' ... deleted

Tail application logs
[root@vx111a funtest]# rhc tail -a dbtest
==> app-root/logs/jbossas.log <==
 def new generation   total 14336K, used 7651K [0xbc140000, 0xbd0c0000, 0xc1690000)
  eden space 12800K,  47% used [0xbc140000, 0xbc738fa8, 0xbcdc0000)
  from space 1536K, 100% used [0xbcf40000, 0xbd0c0000, 0xbd0c0000)
  to   space 1536K,   0% used [0xbcdc0000, 0xbcdc0000, 0xbcf40000)
 tenured generation   total 30972K, used 21414K [0xc1690000, 0xc34cf000, 0xcc140000)
   the space 30972K,  69% used [0xc1690000, 0xc2b79b58, 0xc2b79c00, 0xc34cf000)
 compacting perm gen  total 31744K, used 31672K [0xcc140000, 0xce040000, 0xd2740000)
   the space 31744K,  99% used [0xcc140000, 0xce02e0b8, 0xce02e200, 0xce040000)
    ro space 10240K,  58% used [0xd2740000, 0xd2d1cae0, 0xd2d1cc00, 0xd3140000)
    rw space 12288K,  63% used [0xd3140000, 0xd38da8e8, 0xd38daa00, 0xd3d40000)

==> app-root/logs/mysql.log <==
140526 03:14:22 mysqld_safe Logging to '/var/lib/openshift/537f4c0f50044652c1000265/mysql//stdout.err'.
140526 03:14:23 mysqld_safe Starting mysqld daemon with databases from /var/lib/openshift/537f4c0f50044652c1000265/mysql/data/
140526 03:14:23 mysqld_safe Starting mysqld daemon with databases from /var/lib/openshift/537f4c0f50044652c1000265/mysql/data/
140526  3:14:23  InnoDB: Initializing buffer pool, size = 32.0M
140526  3:14:23  InnoDB: Completed initialization of buffer pool
140526  3:14:23  InnoDB: Started; log sequence number 0 44233
140526  3:14:23 [Note] Event Scheduler: Loaded 0 events
140526  3:14:23 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.1.73'  socket: '/var/lib/openshift/537f4c0f50044652c1000265/mysql//socket/mysql.sock'  port: 3306  Source distribution


----Cartridge----
We can get the information about the cartridges added to our application. Here are the suggested actions on the cartridge,

[root@vx111a funtest]# rhc cartridge

List of Actions
  add                Add a cartridge to your application
  list               List available cartridges
  reload             Reload the cartridge's configuration
  remove             Remove a cartridge from your application
  restart            Restart a cartridge
  scale              Set the scale range for a cartridge
  show               Show useful information about a cartridge
  start              Start a cartridge
  status             Get current the status of a cartridge
  stop               Stop a cartridge
  storage            View/manipulate storage on a cartridge

Available Cartridges
[root@vx111a funtest]# rhc cartridge list
jbossas-7           JBoss Application Server 7        web
jboss-dv-6.0.0 (!)  JBoss Data Virtualization 6     web
jbosseap-6 (*)      JBoss Enterprise Application     web
jenkins-1           Jenkins Server                          web
nodejs-0.10         Node.js 0.10                           web
nodejs-0.6          Node.js 0.6                              web
perl-5.10           Perl 5.10                                  web
php-5.3             PHP 5.3                                    web

Add a Cartridge
[root@vx111a funtest]# rhc app cartridge add -a dbtest -c mysql-5.1
Warning: This command is deprecated. Please use 'rhc cartridge-add' instead.

Adding mysql-5.1 to application 'dbtest' ... done

mysql-5.1 (MySQL 5.1)
---------------------
  Gears:          Located with jbossas-7
  Connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/
  Database Name:  dbtest
  Password:       xxxxxxxxxx
  Username:       xxxxxxxxxx

MySQL 5.1 database added.  Please make note of these credentials:

   Root User: XXXXXXXXXXXXXXX
   Root Password: XXXXXXXXXXX
   Database Name: dbtest

Connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/

You can manage your new MySQL database by also embedding phpmyadmin.
The phpmyadmin username and password will be the same as the MySQL credentials above.


Cartridge Information
[root@vx111a funtest]# rhc cartridge show mysql -a dbtest
Using mysql-5.1 (MySQL 5.1) for 'mysql'
mysql-5.1 (MySQL 5.1)
---------------------
  Gears:          Located with jbossas-7
  Connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/
  Database Name:  dbtest
  Password:       XXXXXXXXX
  Username:      XXXXXXXXX

Show Cartridge available to a application
[root@vx111a funtest]# rhc cartridge show mysql -a dbtest
Using mysql-5.1 (MySQL 5.1) for 'mysql'
mysql-5.1 (MySQL 5.1)
---------------------
  Gears:          Located with jbossas-7
  Connection URL: mysql://$OPENSHIFT_MYSQL_DB_HOST:$OPENSHIFT_MYSQL_DB_PORT/
  Database Name:  dbtest
  Password:       XXXXXXXXX
  Username:      XXXXXXXXX

Status of a Cartridge
[root@vx111a funtest]# rhc cartridge status mysql -a dbtest
Using mysql-5.1 (MySQL 5.1) for 'mysql'

RESULT:
MySQL is running

Storage of a Cartridge
[root@vx111a funtest]# rhc cartridge storage mysql -a dbtest
RESULT:
Using mysql-5.1 (MySQL 5.1) for 'mysql'
MySQL 5.1
---------
  Base Gear Storage:       1GB
  Additional Gear Storage: None

----Deployments----
Deployment List
[root@vx111a funtest]# rhc deployment list dbtest
May 23  6:54 PM, deployment 63ad57cc

Deployment Information
[root@vx111a funtest]# rhc deployment show 63ad57cc -a dbtest
Deployment ID 63ad57cc (active)
-------------------------------
  Git Reference:     master
  SHA1:              096f4f2
  Created At:        May 23  6:54 PM
  Hot Deploy:        false
  Force Clean Build: false
  Activations:       May 23  6:54 PM

----SnapShots----
SnapShots
Snapshots allow you to export the current state of your OpenShift application into an archive on your local system, and then to restore it later

[root@vx111a funtest]# rhc snapshot save -a dbtest
Pulling down a snapshot of application 'dbtest' to dbtest.tar.gz ... done

Restore action can be used to restore a previously stored snapshot.

----Thread Dump----
[root@vx111a funtest]# rhc threaddump -a dbtest
Success

The thread dump file will be available via: rhc tail dbtest -g 537f4c0f50044652c1000265 -f /var/lib/openshift/537f4c0f50044652c1000265/app-root/logs/jbossas.log -o '-n 250'



----SSH Setup----
[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.


More to come , Happy Learning J
Read More

Saturday, April 12, 2014

Installing Tomcat on OpenShift

In the previous articles we have seen how to deploy a application and configure Database in OpenShift. By default OpenShift supports JBoss 7.In this article we will see how we can configure Tomcat in OpenShift.

Since Tomcat is not an officially support application type on OpenShift, we need to create a DIY application.

You can use your own Languages and Data Stores by talking advantage of OpenShift's powerful Do-It-Yourself (DIY) feature if the built-in Perl, Ruby, PHP, Python, and Java EE6 support doesn't suit you. OpenShift's DIY allows you run just about any program that speaks HTTP.

Create a Tomcat application

[root@vx111a funtest]# rhc app create tomcat diy
Using diy-0.1 (Do-It-Yourself 0.1) for 'diy'

Application Options
-------------------
Domain:     fundomain
Cartridges: diy-0.1
Gear Size:  default
Scaling:    no

Creating application 'tomcat' ... done

  Disclaimer: This is an experimental cartridge that provides a way to try unsupported languages, frameworks, and middleware on OpenShift.

Waiting for your DNS name to be available ... done

Initialized empty Git repository in /soa/openShift/funtest/tomcat/.git/
The authenticity of host 'tomcat-fundomain.rhcloud.com (107.21.128.82)' can't be established.
RSA key fingerprint is cf:ee:77:cb:0e:fc:02:d7:72:7e:ae:80:c0:90:88:a7.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'tomcat-fundomain.rhcloud.com,107.21.128.82' (RSA) to the list of known hosts.

Your application 'tomcat' is now available.

  URL:        http://tomcat-fundomain.rhcloud.com/
  SSH to:     537f5367500446573b00011e@tomcat-fundomain.rhcloud.com
  Git remote: ssh://537f5367500446573b00011e@tomcat-fundomain.rhcloud.com/~/git/tomcat.git/
  Cloned to:  /soa/openShift/funtest/tomcat

Run 'rhc show-app tomcat' for more details about your app.

This will create a application named tomcat and will also inform OpenShift that we are using DIY type application and will plan to install tomcat on OpenShift.


By default diy cartridge has a ruby server installed, which can be stop/start using start and stop scripts. Navigate into the tomcat application in the local repository,

[root@vx111a funtest]# ll
drwxr-xr-x. 6 root root 4096 May 23 23:56 dbtest
drwxr-xr-x. 6 root root 4096 May 23 22:12 funtest
drwxr-xr-x. 6 root root 4096 May 24 00:57 tomcat
[root@vx111a funtest]# cd tomcat/

 [root@vx111a tomcat]# ls -alrt
drwxr-xr-x. 5 root root 4096 May 24 00:56 ..
-rw-r--r--. 1 root root  169 May 24 00:57 README.md
drwxr-xr-x. 4 root root 4096 May 24 00:57 .openshift
drwxr-xr-x. 2 root root 4096 May 24 00:57 misc
drwxr-xr-x. 2 root root 4096 May 24 00:57 diy
drwxr-xr-x. 6 root root 4096 May 24 00:57 .
drwxr-xr-x. 8 root root 4096 May 24 00:57 .git

[root@vx111a tomcat]# cd .openshift/

[root@vx111a .openshift]# ls -alrt
drwxr-xr-x. 7 root root 4096 May 24 00:57 cron
drwxr-xr-x. 2 root root 4096 May 24 00:57 action_hooks
drwxr-xr-x. 4 root root 4096 May 24 00:57 .
drwxr-xr-x. 6 root root 4096 May 24 00:57 ..

The action_hooks is the place where the scripts exist.
[root@vx111a .openshift]# cd action_hooks/

[root@vx111a action_hooks]# ls
README.md  start  stop

To disable the ruby server Stop the tomcat
[root@vx111a action_hooks]# rhc app stop -a tomcat
RESULT:
tomcat stopped

[root@vx111a action_hooks]# ll
total 12
-rw-r--r--. 1 root root 171 May 24 00:57 README.md
-rwxr-xr-x. 1 root root 280 May 24 00:57 start
-rwxr-xr-x. 1 root root 339 May 24 00:57 stop

Remove the start and stop files
[root@vx111a action_hooks]# rm start
rm: remove regular file `start'? y
[root@vx111a action_hooks]# rm stop
rm: remove regular file `stop'? y

Now create the files again and push them to the repository with git
[root@vx111a action_hooks]# touch start
[root@vx111a action_hooks]# touch stop

Commit the files with Git
[root@vx111a action_hooks]# git commit -a -m "Replaces start and Stop Scripts"
[master 5c81663] Replaces start and Stop Scripts
 Committer: root <root@vx111a.jas.com>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:

    git config --global user.name "Your Name"
    git config --global user.email you@example.com

If the identity used for this commit is wrong, you can fix it with:

    git commit --amend --author='Your Name <you@example.com>'

 2 files changed, 0 insertions(+), 15 deletions(-)
 mode change 100755 => 100644 .openshift/action_hooks/start
 mode change 100755 => 100644 .openshift/action_hooks/stop
                                                         
[root@vx111a action_hooks]# git push
Counting objects: 7, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 499 bytes, done.
Total 4 (delta 0), reused 0 (delta 0)
remote: Stopping DIY cartridge
remote: CLIENT_RESULT: Application is already stopped
remote: Building git ref 'master', commit 5c81663
remote: Preparing build for deployment
remote: Deployment id is a5448020
remote: Activating deployment
remote: Starting DIY cartridge
remote: -------------------------
remote: Git Post-Receive Result: success
remote: Activation status: success
remote: Deployment completed with status: success
To ssh://537f5367500446573b00011e@tomcat-fundomain.rhcloud.com/~/git/tomcat.git/
   f2b1a44..5c81663  master -> master

Now we disabled the Ruby server that comes by default with DIY application.

Download and Install Tomcat

Check the domain and get the details regarding the tomcat application

[root@vx111a action_hooks]# rhc domain show
Domain fundomain (owned by jagadesh.manchala@gmail.com)
-------------------------------------------------------
  Created:            May 22  5:19 PM
  ID:                 537de4445973ca6cf70000b2
  Allowed Gear Sizes: small

  tomcat @ http://tomcat-fundomain.rhcloud.com/ (uuid: 537f5367500446573b00011e)
  ------------------------------------------------------------------------------
    Domain:     fundomain
    Created:    May 23  7:25 PM
    Gears:      1 (defaults to small)
    Git URL:    ssh://537f5367500446573b00011e@tomcat- fundomain.rhcloud.com/~/git/tomcat.git/
    SSH:        537f5367500446573b00011e@tomcat-fundomain.rhcloud.com
    Deployment: auto (on git push)

    diy-0.1 (Do-It-Yourself 0.1)
    ----------------------------
      Gears: 1 small

Ssh to the tomcat application and navigate to OPENSHIFT_DATA_DIR location

cd $OPENSHIFT_DATA_DIR
wget http://apache.mesi.com.ar/tomcat/tomcat-7/v7.0.53/bin/apache-tomcat-7.0.53.tar.gz
tar zvf apache-tomcat-7.0.53.tar.gz
tar xvf apache-tomcat-7.0.53.tar.gz
cd apache-tomcat-7.0.3

Now that we tomcat downloaded and extracted, we need to modify the server.xml file to specify the ports we want to use as well as the ip address to bind to. Because OpenShift is a multitenant environment, you will need to use the internal ip address that is provided to you. In order to find this address, run the following command:

$ env | grep INTERNAL_IP

if this does not give any IP address , we can use /sbin/ifconfig by which we can get the IP address

Now make these changes to the server.xml ,

Change the Server shutdown port : <Server port="15005" shutdown="SHUTDOWN">

Add the IP address obtained to the HTTP Connector
    <Connector port="8080" protocol="HTTP/1.1" address="10.171.23.252"
               connectionTimeout="20000"
               redirectPort="8443" />

Change the AJP port value too
    <Connector port="15009" protocol="AJP/1.3" redirectPort="8443" />

Change the address for the default host name
    <Engine name="Catalina" defaultHost="10.171.23.252">

Change the address in Host name too
      <Host name="10.171.23.252"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">

Save the File once changes are done.

Now we need to make changes to the tomcat-user.xml file so that we can enable some users for logging into the tomcat console.

Add these lines to the tomcat-user.xml file

<role rolename="manager-gui"/>
<user username="tomcat" password="tomcat" roles="manager-gui"/>

Save the file

Start the tomcat
cd bin
sh startup.sh

[tomcat-fundomain.rhcloud.com bin]\> sh ./startup.sh
Using CATALINA_BASE:   /var/lib/openshift/537f5367500446573b00011e/app-root/data/apache-tomcat-7.0.53
Using CATALINA_HOME:   /var/lib/openshift/537f5367500446573b00011e/app-root/data/apache-tomcat-7.0.53
Using CATALINA_TMPDIR: /var/lib/openshift/537f5367500446573b00011e/app-root/data/apache-tomcat-7.0.53/temp
Using JRE_HOME:        /usr
Using CLASSPATH:       /var/lib/openshift/537f5367500446573b00011e/app-root/data/apache-tomcat-7.0.53/bin/bootstrap.jar:/var/lib/openshift/537f5367500446573b00011e/app-root/data/apache-tomcat-7.0.53/bin/tomcat-juli.jar
Tomcat started.

Once we start the tomcat ,we can access it using the
http://tomcat-fundomain.rhcloud.com/manager/html


More to come , Happy Learning :-)
Read More