SlideShare a Scribd company logo
An OpenShift Primer
     Get your code into the Cloud!




              Eric D. Schabell                   Red Hat Cloud Tour 2012
              JBoss Senior Solution Architect    Amsterdam / London
              erics@redhat.com / @ericschabell
Sign up, it's free!
• http://openshift.redhat.com – “Sign
  up and Try it!”


• Example projects you can deploy
  now!
   – https://www.github.com/openshift


• Help?
                                         Promotional Code: RHCT
  – IRC: freenode #openshift
  – Forums:
    http://www.redhat.com/openshift/c
    ommunity/forums
  – Email: openshift at redhat dot com
OpenShift Primer - get your business into the Cloud today!
Immersion...
Shift happens?
Never look back...
PaaS?
Why am i DORKING
 with the stack?!
Express
     1.Sign Up
     2.Install Client Tools
     3.Create Domain
     4.Create Application
     5.Deploy Application (GIT)
Sign Up
          http://openshift.redhat.com
Install Client Tools
                                   • The rest (osX,
• Fedora / RHEL                      Ubuntu, Cygwin):
   – openshift.repo                  – gem install rhc
• Move to yum.repos.d                  (json_pure)
  $ sudo mv openshift.repo           – see forums, blogs
  /etc/yum.repos.d

• Install client tools
  $ sudo yum install rubygem-rhc
Create Domain
• Use rhc command
   $ rhc domain create -n mydomain -l openshiftlogin
• use Express console!
Web Administration
Create Application
Configure Application
Ready to code!
Application Details
Why OpenShift? It's you.
Other Options:
 create apps
• Name app and define type
     $ rhc app create -a appname -t apptype -l openshiftlogin
     (Node.js, DIY, Jenkins, PHP, Ruby, Python, Perl and most
     important, Java!)
• Add application to local repo
     $ git add .
• Commit changes
     $ git commit -m “Initial app import.”
Deploy to Cloud

• Push the code to
  Express
    $ git push


• Congratulations,
  your app is in the
  cloud!
OpenShift Primer - get your business into the Cloud today!
Demo CloudTour Mobile App
$ rhc app create -a cloudtour -t jbossas-7
$ cd cloudtour
$ git remote add upstream -m master
git://github.com/eschabell/openshift-cloudtour.git
$ git pull -s recursive -X theirs upstream master
$ git push

http://cloudtour-$your_domain.rhcloud.com
JBoss Developer Studio
OpenShift Primer - get your business into the Cloud today!
JBDS in action...
Remove Application
Time for a new project!
What will the future bring?
   Express / Flex unification

   JBoss++

   Commercial Service / Pricing

   Mobile
                                  2012
   Open Source (SDK + project)
Loving your hammer?
• OpenShift: http://openshift.redhat.com
• OpenShift Express: https://openshift.redhat.com/app/express
• Blogs: https://www.redhat.com/openshift/community/blogs
• CloudTour mobile application demo on OpenShift:
   https://github.com/eschabell/openshift-cloudtour
• Deploy an application to OpenShift with JBossTools (video):
   http://vimeo.com/33988381
• Deploying mobile application with JBoss Dev Studio:
   https://community.jboss.org/wiki/DeployingHTML5ApplicationsToOpenshift
• Rise above the Cloud hype with OpenShift:
   http://www.schabell.org/2012/01/rise-above-cloud-hype-with-openshift.html

More Related Content

OpenShift Primer - get your business into the Cloud today!

  • 1. An OpenShift Primer Get your code into the Cloud! Eric D. Schabell Red Hat Cloud Tour 2012 JBoss Senior Solution Architect Amsterdam / London [email protected] / @ericschabell
  • 2. Sign up, it's free! • http://openshift.redhat.com – “Sign up and Try it!” • Example projects you can deploy now! – https://www.github.com/openshift • Help? Promotional Code: RHCT – IRC: freenode #openshift – Forums: http://www.redhat.com/openshift/c ommunity/forums – Email: openshift at redhat dot com
  • 7. Why am i DORKING with the stack?!
  • 8. Express 1.Sign Up 2.Install Client Tools 3.Create Domain 4.Create Application 5.Deploy Application (GIT)
  • 9. Sign Up http://openshift.redhat.com
  • 10. Install Client Tools • The rest (osX, • Fedora / RHEL Ubuntu, Cygwin): – openshift.repo – gem install rhc • Move to yum.repos.d (json_pure) $ sudo mv openshift.repo – see forums, blogs /etc/yum.repos.d • Install client tools $ sudo yum install rubygem-rhc
  • 11. Create Domain • Use rhc command $ rhc domain create -n mydomain -l openshiftlogin • use Express console!
  • 18. Other Options: create apps • Name app and define type $ rhc app create -a appname -t apptype -l openshiftlogin (Node.js, DIY, Jenkins, PHP, Ruby, Python, Perl and most important, Java!) • Add application to local repo $ git add . • Commit changes $ git commit -m “Initial app import.”
  • 19. Deploy to Cloud • Push the code to Express $ git push • Congratulations, your app is in the cloud!
  • 21. Demo CloudTour Mobile App $ rhc app create -a cloudtour -t jbossas-7 $ cd cloudtour $ git remote add upstream -m master git://github.com/eschabell/openshift-cloudtour.git $ git pull -s recursive -X theirs upstream master $ git push http://cloudtour-$your_domain.rhcloud.com
  • 26. Time for a new project!
  • 27. What will the future bring? Express / Flex unification JBoss++ Commercial Service / Pricing Mobile 2012 Open Source (SDK + project)
  • 29. • OpenShift: http://openshift.redhat.com • OpenShift Express: https://openshift.redhat.com/app/express • Blogs: https://www.redhat.com/openshift/community/blogs • CloudTour mobile application demo on OpenShift: https://github.com/eschabell/openshift-cloudtour • Deploy an application to OpenShift with JBossTools (video): http://vimeo.com/33988381 • Deploying mobile application with JBoss Dev Studio: https://community.jboss.org/wiki/DeployingHTML5ApplicationsToOpenshift • Rise above the Cloud hype with OpenShift: http://www.schabell.org/2012/01/rise-above-cloud-hype-with-openshift.html