PaaS == Platform as a Service A Cloud Application Platform Code Deploy Enjoy Push-button Deploy, and Save Time and MoneyCode your app your App is running in the Cloud!
Why PaaS?● Lets developer focus on his job i.e. to write code.● You develop “Cloud Aware” applications from the beginning.● Improves developer productivity.● Reduces cost and time to market.● Brings agility to product development.● Gives developers the power to prototype their ideas rapidly.
OpenShift isPaaS by Red Hat Multi-language, Auto-Scaling, Self-service, Elastic, Cloud Application Platform
Why OpenShift?● Strength. OpenShift is built on proven Red Hat technologies.● Freedom. In OpenShift, work the way you want. – Choice of Interface: Web Console, Command-line, or IDE – Choice of Middleware: Java(EE6), Ruby, Node.js, PHP, Python, and Perl – Choice of Cloud: Public, Private, or Hybrid Cloud – Choice of Elasticity: Automatic application scaling when needed● Openness. OpenShift’s open source software stack ensures application portability and No Lock-In.
What else Do I Get?● OpenShift is free-as-in-beer & free-as-in-freedom● You get three free gears, each with 512MB memory and 1GB of disk space.● Need more resources, just ask!● The catch is we are in developer preview right now
Developers Choose How To Work with OpenShift Developer IDE IntegrationsCommand Line Web Browser Tooling Console REST APIs
Sign up for OpenShift Accounthttps://openshift.redhat.com/app/account/newPromo Code is AGILENCR
Demo 1: Web ConsoleCreating a Wordpress blog is less than 2 minutes
Installing OpenShift Command Line Tools● Install Ruby 1.8.7 or greater● Install Git● Install rhc OpenShift gem Refer to documentation
Demo 2 : Creating a Java MySQL Application with Jenkins $ rhc app create -a todo -t jbossews-2.0 - - enable-jenkins $ rhc cartridge add mysql -a todo $ git remote add upstream -m master git://github.com/shekhargulati/git://github.com/shekhargul ati/agilencr-demo.git $ git pull -s recursive -X theirs upstream master $ git push
Customizing Jenkins Build● Modifying the default generated build configuration to do some work like running tests etc.
Demo 3 :Installing Sonar on OpenShiftSonar is an open platform to manage codequality.rhc app create -a sonar -t jbossews-1.0rhc cartridge add mysql -a sonarcd sonargit remote add upstream -m mastergit://github.com/wenhao/openshift-sonar.gitgit pull -s recursive -X theirs upstream mastergit rm -r src/ pom.xmlgit commit -am "delete src and pom.xml files."git push
Integrating Sonar with Build● Update Sonar profile in todo/pom.xml● Port forwarding using Eclipse● Run mvn sonar:sonar -Psonar
Conclusion● OpenShift is very easy● Installing various Agile tools was very easy● Sign up for an OpenShift account with promo code AGILENCR● Slides are available on SpeakerDeck https://speakerdeck.com/shekhargulati/● Code is on github https://github.com/shekhargulati