29
An OpenShift Primer Get your code into the Cloud! Eric D. Schabell Red Hat Cloud Tour 2012 JBoss Senior Solution Architect Amsterdam / London [email protected] / @ericschabell

OpenShift Primer - get your business into the Cloud today!

Embed Size (px)

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 framework of your choice - EE6, CDI, Seam, Spring, Zend, Cake, Rails, Sinatra, PerlDancer or Django to 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. You can have your business applications running in the cloud on 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 putting your business applications in the cloud, this session is for you!

Citation preview

Page 1: OpenShift Primer - get your business into the Cloud today!

An OpenShift Primer Get your code into the Cloud!

Eric D. Schabell Red Hat Cloud Tour 2012JBoss Senior Solution Architect Amsterdam / [email protected] / @ericschabell

Page 2: OpenShift Primer - get your business into the Cloud today!

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

Promotional Code: RHCT

Page 3: OpenShift Primer - get your business into the Cloud today!
Page 4: OpenShift Primer - get your business into the Cloud today!

Shift happens?

Immersion...

Page 5: OpenShift Primer - get your business into the Cloud today!

Never look back...

Page 6: OpenShift Primer - get your business into the Cloud today!

PaaS?

Page 7: OpenShift Primer - get your business into the Cloud today!

Why am i DORKINGwith the stack?!

Page 8: OpenShift Primer - get your business into the Cloud today!

Express

1.Sign Up

2.Install Client Tools

3.Create Domain

4.Create Application

5.Deploy Application (GIT)

Page 9: OpenShift Primer - get your business into the Cloud today!

Sign Uphttp://openshift.redhat.com

Page 10: OpenShift Primer - get your business into the Cloud today!

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

(json_pure)– see forums, blogs

Page 11: OpenShift Primer - get your business into the Cloud today!

Create Domain

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

• use Express console!

Page 12: OpenShift Primer - get your business into the Cloud today!

Web Administration

Page 13: OpenShift Primer - get your business into the Cloud today!

Create Application

Page 14: OpenShift Primer - get your business into the Cloud today!

Configure Application

Page 15: OpenShift Primer - get your business into the Cloud today!

Ready to code!

Page 16: OpenShift Primer - get your business into the Cloud today!

Application Details

Page 17: OpenShift Primer - get your business into the Cloud today!

Why OpenShift? It's you.

Page 18: OpenShift Primer - get your business into the Cloud today!

Other Options: create apps

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

(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 business into the Cloud today!

Deploy to Cloud

• Push the code to Express

$ git push

• Congratulations, your app is in the cloud!

Page 20: OpenShift Primer - get your business into the Cloud today!
Page 21: OpenShift Primer - get your business into the Cloud today!

Demo CloudTour Mobile App

$ rhc app create -a cloudtour -t jbossas-7

$ cd cloudtour

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

$ git pull -s recursive -X theirs upstream master

$ git push

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

Page 22: OpenShift Primer - get your business into the Cloud today!

JBoss Developer Studio

Page 23: OpenShift Primer - get your business into the Cloud today!
Page 24: OpenShift Primer - get your business into the Cloud today!

JBDS in action...

Page 25: OpenShift Primer - get your business into the Cloud today!

Remove Application

Page 26: OpenShift Primer - get your business into the Cloud today!

Time for a new project!

Page 27: OpenShift Primer - get your business into the Cloud today!

What will the future bring?

Express / Flex unification

JBoss++

Commercial Service / Pricing

Mobile

Open Source (SDK + project)2012

Page 28: OpenShift Primer - get your business into the Cloud today!

Loving your hammer?

Page 29: OpenShift Primer - get your business into the Cloud today!

• OpenShift: http://openshift.redhat.com

• OpenShift Express: https://openshift.redhat.com/app/express

• Blogs: https://www.redhat.com/openshift/community/blogs

• CloudTour mobile application demo on OpenShift: https://github.com/eschabell/openshift-cloudtour

• Deploy an application to OpenShift with JBossTools (video): http://vimeo.com/33988381

• Deploying mobile application with JBoss Dev Studio: https://community.jboss.org/wiki/DeployingHTML5ApplicationsToOpenshift

• Rise above the Cloud hype with OpenShift: http://www.schabell.org/2012/01/rise-above-cloud-hype-with-openshift.html