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




              Eric D. Schabell                   NLUUG Spring 2012
              JBoss Senior Solution Architect
              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: NLUUG
  – IRC: freenode #openshift
  – Forums:
    http://www.redhat.com/openshift/c
    ommunity/forums
  – Email: openshift at redhat dot com
NLUUG Spring 2012 - OpenShift Primer
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!
Gears




        500MB memory + 1GB storage
Web Administration
Create Application
Configure Application
Ready to code!
Application Details
Why OpenShift? It's you.
Your language / framework
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!
NLUUG Spring 2012 - OpenShift Primer
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
Demo Wordpress
$ rhc app create -a wordpress -t php-5.3
$ rhc app cartridge add -a wordpress -c mysql-5.1
$ cd wordpress
$ git remote add upstream -m master
git://github.com/openshift/wordpress-example.git
$ git pull -s recursive -X theirs upstream master
$ git push

http://wordpress-$your_domain.rhcloud.com
JBoss Developer Studio
NLUUG Spring 2012 - OpenShift Primer
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

NLUUG Spring 2012 - OpenShift Primer

  • 1. An OpenShift Primer Get your code into the Cloud! Eric D. Schabell NLUUG Spring 2012 JBoss Senior Solution Architect [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: NLUUG – 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!
  • 12. Gears 500MB memory + 1GB storage
  • 19. Your language / framework
  • 20. 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.”
  • 21. Deploy to Cloud • Push the code to Express $ git push • Congratulations, your app is in the cloud!
  • 23. 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
  • 24. Demo Wordpress $ rhc app create -a wordpress -t php-5.3 $ rhc app cartridge add -a wordpress -c mysql-5.1 $ cd wordpress $ git remote add upstream -m master git://github.com/openshift/wordpress-example.git $ git pull -s recursive -X theirs upstream master $ git push http://wordpress-$your_domain.rhcloud.com
  • 29. Time for a new project!
  • 30. What will the future bring? Express / Flex unification JBoss++ Commercial Service / Pricing Mobile 2012 Open Source (SDK + project)
  • 32. 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