Codemotion 2012 Rome - An OpenShift Primer


Published on

Whether you're a seasoned Java developer looking to start hacking on EE6 or you just wrote your first line of Ruby yesterday, the cloud is perfect for developing apps in any modern language or framework. Join us for an action-packed hour of power where we'll show you how to deploy an application written in a language of your choice - Java, Ruby, PHP, Perl or Python, with a framework of your choice - EE6, CDI, Seam, Zend, Rails, Sinatra, PerlDancer or Django to the OpenShift PaaS in just minutes. Use the following promotional code when signing up to try out OpenShift: CODEMOTION

Published in: Technology
1 Like
  • Be the first to comment

No Downloads
Total Views
On Slideshare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Codemotion 2012 Rome - An OpenShift Primer

  1. 1. An OpenShift Primer Get your code into the Cloud! Eric D. Schabell Codemotion – Rome, Italy JBoss Senior Solution Architect 23-24 March 2012 / @ericschabell
  2. 2. Sign up, its free!• – “Sign up and Try it!”• Example projects you can deploy now! –• Help? Promotional Code: CODEMOTION – IRC: freenode #openshift – Forums: ommunity/forums – Email: openshift at redhat dot com
  3. 3. Immersion...Shift happens?
  4. 4. Never look back...
  5. 5. PaaS?
  6. 6. Why am i DORKING with the stack?!
  7. 7. Express 1.Sign Up 2.Install Client Tools 3.Create Domain 4.Create Application 5.Deploy Application (GIT)
  8. 8. Sign Up
  9. 9. 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
  10. 10. Create Domain• Use rhc-create-domain command $ rhc-create-domain -n mydomain -l openshiftlogin• use Express console!
  11. 11. rhc-create-domainUsage: /usr/bin/rhc-create-domainBind a registered rhcloud user to a domain in rhcloud. -n|--namespace namespace Namespace for your application(s) (alphanumeric - max 16 chars) -l|--rhlogin rhlogin Red Hat login (RHN or OpenShift login with OpenShift Express access) -p|--password password RHLogin password (optional, will prompt) -a|--alter Alter namespace (will change urls) and/or ssh key -d|--debug Print Debug info -h|--help Show Usage info --config path Path of alternate config file --timeout # Timeout, in seconds, for connection
  12. 12. Web Administration
  13. 13. Create Application
  14. 14. Configure Application
  15. 15. Ready to code!
  16. 16. Application Details
  17. 17. Why OpenShift? Its you.
  18. 18. Other Options: create apps• Name app and define type $ rhc-create-app -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. 19. Deploy to Cloud• Push the code to Express $ git push• Congratulations, your app is in the cloud!
  20. 20. Demo Codemotion Mobile App$ rhc-create-app -a codemotion -t jbossas-7$ cd codemotion$ git remote add upstream -m mastergit://$ git pull -s recursive -X theirs upstream master$ git pushhttp://codemotion-$
  21. 21. JBoss Developer Studio
  22. 22. JBDS in action...
  23. 23. Remove Application
  24. 24. Time for a new project!
  25. 25. What will the future bring? Express / Flex unification JBoss++ Commercial Service / Pricing Mobile 2012 Open Source (SDK + project)
  26. 26. Loving your hammer?
  27. 27. • OpenShift:• OpenShift Express:• Blogs:• JBPM Web Designer in the Cloud (example):• Deploy an application to OpenShift with JBossTools (video):• Deploying mobile application with JBoss Dev Studio:• Rise above the Cloud hype with OpenShift:
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.