Cloud Zone is brought to you in partnership with:

Eric D. Schabell has been working within software development since 1998 for many different organizations such as IBM, Radboud University Nijmegen, SNS Bank and smaller software companies. He has been involved in different roles within Open Source projects such as Sourcemage Linux, eGroupWare, DocConversion, cmlFramework and is still helping out in the JBoss jBPM project focusing as lead on the jBPM Migration project. Since 2009 he has been actively evangelising JBoss products and is a huge fan of OpenShift (PaaS). He is employed as JBoss Technology Evangelist for Red Hat, is a guest lecturer at the Radboud University Nijmegen and enjoys writing on various topics. Eric D. is a DZone MVB and is not an employee of DZone and has posted 73 posts at DZone. You can read more from them at their website. View Full User Profile

OpenShift: Create an Instance Based on an Existing Project

02.08.2013
| 2943 views |
  • submit to reddit
The latest release of the OpenShift Origin project command line tooling gives us a powerful feature to shorten the steps it takes to setup, for example, the various projects demoed in my OpenShift Primer book. 

Below you will find a single example to demonstrate how much easier it is now to setup existing demo projects. You can update your install on osX with:

$ sudo gem update rhc
If you have not yet installed the client tooling, you can do that as follows on osX:

$ sudo gem install rhc

We used to need various steps to setup a project, like this mobile JBoss project DevDayUK:

Running on OpenShift

Create an account at http://openshift.redhat.com/ Create a jbosseap-6.0 application
rhc app create -a devdayuk -t jbosseap-6.0
Add this upstream cloudtour repo
cd devdayuk
git remote add upstream -m master git://github.com/eschabell/openshift-devdayuk.git
git pull -s recursive -X theirs upstream master
Then push the repo upstream
git push
That's it, you can now checkout your application at:
http://devdayuk-$namespace.rhcloud.com

We can now shorten this list of tasks dramatically as follows:

Running on OpenShift

Create an account at http://openshift.redhat.com/ Create a jbosseap-6.0 application
rhc app create -a devdayuk -t jbosseap-6.0 --from-code git://github.com/eschabell/openshift-devdayuk.git
That's it, you can now checkout your application at:
http://devdayuk-$namespace.rhcloud.com
I will be updating all my README.md files for all my projects over the coming days to reflect this improvement.



 

Published at DZone with permission of Eric D. Schabell, author and DZone MVB.

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)

Tags: