13 Jan 2015

Deploying Your Own EAR in OpenShift Cloud Environment

If you are looking to deploy your compiled EAR (Enterprise Archive) file into OpenShift Cloud Environment then here's the step by step procedure for deploying your own EAR that have already been compiled.

1. Clone Your Application Repository Using GIT

First we have to download a copy of source code of your application into your machine(computer). As shown below, by using git command clone you can download your application source code.
git clone <your source url>  <destination directory>
Here, you can get your application source url from your OpenShift Application Console as shown below:

 

Try to run above clone command so that your application repository is copied into specified destination directory of your computer as shown in screenshot. 


2. Delete Directories In Cloned Repository

Your cloned application repository structure look like this:


Here, delete src folder and pom.xml file and don't modify/delete anything in other folders/files.

3. Copy Your Own EAR Into Cloned Repository

Now copy and paste your compiled EAR file inside deployments folder.

4. Commiting Changes Into Master's Directory

Finally, by using git make push & commit the changes. Once commit is completed your EAR file will be deployed automatically by Jboss.





Popular Posts

Write to Us
Name
Email
Message