An OpenShift Primer     Get your code into the Cloud!              Eric D. Schabell                   Codemotion – Rome, I...
Sign up, its free!• http://openshift.redhat.com – “Sign  up and Try it!”• Example projects you can deploy  now!   – https:...
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...
Create Domain• Use rhc-create-domain command   $ rhc-create-domain -n mydomain -l openshiftlogin• use Express console!
rhc-create-domainUsage: /usr/bin/rhc-create-domainBind a registered rhcloud user to a domain in rhcloud. -n|--namespace na...
Web Administration
Create Application
Configure Application
Ready to code!
Application Details
Why OpenShift? Its you.
Other Options: create apps• Name app and define type     $ rhc-create-app -a appname -t apptype -l openshiftlogin     (Nod...
Deploy to Cloud• Push the code to  Express    $ git push• Congratulations,  your app is in the  cloud!
Demo Codemotion Mobile App$ rhc-create-app -a codemotion -t jbossas-7$ cd codemotion$ git remote add upstream -m mastergit...
JBoss Developer Studio
JBDS in action...
Remove Application
Time for a new project!
What will the future bring?   Express / Flex unification   JBoss++   Commercial Service / Pricing   Mobile                ...
Loving your hammer?
• OpenShift: http://openshift.redhat.com• OpenShift Express: https://openshift.redhat.com/app/express• Blogs: https://www....
Codemotion 2012 Rome - An OpenShift Primer
Codemotion 2012 Rome - An OpenShift Primer
Codemotion 2012 Rome - An OpenShift Primer
Upcoming SlideShare
Loading in …5
×

Codemotion 2012 Rome - An OpenShift Primer

2,598 views

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
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,598
On SlideShare
0
From Embeds
0
Number of Embeds
755
Actions
Shares
0
Downloads
18
Comments
0
Likes
1
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 erics@redhat.com / @ericschabell www.codemotion.it
  2. 2. Sign up, its free!• http://openshift.redhat.com – “Sign up and Try it!”• Example projects you can deploy now! – https://www.github.com/openshift• Help? Promotional Code: CODEMOTION – IRC: freenode #openshift – Forums: http://www.redhat.com/openshift/c 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 http://openshift.redhat.com
  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://github.com/eschabell/kitchensink-html5-mobile-example.git$ git pull -s recursive -X theirs upstream master$ git pushhttp://codemotion-$your_domain.rhcloud.com
  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: http://openshift.redhat.com• OpenShift Express: https://openshift.redhat.com/app/express• Blogs: https://www.redhat.com/openshift/community/blogs• JBPM Web Designer in the Cloud (example): http://www.schabell.org/2011/10/jbpm-web-designer-integrates-jbpm.html• 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

×