Free JBoss/Tomcat hosting on OpenShift

Introduction

Lately I was looking for free hosting on application servers such as JBoss or Tomcat. I have found some options, among wich I have decided to try OpenShift and I am really happy with it. If you are looking for a place where you can test out your project or show it to the public ( student project, open source project, enterprise examples ) it could be nice solution.

OpenShift

You can find all information here: https://www.openshift.com/.

What it offers:

(https://www.openshift.com/developers/technologies)

Application Servers: JBoss (6EAP, 7), besides also servers for Python, Ruby
Databases: Postgres, MySQL, others
Addons: Cron, Jenkins, etc

You can create up to 3 applications, every of these is granted 1GB of storage and 512 MB Memory.

Set up the project

1) Register
2) Create your “app”. You can do it via
a) online tool (https://openshift.redhat.com/app/console/application_types)
b) special command line tool (RHC) (https://www.openshift.com/developers/rhc-client-tools-install)
both very easy to understand. You decide what is the link on which your app is being deployed and what add-ons you would like to choose ( Jenkins, Cron etc)

Development

What you get after creating simple app, is maven project with GIT support. Your folder is local copy of GIT repo, which original is stored on the server (cloud). Development is  done in simple steps:

1) Write your code
2) Push changes with GIT to OpenShift server
3) Your project will be build and deployed on the server.
4) You can go to your application address and check the changes.

You can read more here: https://www.openshift.com/developers/deploying-and-building-applications

Management

Part which I really like, because it was really easy to learn key features and actually start developing with OpenShift. What we can do in order to manage our app

1) Add Jenkins to our project (https://www.openshift.com/jenkins)

2) Connect to the cloud via SSH (https://www.openshift.com/developers/remote-access/). So you can see the logs, check the server config, etc

3) You can forward ports using the RHC tool (rhc port-forward ${appNAme}), in that way you can go to JBoss Admin console on your local machine using the address 127.0.0.1:9990

4) If you use rhc port-forward you can also connect to your database with any of your favourite db managers like pgAdmin.

5) There suppose to be a way to remotely debug the server, but I haven’t found out how to do that.

6) There are some special ways which allow you to configure the server as well as the add-ons.  In many cases it can be done easily with changing files from” .oppenshift” folder which is stored in root of every openshift application.

Summary

After trying it out for very short time, I am very pleased to see how well it all works  together. I found the “rhc” command tool very helpful and easy to use.

Links

Main page of OpenShift: https://openshift.redhat.com/

FAQ : https://www.openshift.com/faq

Documentation: https://www.openshift.com/developers/documentation

Get started Guide: https://www.openshift.com/developers/get-started

Another hosting  provider – AppFog:  https://www.appfog.com/pricing/

Heroku yet another free hosting :https://www.heroku.com/

Advertisements

2 Responses to Free JBoss/Tomcat hosting on OpenShift

  1. Nabeel says:

    Thanks for the information.
    If some have bought domain name. How can we utilise our domain name in openshift?

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

%d bloggers like this: