Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to test an openshift application on local host

I recently start playing with Openshift and I am wondering if there is a way to deploy ( test) your application on local host before you upload it on openshift. Thing is that every time I make change on the code, it takes some time to push it to openshift and check if it works.

Google app engine SDK ( for Eclipse), for example, includes a web server application (app engine simulator) that allows you to test your app locally before you deploy on google.

thnx Fotis

like image 397
panipsilos Avatar asked Jun 27 '12 09:06

panipsilos


1 Answers

There are several options actually (assuming you're creating java projects):

1) deploy it on a local jboss as7: this is completely valid since the runtimes that are offered on OpenShift differ in no way from what you can run locally / in a hosted environment. What's specific to OpenShift is the deployment process. It basically is a git push which triggers a maven build on the PaaS.

2) use the rpms/liveCD: OpenShift is also available as linux rpm packages and as virtual machine appliance (you may run with virtualbox, vm player etc). You'll find more details here: http://blog.jebpages.com/archives/run-openshift-origin-from-livecd-and-make-it-stick/ and here: https://openshift.redhat.com/community/wiki/build-your-own-paas-from-the-openshift-origin-livecd-using-liveinst

3) remote debug the application that is running on OpenShift: You'll find the details here: https://community.jboss.org/en/tools/blog/2012/06/27/deploy-from-eclipse-to-openshift-in-a-breeze

like image 117
adietisheim Avatar answered Nov 05 '22 05:11

adietisheim