openshift primer - get your code into the cloud

33
OPENSHIFT PRIMER GET YOUR CODE INTO THE CLOUD Created by / Eric D. Schabell @ericschabell

Upload: eric-d-schabell

Post on 06-Sep-2014

805 views

Category:

Technology


4 download

DESCRIPTION

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)

TRANSCRIPT

Page 1: OpenShift Primer - get your code into the cloud

OPENSHIFTPRIMER

GET YOUR CODE INTO THE CLOUDCreated by / Eric D. Schabell @ericschabell

Page 2: OpenShift Primer - get your code into the cloud
Page 3: OpenShift Primer - get your code into the cloud

NEVER LOOK BACK...

Page 4: OpenShift Primer - get your code into the cloud
Page 5: OpenShift Primer - get your code into the cloud
Page 6: OpenShift Primer - get your code into the cloud

A LITTLE HISTORYNov 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

Page 7: OpenShift Primer - get your code into the cloud

QUICKSTART1. Sign up2. Install client tools3. Create domain4. Create application5. Deploy application (GIT)

Page 8: OpenShift Primer - get your code into the cloud

SIGN UP, IT'S FREE!

Example projects you can deploy now

Help

IRC freenode #openshift

forums

email: [email protected]

http://openshift.com

http://github.com/openshift

Page 9: OpenShift Primer - get your code into the cloud

INSTALL CLIENT TOOLSFedora / RHEL

openshift repo/etc/yum.repos.dsudo yum install rubygem-rhc

OSX / Windows / Unixgem install rhcsee forum or blogs

Page 10: OpenShift Primer - get your code into the cloud

CREATE DOMAINSUse rhc command$ rhc domain create {mydomain}

Use web admin console

Page 11: OpenShift Primer - get your code into the cloud
Page 12: OpenShift Primer - get your code into the cloud
Page 13: OpenShift Primer - get your code into the cloud
Page 14: OpenShift Primer - get your code into the cloud
Page 15: OpenShift Primer - get your code into the cloud
Page 16: OpenShift Primer - get your code into the cloud

APPLICATION DETAILS

Page 17: OpenShift Primer - get your code into the cloud

CARTRIDGE ADDITIONS

Page 18: OpenShift Primer - get your code into the cloud

OTHER OPTIONSname 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."

Page 19: OpenShift Primer - get your code into the cloud

DEPLOY TO CLOUDPush the code$ git push

Congratulations, your app is in the Cloud!

Page 20: OpenShift Primer - get your code into the cloud
Page 21: OpenShift Primer - get your code into the cloud
Page 22: OpenShift Primer - get your code into the cloud

JBOSS DEVELOPER STUDIO

Page 23: OpenShift Primer - get your code into the cloud

ADVANCED QUICKSTARTS

Page 24: OpenShift Primer - get your code into the cloud

JAX LONDON MOBILE REGISTRATION

$ rhc app create -t jbosseap-6 jaxlondon$ cd jaxlondon$ git remote add upstream -m mastergit://github.com/eschabell/openshift-jaxlondon.git$ git pull -s recursive -X theirs upstreammaster$ git pushhttp://jaxlondon-$your_domain.rhcloud.com

Page 25: OpenShift Primer - get your code into the cloud

HOST AWESTRUCT PRESENTATIONS$ rhc app create -t ruby-1.9 --from-codegit://github.com/eschabell/openshift-presos-awstruct.git presoshttp://presos-$your_domain.rhcloud.com

Page 26: OpenShift Primer - get your code into the cloud

JBPM MIGRATION PROJECT

$ rhc app create -t jbossas-7 --from-codegit://github.com/eschabell/openshift-jbpmmigration.git jbpmmigrationhttp://jbpmmigration-$your_domain.rhcloud.com/jbpmmigration_upload-0.5

Page 27: OpenShift Primer - get your code into the cloud

OPTA PLANNER DEMO

$ rhc app create -t jbosseap-6 --from-codegit://github.com/eschabell/openshift-droolsplanner.git droolsplannerhttp://droolsplanner-$your_domain.rhcloud.com/droolsplanner

Page 28: OpenShift Primer - get your code into the cloud

BUSINESS ACTIVITY MONITORING

$ rhc app create -t jbossas-7 --from-codegit://github.com/eschabell/openshift-bpm-bam-dashboard.git bamsetup user login:$ rhc app show bam$ scp bampreview/.openshift/config/bam-*[email protected]:~/jbossas/standalone/configuration/

http://bam-$your_domain.rhcloud.com (u:erics/p:erics)

Page 29: OpenShift Primer - get your code into the cloud

OPENSHIFT PRIMER WORKSHOP$ rhc app create -t ruby-1.9 --from-code=https://github.com/eschabell/jaxlondon-2013-workshop.git jaxlondon2013http://jaxlondon2013-$your_domain.rhcloud.com

Page 30: OpenShift Primer - get your code into the cloud

LOVING YOUR HAMMERS?

Page 31: OpenShift Primer - get your code into the cloud
Page 32: OpenShift Primer - get your code into the cloud

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

Page 33: OpenShift Primer - get your code into the cloud

ll