Upgrade to Pro — share decks privately, control downloads, hide ads and more …

JUDCon Brazil -- Closed PaaS to Open PaaS migra...

JUDCon Brazil -- Closed PaaS to Open PaaS migrating GAE apps to OpenShift using CapeDwarf

JUDCon Brazil -- Closed PaaS to Open PaaS migrating GAE apps to OpenShift using CapeDwarf

Shekhar Gulati

May 02, 2013
Tweet

More Decks by Shekhar Gulati

Other Decks in Programming

Transcript

  1. Closed PaaS to Open PaaS Migrating Google App Engine Apps

    to OpenShift PRESENTED BY Shekhar Gulati
  2. WHO AM I? • Shekhar Gulati • OpenShift Developer Evangelist

    at Red Hat • 8 years of software development experience • Learning JavaScript these days :) • Java / NoSQL/ Cloud • Loves to learn and try new technologies • Twitter Handle : shekhargulati • Github https://github.com/shekhargulati • Slides https://speakerdeck.com/shekhargulati
  3. • We all know Google App Engine, right? – Google's

    platform to build web applications on the cloud. – Supports Java, Python , and Go – Automatic scaling and load balancing – Transactional data model based on Big Table – Additional features like Mail, XMPP, Google Accounts, Cron, Memcache, Image, etc. GOOGLE APP ENGINE
  4. • Can't port existing applications • Requires change in mindset

    • Lock-in • Platform limitations like write to file system • Deployment environment does not replicate the same restrictions of the Production • Not open source • Every GET or POST from the one server to other, is aborted if it has not finished within 10 seconds • Pace of innovation is very slow • Public cloud only GAE LIMITATIONS
  5. • Java GAE for Free • Easy setup • Debug

    support • Multi node • Migrate data Now you can == JBoss CapeDwarf CAPEDWARF
  6. • Drop in replacement for GAE – Take an existing

    GAE app and drop into JBossAS env – It just works • No vendor lock-in • Enable cluster debugging / testing • On-premise cloud CAPEDWARF GOALS
  7. • CapeDwarf implements GAE API on top of JBoss and

    other open source libs • It runs on top of JBoss AS7 subsystem HOW DOES CAPEDWARF WORKS?
  8. • Big Table → Infinispan • Tasks → HornetQ •

    Search → Lucene and Hibernate • Blobs → GridFS • Clustering → JGroups • XYZ → OSS or DIY CAPEDWARF TECHNOLOGY CHOICES
  9. • OpenShift is free-as-in-beer & free-as-in-freedom • You get three

    free gears, each with 512MB memory and 1GB of disk space. • Need more resources, just ask! • The catch is we are in developer preview right now WHAT DO I GET?
  10. 20 ➢ Login to OpenShift web console ➢ Click on

    “My Account” ➢ Namespace – JUDCONBR13 – Unique per user CREATING NAMESPACE
  11. 21 Some terminology for today 1. Application – your web

    code and any data store. Has to be on 1 or more gears 2. Gear – is like a server. It can have only 1 language for the web programming. 3. Cartridge – it adds a language, a data store, or other functionality 4. Git – used for version control and managing code between server and your development machine 5. Ssh – command line tool to connect to your gear
  12. 22 Install Ruby 1.8.7 or greater Install Git Install rhc

    OpenShift gem Refer to documentation INSTALLING CLIENT TOOLS
  13. 28 $ git remote add upstream https://github.com/shekhargulati/todo- capedwarf.git $ git

    pull -s recursive -X theirs upstream master PULLING THE CODE