OpenShift Primer – Get your code into the Cloud



OpenShift Primer – Get your code into the Cloud

2 1


presentation-openshift-primer

The OpenShift Primer story in slides.

On Github eschabell / presentation-openshift-primer

OpenShift Primer

Get your code into the Cloud

Created by Eric D. Schabell / @ericschabell

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)

Events - JUG's, GOTO Aarhus, JAX London, JUDCon, Devoxx, APAC Tech Exchange

Quickstart

Sign up Install client tools Create domain Create application 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 / Windows / Unix
    • gem install rhc
    • see forum or blogs

Create Domains

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

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

Deploy to Cloud

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

JBoss Developer Studio

Advanced Quickstarts

JAX London Mobile Registration

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

Host Awestruct Presentations

  • $ rhc app create -t ruby-1.9 --from-code git://github.com/eschabell/openshift-presos-awstruct.git presos
  • http://presos-$your_domain.rhcloud.com

jBPM Migration Project

  • $ rhc app create -t jbossas-7 --from-code git://github.com/eschabell/openshift-jbpmmigration.git jbpmmigration
  • http://jbpmmigration-$your_domain.rhcloud.com/jbpmmigration_upload-0.5

Business Optimizer Demo

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

Business Activity Monitoring

  • $ rhc app create -t jbossas-7 --from-code git://github.com/eschabell/openshift-bpm-bam-dashboard.git bam
  • setup user login:
    • $ rhc app show bam
    • $ scp bampreview/.openshift/config/bam-*.properties xxxxxxxxxx@bam-inthe.rhcloud.com:~/jbossas/standalone/configuration/
  • http://bam-$your_domain.rhcloud.com (u:erics/p:erics)

OpenShift Primer Workshop

  • $ rhc app create -t ruby-1.9 --from-code=https://github.com/eschabell/jaxlondon-2013-workshop.git jaxlondon2013
  • http://jaxlondon2013-$your_domain.rhcloud.com

Loving Your Hammers?