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

Post on 12-May-2015

1628 Views

Category:

Technology

4 Downloads

Preview:

Click to see full reader

DESCRIPTION

Whether you’re a seasoned Java developer looking to start hacking on EE6 or you just wrote your first line of Ruby yesterday, the cloud is turning out to be the perfect environment for developing applications in just about any modern language or framework. 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 an application written in the language of your choice – Java, Ruby, PHP, Perl or Python, with the framework of your choice – EE6, CDI, Seam, Spring, Zend, Cake, Rails, Sinatra, PerlDancer or Django to the OpenShift PaaS in just minutes. And without having to rewrite your app to get it to work the way the cloud provider thinks your app should work. Check the command-line fu as we leverage Git to onboard apps onto OpenShift Express in seconds, while also making use of the web browser do the heavy-lifting of provisioning clusters, deploying, monitoring and auto-scaling apps in OpenShift Flex. If you want to learn how the OpenShift PaaS and investing an hour of your time can change everything you thought you knew about developing applications in the cloud, this session is for you!

Transcript

Eric D. Schabell | erics@redhat.com | @ericschabell

An OpenShift PrimerGet your code into the Cloud!

Eric D. Schabell

JBoss Senior Solution Architect

Eric D. Schabell | erics@redhat.com | @ericschabell

Eric D. Schabell | erics@redhat.com | @ericschabell

Shift happens?

Immersion...

Eric D. Schabell | erics@redhat.com | @ericschabell

Never look back...

Eric D. Schabell | erics@redhat.com | @ericschabell

Eric D. Schabell | erics@redhat.com | @ericschabell

PaaS?

Eric D. Schabell | erics@redhat.com | @ericschabell

Why am i DORKINGwith the stack?!

Eric D. Schabell | erics@redhat.com | @ericschabell

Eric D. Schabell | erics@redhat.com | @ericschabell

OpenShift Express

1.Sign Up

2.Install Client Tools

3.Create Domain

4.Create Application

5.Deploy Application (GIT)

Eric D. Schabell | erics@redhat.com | @ericschabell

Sign Up

http://openshift.com/try-it

Eric D. Schabell | erics@redhat.com | @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

Eric D. Schabell | erics@redhat.com | @ericschabell

Create Domain

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

• use Express console!

Eric D. Schabell | erics@redhat.com | @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.”

Eric D. Schabell | erics@redhat.com | @ericschabell

Deploy to Cloud

• Push the code to Express

$ git push

• Congratulations, your app is in the cloud!

Eric D. Schabell | erics@redhat.com | @ericschabell

Eric D. Schabell | erics@redhat.com | @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

Eric D. Schabell | erics@redhat.com | @ericschabell

AutoScaling

Log Mgmt

Databases

Monitoring

Automation

EnterpriseFlexibility?

Roll-backs,Upgrades

Speed Deployment

Provisioning

Eric D. Schabell | erics@redhat.com | @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

Eric D. Schabell | erics@redhat.com | @ericschabell

Login

Creds

Eric D. Schabell | erics@redhat.com | @ericschabell

Deploy Application

Name

Version

App

Components

Eric D. Schabell | erics@redhat.com | @ericschabell

Deploy code

Congrat's,you're in the Cloud!

Eric D. Schabell | erics@redhat.com | @ericschabell

Trans levels

Point-in-time

Components

Applications

Search

Performance & Logs

Eric D. Schabell | erics@redhat.com | @ericschabell

Define Scaling Strategy

How?

What?

Why?

Eric D. Schabell | erics@redhat.com | @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

Eric D. Schabell | erics@redhat.com | @ericschabell

Loving your hammer?

top related