YOU ARE DOWNLOADING DOCUMENT

Please tick the box to continue:

Transcript
Page 1: OSC11 - An OpenShift Primer for Developers to get your Code into the Cloud

Eric D. Schabell | [email protected] | @ericschabell

An OpenShift PrimerGet your code into the Cloud!

Eric D. Schabell

JBoss Senior Solution Architect

Page 2: OSC11 - An OpenShift Primer for Developers to get your Code into the Cloud

Eric D. Schabell | [email protected] | @ericschabell

Page 3: OSC11 - An OpenShift Primer for Developers to get your Code into the Cloud

Eric D. Schabell | [email protected] | @ericschabell

Shift happens?

Immersion...

Page 4: OSC11 - An OpenShift Primer for Developers to get your Code into the Cloud

Eric D. Schabell | [email protected] | @ericschabell

Never look back...

Page 5: OSC11 - An OpenShift Primer for Developers to get your Code into the Cloud

Eric D. Schabell | [email protected] | @ericschabell

Page 6: OSC11 - An OpenShift Primer for Developers to get your Code into the Cloud

Eric D. Schabell | [email protected] | @ericschabell

PaaS?

Page 7: OSC11 - An OpenShift Primer for Developers to get your Code into the Cloud

Eric D. Schabell | [email protected] | @ericschabell

Why am i DORKINGwith the stack?!

Page 8: OSC11 - An OpenShift Primer for Developers to get your Code into the Cloud

Eric D. Schabell | [email protected] | @ericschabell

Page 9: OSC11 - An OpenShift Primer for Developers to get your Code into the Cloud

Eric D. Schabell | [email protected] | @ericschabell

OpenShift Express

1.Sign Up

2.Install Client Tools

3.Create Domain

4.Create Application

5.Deploy Application (GIT)

Page 10: OSC11 - An OpenShift Primer for Developers to get your Code into the Cloud

Eric D. Schabell | [email protected] | @ericschabell

Sign Up

http://openshift.com/try-it

Page 11: OSC11 - An OpenShift Primer for Developers to get your Code into the Cloud

Eric D. Schabell | [email protected] | @ericschabell

Install Client Tools

• Fedora / RHEL– openshift.repo

• Move to yum.repos.d$ sudo mv openshift.repo /etc/yum.repos.d

• Install client tools$ sudo yum install rubygem-rhc

• The rest (osX, Ubuntu, Cygwin):– gem install rhc– see forums, blogs

Page 12: OSC11 - An OpenShift Primer for Developers to get your Code into the Cloud

Eric D. Schabell | [email protected] | @ericschabell

Create Domain

• Use rhc-create-domain command$ rhc-create-domain -n mydomain -l openshiftlogin

• use Express console!

Page 13: OSC11 - An OpenShift Primer for Developers to get your Code into the Cloud

Eric D. Schabell | [email protected] | @ericschabell

Create Application

• Name application and define type$ rhc-create-app -a appname -t apptype -l openshiftlogin

(Java, Ruby, Python, Perl and most important, PHP!)

• Add application to local repo$ git add .

• Commit changes$ git commit -m “Initial app import.”

Page 14: OSC11 - An OpenShift Primer for Developers to get your Code into the Cloud

Eric D. Schabell | [email protected] | @ericschabell

Deploy to Cloud

• Push the code to Express

$ git push

• Congratulations, your app is in the cloud!

Page 15: OSC11 - An OpenShift Primer for Developers to get your Code into the Cloud

Eric D. Schabell | [email protected] | @ericschabell

Page 16: OSC11 - An OpenShift Primer for Developers to get your Code into the Cloud

Eric D. Schabell | [email protected] | @ericschabell

Demo BPM Web Designer

$ rhc-create-app -a editor -t jbossas-7.0

$ cd editor

$ git remote add upstream -m master git://github.com/eschabell/openshift-webdesigner-jbpmmigration.git

$ git pull -s recursive -X theirs upstream master

$ git push

http://editor-$your_domain.rhcloud.com

Page 17: OSC11 - An OpenShift Primer for Developers to get your Code into the Cloud

Eric D. Schabell | [email protected] | @ericschabell

AutoScaling

Log Mgmt

Databases

Monitoring

Automation

EnterpriseFlexibility?

Roll-backs,Upgrades

Speed Deployment

Provisioning

Page 18: OSC11 - An OpenShift Primer for Developers to get your Code into the Cloud

Eric D. Schabell | [email protected] | @ericschabell

OpenShift Flex

1.Setup Cloud Account

2.Provision Cloud Servers

3.Build Stack

4.Upload Application Code

5.Configure Components

6.Deploy

7.Performance Monitoring

8.Log Management

9.Auto-Scaling

Page 19: OSC11 - An OpenShift Primer for Developers to get your Code into the Cloud

Eric D. Schabell | [email protected] | @ericschabell

Login

Creds

Page 20: OSC11 - An OpenShift Primer for Developers to get your Code into the Cloud

Eric D. Schabell | [email protected] | @ericschabell

Deploy Application

Name

Version

App

Components

Page 21: OSC11 - An OpenShift Primer for Developers to get your Code into the Cloud

Eric D. Schabell | [email protected] | @ericschabell

Deploy code

Congrat's,you're in the Cloud!

Page 22: OSC11 - An OpenShift Primer for Developers to get your Code into the Cloud

Eric D. Schabell | [email protected] | @ericschabell

Trans levels

Point-in-time

Components

Applications

Search

Performance & Logs

Page 23: OSC11 - An OpenShift Primer for Developers to get your Code into the Cloud

Eric D. Schabell | [email protected] | @ericschabell

Define Scaling Strategy

How?

What?

Why?

Page 24: OSC11 - An OpenShift Primer for Developers to get your Code into the Cloud

Eric D. Schabell | [email protected] | @ericschabell

Sign up, it's free!

• http://www.openshift.com – click “Try it!”

• Example projects you can deploy now!

– https://www.github.com/openshift

• Help?

– IRC: freenode #openshift

– Forums: http://www.redhat.com/openshift/forums

– Email: openshift at redhat dot com

Page 25: OSC11 - An OpenShift Primer for Developers to get your Code into the Cloud

Eric D. Schabell | [email protected] | @ericschabell

Loving your hammer?


Related Documents