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

  • 1,477 views
Uploaded 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 …

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!

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
1,477
On Slideshare
0
From Embeds
0
Number of Embeds
4

Actions

Shares
Downloads
30
Comments
0
Likes
2

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Advanced Java & JBoss in the CloudEric D. SchabellJBoss Technology Evangelisthttp://www.schabell.org@ericschabell / fb:ericdschabell01 Nov 2012, London
  • 2. First things first, sign up! http://openshift.redhat.com Promotional Code: DEVDAYUK Eric D. Schabell / @ericschabell / erics@redhat.com
  • 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. OpenShift Primer Get your code into the Cloud! Book coming soon... DeveloperPress.com! Eric D. Schabell / @ericschabell / erics@redhat.com
  • 5. Eric D. Schabell / @ericschabell / erics@redhat.com
  • 6. Never look back...Eric D. Schabell / @ericschabell / erics@redhat.com
  • 7. PaaS?Eric D. Schabell / @ericschabell / erics@redhat.com
  • 8. Why am i DORKING with the stack?!Eric D. Schabell / @ericschabell / erics@redhat.com
  • 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. 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. 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. Create Domain● Use rhc command $ rhc domain create -n mydomain -l openshiftlogin● Use admin console!Eric D. Schabell / @ericschabell / erics@redhat.com
  • 13. Web AdministrationEric D. Schabell / @ericschabell / erics@redhat.com
  • 14. Web CartridgesEric D. Schabell / @ericschabell / erics@redhat.com
  • 15. Instant ApplicationsEric D. Schabell / @ericschabell / erics@redhat.com
  • 16. Eric D. Schabell / @ericschabell / erics@redhat.com
  • 17. Configure ApplicationEric D. Schabell / @ericschabell / erics@redhat.com
  • 18. Ready to code!Eric D. Schabell / @ericschabell / erics@redhat.com
  • 19. Application Details Eric D. Schabell / @ericschabell / erics@redhat.com
  • 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. 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. Eric D. Schabell / @ericschabell / erics@redhat.com
  • 23. Gears 500MB memory + 1GB storageEric D. Schabell / @ericschabell / erics@redhat.com
  • 24. JBoss Developer StudioEric D. Schabell / @ericschabell / erics@redhat.com
  • 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. Eric D. Schabell / @ericschabell / erics@redhat.com
  • 36. Loving your hammers?Eric D. Schabell / @ericschabell / erics@redhat.com
  • 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