• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
An OpenShift Primer for Developers to get your Code into the Cloud (PTJUG)

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



Session given at the PTJUG (Portugal JUG): ...

Session given at the PTJUG (Portugal JUG):

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!



Total Views
Views on SlideShare
Embed Views



12 Embeds 1,539

http://jug.pt 699
http://www.schabell.org 569
http://ptjug.wordpress.com 110
http://lanyrd.com 90
http://planet.jboss.org 34
http://www.java.pt 14
http://schabell.wordpress.com 12
http://blog-ptjug.rhcloud.com 3
http://feeds.feedburner.com 3
http://us-w1.rockmelt.com 2
https://twitter.com 2
http://paper.li 1



Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.


11 of 1 previous next

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
Post Comment
Edit your comment

    An OpenShift Primer for Developers to get your Code into the Cloud (PTJUG) An OpenShift Primer for Developers to get your Code into the Cloud (PTJUG) Presentation Transcript

    • An OpenShift Primer Get 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
      Promo code: PJUG PJUG
    • Immersion... Shift happens?
    • Never look back...
    • PaaS?
    • Why am i DORKING with the stack?!
    • OpenShift Express
      • Sign Up
      • Install Client Tools
      • Create Domain
      • Create Application
      • Deploy Application (GIT)
    • Sign Up http://openshift.redhat.com
    • 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
    • Create Domain
      • Use rhc-create-domain command
        • $ rhc-create-domain -n mydomain -l openshiftlogin
      • use Express console!
    • rhc-create-domain Usage: /usr/bin/rhc-create-domain Bind a registered rhcloud user to a domain in rhcloud. -n|--namespace namespace Namespace for your application(s) (alphanumeric - max 16 chars) -l|--rhlogin rhlogin Red Hat login (RHN or OpenShift login with OpenShift Express access) -p|--password password RHLogin password (optional, will prompt) -a|--alter Alter namespace (will change urls) and/or ssh key -d|--debug Print Debug info -h|--help Show Usage info --config path Path of alternate config file --timeout # Timeout, in seconds, for connection
    • 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.”
    • rhc-create-app Obtaining list of cartridges (please excuse the delay)... Usage: /usr/bin/rhc-create-app Create an OpenShift Express app. -a|--app application Application name (alphanumeric - max 32 chars) (required) -t|--type type Type of app (python-2.6, jenkins-1.4, ruby-1.8, php-5.3, jbossas-7.0, perl-5.10) (required) -r|--repo path Git Repo path (defaults to ./$app_name) -n|--nogit Only create remote space, don't pull it locally -d|--debug Print Debug info --no-dns Skip DNS check. Must be used in combination with --nogit --config path Path of alternate config file --timeout # Timeout, in seconds, for connection --enable-jenkins [name] Indicates to create a Jenkins application (if not already available) and embed the Jenkins client into this application. The default name will be 'jenkins' if not specified.
    • 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.comdesigner/editor?profile=jbpm&uuid=123
    • Port Forwarding Enable tooling access to DB's and debugging of your application container: Eclipse DTP tooling Eclipse remote debug
    • Explore...
    • Setup... cd $project touch .openshift/markers/enable_jpda git add .openshift/markers/enable_jpda git commit -a -m “enable jpda.”
    • Debugging
    • JBoss Developer Studio
    • JBDS in action...
    • What will the future bring?
      • Express / Flex unification
      • JBoss++
      • Commercial Service / Pricing
      • Mobile
      • Open Source (SDK + project)
    • Loving your hammer?
      • OpenShift: http://openshift.redhat.com
      • OpenShift Express: https://openshift.redhat.com/app/express
      • OpenShift Flex: https://openshift.redhat.com/app/flex
      • JBPM Web Designer in the Cloud (example): http://www.schabell.org/2011/10/jbpm-web-designer-integrates-jbpm.html
      • Deploy an application to OpenShift with JBossTools (video): http://vimeo.com/33988381
      • Debugging and Browsing OpenShift Applications in Eclipse: http://tinyurl.com/7x94use
      • Rise above the Cloud hype with OpenShift: http://www.schabell.org/2012/01/rise-above-cloud-hype-with-openshift.html
    • Extra slides, screenshots OpenShift Flex
    • Enterprise Flexibility? Auto Scaling Log Mgmt Databases Monitoring Automation Roll-backs, Upgrades Speed Deployment Provisioning
    • Login Creds
    • Deploy Application Name Version App Components
    • Congrat's, you're in the Cloud! Deploy code
    • Performance & Logs Trans levels Point-in-time Components Applications Search
    • Define Scaling Strategy How? What? Why?