Uploaded on

OpenShift: State of the Union talk at Devoxx,2012. A quick primer followed by some demo's you can do at home!

OpenShift: State of the Union talk at Devoxx,2012. A quick primer followed by some demo's you can do at home!

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads


Total Views
On Slideshare
From Embeds
Number of Embeds



Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

    No notes for slide


  • 1. OpenShift State of the Union Devoxx 2012Marco RietveldJBoss Software Engineerhttp://mriet.wordpress.com/@marcorietveld14 Nov 2012, Antwerp
  • 2. Sign up (It’s free!) Sorry spam bots! No OpenShift for you!Got a laptop?(Why not?!?)Promo code:DEVOXX2012http://openshift.com/This way you can followalong with the demos.
  • 3. OpenShift status“A speech given bythe US President toCongress everyyear describing thecondition of thecountry...”
  • 4. History Lesson • November 2010: Makara acquired by Red Hat • 2011: Makara merged into the OpenShift project • May 2012: OpenShift open sourced! • Live CD launched for local PaaS • GitHub code base • Activity: blogs, howto’s, quickstarts, webinars... • June 2012: JBoss World, OpenShift Enterprise PaaS announced.
  • 5. Getting started
  • 6. You start with 3
  • 7. And you never look back Tekst
  • 8. PaaS?!?Widescreen.. <drool>
  • 9. STOP DORKING WITH THE STACKTime spent setting up the server:14 hoursTime spent findingand fixing the problem:45 minutesThere are some things that youcan spend all day(s) on.This is NOT ONE OF THEM!
  • 10. HOW-TO 1. Sign Up 2. Install Client Tools 3. Create Domain 4. Create Application 5. Deploy Application (GIT) 6. ROCK OUT!
  • 11. Sign up (It’s free!) Sorry spam bots! No OpenShift for you!Got a laptop?(Why not?!?)Promo code:DEVOXX2012http://openshift.com/This way you can followalong with the demos.
  • 12. Install Client Tools Command line (https://openshift.redhat.com/community/developers/install-the-client-tools)Fedora Ubuntu$ sudo yum install rubygem-rhc Windows Install Ruby (RubyInstaller 1.9) $ sudo apt-get instal$ rhc Install Git for Windows (1.8.0) $ ruby -e ‘puts “Test$ sudo gem update rhc Test C:Program Files> gem install rhc $ git --version C:Program Files> rhc git version 1.8.0 $ sudo getm install r Other $ rhc See link above Mac OS X $ ruby -e ‘puts “Ruby is installed”’ Ruby is installed $ git --version git version 1.8.0 $ sudo gem install rhc $ rhc
  • 13. Create your Domain- Use the rhc command$ rhc domain create -n mydomain -l openshiftlogin - Use the admin console
  • 14. Web CartridgesCurrently:JBoss EAP 6.0,JBoss AS 7.1,Tomcat,Zend 5.6,Node.js 0.6,PHP 5.3,Perl 5.10,Python 2.6, Ruby 1.9,Jenkins, DIY...
  • 15. Instant applications
  • 16. Creating an Application• Web Cartridge • Choose a name• Create!
  • 17. Ready, Set, Code!
  • 18. Extend... (or start over!)
  • 19. Gears • 500 Mb memory • 1 Gb Storage TekstEmbedded Gears:MySQL,PostgreSQL,MongoDB,PHPMyAdmin,RockMongo,Jenkins,HAProxy,Metrics,Cron,Gen-MMS-Agent
  • 20. And Now with theCommand Line • Name app and define type$ rhc app create -a <appname> -t <apptype> -l <openshiftlogin> • Add application to local repo$ cd <appname>$ # add files, change them, etc!$ git add . • Commit changes$ git commit -m “Initial app import.”
  • 21. DEPLOY$ git push (Git hooks)In your git repository:.openshift/action_hooks/pre_build.openshift/action_hooks/build.openshift/action_hooks/deploy.openshift/action_hooks/post_deploy
  • 22. EASY!
  • 23. Oh yeah, Developer Studio!
  • 24. 1, 2, 3, Go
  • 25. Tips & No More Passwords! (bash) Save password in ~/.openshift/.pwdTricks $ chmod 600 ~/.openshift/.pwd $ function rhc() { `which rhc` “$@” -p “`cat ~/.openshift/.pwd`” # -l $login also, if you want }Hot Deployments!Works for JBoss AS7, PHP and Ruby. Git ConfigAdd marker file: autosetuprebase=true$ touch .openshift/markers/hot_deploy can cause problems...... remember, you still have to live inside the unless you’re a git guru!memory footprint -- there’s also Jenkins!
  • 26. DEMO TIME!
  • 27. Designer$ rhc app create -a editor -t jbossas-7$ cd editor$ git remote add upstream -m master git://github.com/eschabell/openshift-webdesigner-jbpmmigration.git$ git pull -s recursive -X theirs upstream master$ git pushhttp://editor-$yourDomain.rhcloud.com/designer/editor?profile=jbpm&uuid=123
  • 28. $ rhc app create -a swyesb -t jbossas-7$ cd swyesb$ git remote add upstream -m master git://github.com/eschabell/switchyard-openshift.git$ git pull -s recursive -X theirs upstream master$ git apply standalone.diff$ git pushhttp://swyesb-$yourDomain.rhcloud.com/swydws/OrderService?wsdl
  • 29. $ rhc app create -a ceylon -t jbossas-7$ cd ceylon$ git remote add upstream -m master git://github.com/eschabell/ceylon-openshift.git$ git pull -s recursive -X theirs upstream master$ git pushhttp://ceylon-$yourDomain.rhcloud.com
  • 30. Redmine$ rhc app create -a redmine -t ruby-1.9$ rhc app cartridge add -a redmine -c mysql-5.1$ cd redmine$ git remote add upstream -m master git://github.com/openshift/redmine-2.0-openshift-quickstart.git$ git pull -s recursive -X theirs upstream master$ git pushhttp://portal-$yourDomain.rhcloud.com/portal
  • 31. $ rhc app create -a capedwarf -t jbossas-7$ cd capedwarf$ git remote add upstream git://github.com/openshift/capedwarf-example.git$ git pull -s recursive -X theirs upstream master$ git pushhttp://capedwarf-$yourDomain.rhcloud.com/
  • 32. $ rhc app create -a nodejs -t nodejs-0.6$ cd nodejs$ git remote add upstream git://github.com/openshift/nodejs-example.git$ git pull -s recursive -X theirs upstream master$ git pushhttp://nodejs-$yourDomain.rhcloud.com/
  • 33. DIY: Do It Yourself$ rhc app create -a diy -t diy-0.1$ cd diy$ git remote add upstream git://github.com/openshift/openshift-diy-java-demo.git$ git pull -s recursive -X theirs upstream master# modify html/index.html and commit$ git pushhttp://diy-$yourDomain.rhcloud.com/
  • 34. Getting finished
  • 35. Local PaaSRuns on Virtual Box(or virtmanager on linux)Amazon AMI’s can alsobe created.Open Source
  • 36. Oct 17, 2011ProgressNov 15, 2011Dec 9, 2011Dec 20, 2011 • Frequent releasesJan 17, 2012Feb 7, 2012 • Vote on Features https://openshift.redhat.com/community/ideasFeb 21, 2012March 5, 2012March 22, 2012 • Get involved https://openshift.redhat.com/community/get-involvedMay 15, 2012June 26, 2012July 18, 2012Aug 8, 2012Aug 28, 2012Sep 18, 2012Oct 21, 2012
  • 37. Links, Info, IRC, email, ... Openshift http://openshift.redhat.com Example projects you can deploy now https://www.github.com/openshift as in -- during this talk -- but, you wouldn’t right? I’m still talking! Help? IRC freenode #openshift http://www.redhat.com/openshift/ Forums community/forums Email openshift at redhat dot
  • 38. Questions?
  • 39. Credits:Photos/Images:all. OpenShift http://www.openshift.com5, 34. “The Endeavor Lifts Off” http://www.flickr.com/photos/stuckincustoms/5896504098/6. “Hammers” http://www.nytimes.com/2011/08/11/garden/roy-mackeys-hammer-art.html7. “Warp Speed” http://www.flickr.com/photos/19942094@N00/4937185452/ (Randy Le’Moine Photography)8. “NEC wide screen” http://www.finalsense.com/news/image/display/nec-crvd-lcd.jpg9. “Damn!” (borking) http://www.flickr.com/photos/lore/431644237/19. “Inner Gears” http://terrifyingteddy.deviantart.com/art/Inner-Gears-18507686521. “Happy Dance” http://www.flickr.com/photos/jefito/2926851715/26. “Blue Explosion” http://kyoakuno.deviantart.com/art/Blue-Explosion-9369437627, 28, 29, 31. Logo’s (various projects) http://design.jboss.org/30. “Ruby on Rails logo” http://media.smashingmagazine.com/images/introduction-to-rails/rails.jpg32. “Node.js logo” http://nodejs.org/logos/38. “Wat” http://knowyourmeme.com/photos/173583, http://knowyourmeme.com/photos/195379 THANKS: Eric D. Schabell, John Graham, Devoxx, JBoss, the convenience store around the corner, Linux, Eclipse, Staffworld (UMD CS), “Steal This Presentation!”, Noise Pop, Skip Grant, and last, but not least, the OpenShift team!