An OpenShift Primer for Developers to get your Code into the Cloud

Embed Size (px)

Citation preview

PowerPoint-Prsentation

An OpenShift PrimerGet your code into the Cloud!

Eric D. Schabell JBoss Senior Solution Architect

Sign up, it's free!

http://openshift.redhat.com Sign up and Try it!

Example projects you can deploy now!https://www.github.com/openshift

Help?IRC: freenode #openshift

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

Email: openshift at redhat dot com

Shift happens?Immersion...

Never look back...

PaaS?

Why am i DORKINGwith the stack?!

OpenShift Express

Sign Up

Install Client Tools

Create Domain

Create Application

Deploy Application (GIT)

Sign Up

http://openshift.com/try-it

Install Client Tools

Fedora / RHELopenshift.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 json_pure, rhc

see forums, blogs

Create Domain

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

use Express console!

Create App

Name application and define type$ rhc-create-app -a appname -t apptype -l openshiftlogin(PHP, Ruby, Python, Perl and most important, Java!)

Add application to local repo$ git add .

Commit changes$ git commit -m Initial app import.

Deploy to Cloud

Push the code to Express$ git push

Congratulations, your app is in the cloud!

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

AutoScaling

Log MgmtDatabasesMonitoringAutomationEnterprise
Flexibility?

Roll-backs,UpgradesSpeedDeploymentProvisioning

OpenShift Flex

Setup Cloud Account

Provision Cloud Servers

Build Stack

Upload Application Code

Configure Components

Deploy

Performance Monitoring

Log Management

Auto-Scaling

Login

Creds

Deploy
Application

NameVersion

AppComponents

Deploy code

Congrat's,you're in the Cloud!

Trans levelsPoint-in-timeComponentsApplicationsSearchPerformance & Logs

Define Scaling Strategy

How?What?Why?

What will the future bring?

Express / Flex unification

JBoss++

No SQL

Mobile

Open Source (SDK + project)

2012

Loving your hammer?

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