Lets create CloudIT● Download Play framework● Download RedHat Command Line Tools● Get Play2 OpenShift quickstart https://github.com/opensas/play2-openshift-quickstart● Create new Play app "CloudIT" play new CloudIT● Initialize git git init● Create app on OpenShift (diy) rhc app create -a cloudit -t diy-0.1 --nogit● Link git repos git remote add origin ssh://firstname.lastname@example.org/~/git/cloudit.git/ git pull -s recursive -X theirs origin master git add . git commit -m "initial deploy" git remote add cloudit -m master git://github.com/jdewinne/play2-openshift-quickstart.git git pull -s recursive -X theirs cloudit master
Lets create CloudIT● Play stage play clean compile stage● Add to git git add . git commit -m "some first app" git push origin● Test http://cloudit-xita.rhcloud.com/
How does it work?● .openshift/....● git repo● Based on standards
Lets create CloudIT● Make some changes● Add Jenkins ○ Online: enable jenkins ○ Add "play clean compile stage" to build Use $OPENSHIFT_DATA_DIR ○ Add Play framework to jenkins Create PLAY environment variable ○ Doesnt work. Why?
Pricing & Production use● Pricing https://openshift.redhat.com/community/blogs/announcing-openshift-pricing-beyond-free-php-and-java-hosting-in-the-cloud mailto: email@example.com 3 applications for free● Production use Not yet!
OpenShift vs. Heroku● Create your own PaaS?● Based on open standards?● Free for developers?● Production ready?
Other stuff● Architecture https://openshift.redhat.com/community/wiki/architecture-overview● Build your own Paas: https://openshift.redhat.com/community/wiki/build-your-own-paas-from-the-openshift-origin-livecd-using-liveinst● Build your own cartridge https://openshift.redhat.com/community/wiki/introduction-to-cartridge-building