OpenShift Primer - get your code into the cloud

1,852 views
1,729 views

Published on

Whether your business is running on applications based on Java EE6, PHP or Ruby, the cloud is turning out to be the perfect environment for developing your business. There are plenty of clouds and platform-as-a-services to choose from, but where to start? Join us for an action-packed hour of power where we'll show you how to deploy your existing application written in the language of your choice - Java, Ruby, PHP, Perl or Python, with the project of your choice - examples with JBoss jBPM, Ceylon, Switchyard, Drools Planner, Aerogear, GateIn, Drools (Rules / BPM) and more deployed into the OpenShift PaaS in just minutes. All this and without having to rewrite your app to get it to work the way the cloud provider thinks your app should work.

If you want to learn about OpenShift PaaS and see how investing an hour of your time can change everything you thought you knew about putting your business applications in the cloud, this session is for you!

(By Author: OpenShift Primer & OpenShift Primer revision 2)

Published in: Technology

OpenShift Primer - get your code into the cloud

  1. 1. OPENSHIFT PRIMER GETYOURCODEINTO THECLOUD Created by /Eric D. Schabell @ericschabell
  2. 2. NEVERLOOKBACK...
  3. 3. ALITTLEHISTORY Nov 2010: Makara acquired In 2011: merged into OpenShift project May 2012: Open Sourced Dec 2012: OpenShift Primer (e-book) 2013: Online Public PaaS / Enterprise Private PaaS / xPaaS Services Apr 2014: OpenShift Primer revision 2 (e-book) Events - JUG's, GOTO Aarhus, JAX London, JUDCon, Devoxx, APAC Tech Exchange
  4. 4. QUICKSTART 1. Sign up 2. Install client tools 3. Create domain 4. Create application 5. Deploy application (GIT)
  5. 5. SIGNUP,IT'SFREE! Example projects you can deploy now Help IRC freenode #openshift forums email: openshift@redhat.com http://openshift.com http://github.com/openshift
  6. 6. INSTALLCLIENTTOOLS Fedora / RHEL openshift repo /etc/yum.repos.d sudo yum install rubygem-rhc OSX / Windows / Unix gem install rhc see forum or blogs
  7. 7. CREATEDOMAINS Use rhc command $ rhc domain create {mydomain} Use web admin console
  8. 8. APPLICATIONDETAILS
  9. 9. CARTRIDGEADDITIONS
  10. 10. OTHEROPTIONS name app and define type $ rhc app create -t {apptype} {appname} 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."
  11. 11. DEPLOYTOCLOUD Push the code $ git push Congratulations, your app is in the Cloud!
  12. 12. JBOSSDEVELOPERSTUDIO
  13. 13. ADVANCEDQUICKSTARTS
  14. 14. JAXLONDONMOBILEREGISTRATION $ rhc app create -t jbosseap-6 jaxlondon $ cd jaxlondon $ git remote add upstream -m master git://github.com/eschabell/openshift- jaxlondon.git $ git pull -s recursive -X theirs upstream master $ git push http://jaxlondon-$your_domain.rhcloud.com
  15. 15. HOSTAWESTRUCTPRESENTATIONS $ rhc app create -t ruby-1.9 --from-code git://github.com/eschabell/openshift- presos-awstruct.git presos http://presos-$your_domain.rhcloud.com
  16. 16. JBPMMIGRATIONPROJECT $ rhc app create -t jbossas-7 --from-code git://github.com/eschabell/openshift- jbpmmigration.git jbpmmigration http://jbpmmigration- $your_domain.rhcloud.com/jbpmmigration_upload- 0.5
  17. 17. OPTAPLANNERDEMO $ rhc app create -t jbosseap-6 --from-code git://github.com/eschabell/openshift- droolsplanner.git droolsplanner http://droolsplanner- $your_domain.rhcloud.com/droolsplanner
  18. 18. BUSINESSACTIVITYMONITORING $ rhc app create -t jbossas-7 --from-code git://github.com/eschabell/openshift-bpm-bam- dashboard.git bam setup user login: $ rhc app show bam $ scp bampreview/.openshift/config/bam-*.prope xxxxxxxxxx@bam- inthe.rhcloud.com:~/jbossas/standalone/configu http://bam-$your_domain.rhcloud.com (u:erics/p:e
  19. 19. OPENSHIFTPRIMERWORKSHOP $ rhc app create -t ruby-1.9 --from- code=https://github.com/eschabell/jaxlondon- 2013-workshop.git jaxlondon2013 http://jaxlondon2013- $your_domain.rhcloud.com
  20. 20. LOVINGYOURHAMMERS?
  21. 21. OpenShift Primer Workshop - OpenShift - Blogs - Repository for all OpenShift demos shown here - OpenShift demo repository - Rise above the Cloud hype with OpenShift - http://presos- onthe.rhcloud.com http://openshift.redhat.com https://www.redhat.com/openshift/community/blogs https://github.com/eschabell https://github.com/openshift http://www.schabell.org/2012/01/rise-above-cloud-hype- with-openshift.html
  22. 22. ll

×