Your SlideShare is downloading. ×
0
Advanced Java & JBoss in the CloudEric D. SchabellJBoss Technology Evangelisthttp://www.schabell.org@ericschabell / fb:eri...
First things first, sign up! http://openshift.redhat.com                                                        Promotiona...
OpenShift, a little history   ●   Nov 2010 – Makara acquired   ●   In 2011 – merged into OpenShift project   ●   May 2012 ...
OpenShift Primer              Get your code into the Cloud!                                             Book coming soon.....
Eric D. Schabell / @ericschabell / erics@redhat.com
Never look back...Eric D. Schabell / @ericschabell / erics@redhat.com
PaaS?Eric D. Schabell / @ericschabell / erics@redhat.com
Why am i DORKING                                                       with the stack?!Eric D. Schabell / @ericschabell / ...
Quickstart                                          1.Sign Up                                          2.Install Client To...
http://openshift.redhat.com –          “Sign up and Try it!”●   Example projects you can deploy    now!      ●   https://w...
Install Client Tools●   Fedora / RHEL                                         ●   The rest (osX, Ubuntu,                  ...
Create Domain●   Use rhc command         $ rhc domain create -n mydomain -l openshiftlogin●   Use admin console!Eric D. Sc...
Web AdministrationEric D. Schabell / @ericschabell / erics@redhat.com
Web CartridgesEric D. Schabell / @ericschabell / erics@redhat.com
Instant ApplicationsEric D. Schabell / @ericschabell / erics@redhat.com
Eric D. Schabell / @ericschabell / erics@redhat.com
Configure ApplicationEric D. Schabell / @ericschabell / erics@redhat.com
Ready to code!Eric D. Schabell / @ericschabell / erics@redhat.com
Application Details  Eric D. Schabell / @ericschabell / erics@redhat.com
Other Options●   Name app and define type       $ rhc app create -a appname -t apptype -l openshiftlogin       (Node.js, D...
Deploy to Cloud ●   Push the code to     Express          $ git push ●   Congratulations, your     app is in the cloud! Er...
Eric D. Schabell / @ericschabell / erics@redhat.com
Gears                                                  500MB memory + 1GB storageEric D. Schabell / @ericschabell / erics@...
JBoss Developer StudioEric D. Schabell / @ericschabell / erics@redhat.com
Tips & Tricks – no more passwords●   One way:        ●   save your password in .openshift/pass.txt        ●   chmod 600 .o...
Tips & Tricks – hot deployments●   Works for JBoss AS 7, PHP and Ruby (for now)      ●   add marker file:          touch ....
Demo DevDayUK Mobile App$ rhc app create -a devdayuk -t jbosseap-6.0$ cd devdayuk$ git remote add upstream -m mastergit://...
Demo jBPM Web Designer$ rhc app create -a editor -t jbossas-7$ cd editor$ git remote add upstream -m mastergit://github.co...
Demo jBPM Migration Project$ rhc app create -a jbpmmigration -t jbossas-7$ cd jbpmmigration$ git remote add upstream -m ma...
Demo Switchyard Project$ rhc app create -a swyesb -t jbossas-7$ cd swyesb$ git remote add upstream -m mastergit://github.c...
Demo Ceylon Project$ rhc app create -a ceylon -t jbossas-7$ cd ceylon$ git remote add upstream -m mastergit://github.com/e...
Demo GateIn Project$ rhc app create -a portal -t jbossas-7$ cd portal$ git remote add upstream -m mastergit://github.com/e...
Demo Drools Planner$ rhc app create -a droolsplanner -t jbosseap-6.0$ cd droolsplanner$ git remote add upstream -m masterg...
Demo JBoss BRMS 5.3*$ rhc app create -a brms53 -t jbossas-7$ cd brms53$ git remote add upstream -m mastergit://github.com/...
Eric D. Schabell / @ericschabell / erics@redhat.com
Loving your hammers?Eric D. Schabell / @ericschabell / erics@redhat.com
●   OpenShift: http://openshift.redhat.com●   OpenShift Enterprise PaaS FAQ:    http://www.redhat.com/resourcelibrary/data...
Red Hat Developer Day London: Advanced Java & JBoss in the Cloud
Upcoming SlideShare
Loading in...5
×

Red Hat Developer Day London: Advanced Java & JBoss in the Cloud

1,598

Published on

Join us for an action-packed hour of power! Bring your laptop and follow along as we help you get started with various JBoss components such as AeroGear, Drools Planner, Switchyard ESB, JBoss Business Rules Management System, and many more. Real world working examples put on display for you with code you can access live during this session.

Want to learn about how Red Hat OpenShift can change everything you thought you knew about developing Java apps in the cloud? This session is for you!

Published in: Technology
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,598
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
34
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Transcript of "Red Hat Developer Day London: Advanced Java & JBoss in the Cloud "

  1. 1. Advanced Java & JBoss in the CloudEric D. SchabellJBoss Technology Evangelisthttp://www.schabell.org@ericschabell / fb:ericdschabell01 Nov 2012, London
  2. 2. First things first, sign up! http://openshift.redhat.com Promotional Code: DEVDAYUK Eric D. Schabell / @ericschabell / erics@redhat.com
  3. 3. OpenShift, a little history ● Nov 2010 – Makara acquired ● In 2011 – merged into OpenShift project ● May 2012 – Open Sourced OpenShift ● LiveCD launched for local PaaS ● GitHub code base ● Activity: blogs, howtos, quickstarts, webinars ● June 2012 – JBoss World, OpenShift Enterprise PaaS announced.Eric D. Schabell / @ericschabell / erics@redhat.com
  4. 4. OpenShift Primer Get your code into the Cloud! Book coming soon... DeveloperPress.com! Eric D. Schabell / @ericschabell / erics@redhat.com
  5. 5. Eric D. Schabell / @ericschabell / erics@redhat.com
  6. 6. Never look back...Eric D. Schabell / @ericschabell / erics@redhat.com
  7. 7. PaaS?Eric D. Schabell / @ericschabell / erics@redhat.com
  8. 8. Why am i DORKING with the stack?!Eric D. Schabell / @ericschabell / erics@redhat.com
  9. 9. Quickstart 1.Sign Up 2.Install Client Tools 3.Create Domain 4.Create Application 5.Deploy Application (GIT)Eric D. Schabell / @ericschabell / erics@redhat.com
  10. 10. http://openshift.redhat.com – “Sign up and Try it!”● Example projects you can deploy now! ● https://www.github.com/openshift● Help? ● IRC: freenode #openshift Promotional Code: DEVDAYUK ● Forums: http://www.redhat.com/opens hift/community/forums ● Email: openshift at redhat dot com Eric D. Schabell / @ericschabell / erics@redhat.com
  11. 11. Install Client Tools● Fedora / RHEL ● The rest (osX, Ubuntu, Cygwin): ● openshift.repo ● gem install rhc (json_pure)● Move to yum.repos.d ● see forums, blogs $ sudo mv openshift.repo /etc/yum.repos.d● Install client tools $ sudo yum install rubygem-rhc Eric D. Schabell / @ericschabell / erics@redhat.com
  12. 12. Create Domain● Use rhc command $ rhc domain create -n mydomain -l openshiftlogin● Use admin console!Eric D. Schabell / @ericschabell / erics@redhat.com
  13. 13. Web AdministrationEric D. Schabell / @ericschabell / erics@redhat.com
  14. 14. Web CartridgesEric D. Schabell / @ericschabell / erics@redhat.com
  15. 15. Instant ApplicationsEric D. Schabell / @ericschabell / erics@redhat.com
  16. 16. Eric D. Schabell / @ericschabell / erics@redhat.com
  17. 17. Configure ApplicationEric D. Schabell / @ericschabell / erics@redhat.com
  18. 18. Ready to code!Eric D. Schabell / @ericschabell / erics@redhat.com
  19. 19. Application Details Eric D. Schabell / @ericschabell / erics@redhat.com
  20. 20. Other Options● 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.” Eric D. Schabell / @ericschabell / erics@redhat.com
  21. 21. Deploy to Cloud ● Push the code to Express $ git push ● Congratulations, your app is in the cloud! Eric D. Schabell / @ericschabell / erics@redhat.com
  22. 22. Eric D. Schabell / @ericschabell / erics@redhat.com
  23. 23. Gears 500MB memory + 1GB storageEric D. Schabell / @ericschabell / erics@redhat.com
  24. 24. JBoss Developer StudioEric D. Schabell / @ericschabell / erics@redhat.com
  25. 25. Tips & Tricks – no more passwords● One way: ● save your password in .openshift/pass.txt ● chmod 600 .openshift/pass.txt ● rhc domain show -p `cat .openshift/pass.txt`● Better: ● add function to .bashrc or .bash_profile function rhc() { `which rhc` "$@" -p "`cat ~/.openshift/.pass.txt`" # You can also specify -l $login if needed. }Eric D. Schabell / @ericschabell / erics@redhat.com
  26. 26. Tips & Tricks – hot deployments● Works for JBoss AS 7, PHP and Ruby (for now) ● add marker file: touch .openshift/markers/hot_deploy * note – still have to live inside memory footprint, maybe use Jenkins?Eric D. Schabell / @ericschabell / erics@redhat.com
  27. 27. Demo DevDayUK Mobile App$ rhc app create -a devdayuk -t jbosseap-6.0$ cd devdayuk$ git remote add upstream -m mastergit://github.com/eschabell/openshift-devdayuk.git$ git pull -s recursive -X theirs upstream master$ git pushhttp://devdayuk-$your_domain.rhcloud.comEric D. Schabell / @ericschabell / erics@redhat.com
  28. 28. Demo jBPM Web Designer$ rhc app create -a editor -t jbossas-7$ cd editor$ git remote add upstream -m mastergit://github.com/eschabell/openshift-webdesigner-jbpmmigration.git$ git pull -s recursive -X theirs upstream master$ git pushhttp://editor-$your_domain.rhcloud.com/designer/editor?profile=jbpm&uuid=123Eric D. Schabell / @ericschabell / erics@redhat.com
  29. 29. Demo jBPM Migration Project$ rhc app create -a jbpmmigration -t jbossas-7$ cd jbpmmigration$ git remote add upstream -m mastergit://github.com/eschabell/openshift-jbpmmigration.git$ git pull -s recursive -X theirs upstream master$ git pushhttp://jbpmmigration-$your_domain.rhcloud.com/jbpmmigration_upload-0.4Eric D. Schabell / @ericschabell / erics@redhat.com
  30. 30. Demo Switchyard Project$ rhc app create -a swyesb -t jbossas-7$ cd swyesb$ git remote add upstream -m mastergit://github.com/eschabell/switchyard-openshift.git$ git pull -s recursive -X theirs upstream master$ git apply standalone.diff$ git pushhttp://swyesb-$your_domain.rhcloud.com/swydws/OrderService?wsdlEric D. Schabell / @ericschabell / erics@redhat.com
  31. 31. Demo Ceylon Project$ rhc app create -a ceylon -t jbossas-7$ cd ceylon$ git remote add upstream -m mastergit://github.com/eschabell/ceylon-openshift.git$ git pull -s recursive -X theirs upstream master$ git pushhttp://ceylon-$your_domain.rhcloud.comEric D. Schabell / @ericschabell / erics@redhat.com
  32. 32. Demo GateIn Project$ rhc app create -a portal -t jbossas-7$ cd portal$ git remote add upstream -m mastergit://github.com/eschabell/openshift-portal.git$ git pull -s recursive -X theirs upstream master$ git pushhttp://portal-$your_domain.rhcloud.com/portalEric D. Schabell / @ericschabell / erics@redhat.com
  33. 33. Demo Drools Planner$ rhc app create -a droolsplanner -t jbosseap-6.0$ cd droolsplanner$ git remote add upstream -m mastergit://github.com/eschabell/openshift-droolsplanner.git$ git pull -s recursive -X theirs upstream master$ git pushhttp://droolsplanner-$your_domain.rhcloud.com/droolsplannerEric D. Schabell / @ericschabell / erics@redhat.com
  34. 34. Demo JBoss BRMS 5.3*$ rhc app create -a brms53 -t jbossas-7$ cd brms53$ git remote add upstream -m mastergit://github.com/eschabell/openshift-brms53.git$ git pull -s recursive -X theirs upstream master$ git pushhttp://brms53-$your_domain.rhcloud.com:8080/jboss-brmsEric D. Schabell / @ericschabell / erics@redhat.com
  35. 35. Eric D. Schabell / @ericschabell / erics@redhat.com
  36. 36. Loving your hammers?Eric D. Schabell / @ericschabell / erics@redhat.com
  37. 37. ● OpenShift: http://openshift.redhat.com● OpenShift Enterprise PaaS FAQ: http://www.redhat.com/resourcelibrary/datasheets/openshift-enterprise-paas-solution● Blogs: https://www.redhat.com/openshift/community/blogs● Repository for all OpenShift demos shown here: https://github.com/eschabell● OpenShift demo repository: https://github.com/openshift● Rise above the Cloud hype with OpenShift: http://www.schabell.org/2012/01/rise-above-cloud-hype-with-openshift.htmlEric D. Schabell / @ericschabell / erics@redhat.com
  1. A particular slide catching your eye?

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

×