Mastering xPaaS

Get down and dirty in the OpenShift Cloud

Devoxx BE 2014
University Session
Room 4: 13:30 - 16:30
Eric D. Schabell
JBoss Technology Evangelist
Twitter: @ericschabell
Blog: http://schabell.org

Following along...

masteringxpaas-onthe.rhcloud.com

Need to register? Do it now... https://www.openshift.com

University timeline

Taking the xPaaS tour

So what's

IaaS

Repeat after me...

I

don't

care

So what's the PaaS layer to me?

Never look back...

A Little History

  • Nov 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)
  • June 2014: OpenShift Online Market Place, extend reach to LTAM / APAC
  • Sep 2014: European hosting
  • Coming soon: v3 with Docker, Kubernetes, etc...

Events - JUG's, GOTO Aarhus, JAX London, JUDCon, Devoxx (2x), APAC Tech Exchange

OpenShift Primer

Devoxx 2013

Watch on Parleys.com

Now you can talk about

IaaS & PaaS

but what about

xPaaS

Enterprise apps are complex

PaaS reduces work & risk

Reduce more work with higher-level services

JBoss xPaaS services for OpenShift

Services for OpenShift

JBoss xPaaS Services

This is important

Follow along from here on out...

Need to register? Should have done it already...

The tools

Intermezzo

  1. OpenShift Origin - upstream community.
  2. OpenShift Online - public cloud.
  3. OpenShift Enterprise (OSE) - on-premise.

Quickstart

  1. Sign up
  2. Install client tools
  3. Create domain
  4. Create application
  5. Deploy application (GIT)

Sign up, it's free!

Install Client Tools

  • Fedora / RHEL
    • openshift repo
    • /etc/yum.repos.d
    • sudo yum install rubygem-rhc
  • OSX / Unix
    • gem install rhc
    • see forum or blogs

Install for Windows

  • Windows article details following:
    • install Ruby for Windows
    • install GIT on Windows
    • install rhc tooling:
      • gem install rhc

RHC for Windows

  • Lastly we install rhc tooling:
    • gem install rhc

Create Domains

  • Use rhc command
    • $ rhc domain create {mydomain}
  • Use web admin console

Web Admin Console

Your account

OpenShift

Bronze upgrade

Some xPaaS need...

Into the Cloud

Open issues?

Application Details

Cartridge Additions

Other Options

  • name 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."

JBoss Developer Studio

Deploy to Cloud

  • Push the code
    • $ git push
  • Congratulations, your app is in the Cloud!

mPaaS: Java Mobile

Devoxx Mobile Registration

  • $ rhc app create -t jbosseap-6 devoxx
  • $ cd devoxx
  • $ git remote add upstream -m master git://github.com/eschabell/openshift-devoxx.git
  • $ git pull -s recursive -X theirs upstream master
  • $ git push
  • http://devoxx-$your_domain.rhcloud.com

Devoxx mobile

Take a break

back in a bit...

University timeline