Cloud Foundry:
     a Lightning Overview!
London Realtime Hackathon

Andy Piper, Developer Advocate
based on material by Chris Richardson




© 2012 VMware, Inc. All rights reserved
Andy Piper                                     social bridgebuilder, techie




             Developer Advocate @ Cloud Foundry*
         15 years in enterprise middleware & messaging
                       social web enthusiast
                   OSS supporter / contributor
         excited by “what’s next”, Internet of Things, etc.




                           @andypiper
                       apiper@vmware.com
                                                              * (the newest!)
                              CONFIDENTIAL
                                                                            2
Overview



           CONFIDENTIAL
                          3
Traditional web app architecture
 Browser client
                                                            Web Application

 Monolithic WAR / other
 deployment artefact                                        StoreFront

 RDBMS
                                                    AccountingService
                                                                                                MySQL
    Desktop                                                                                    Database
                       Apache
    Browser
                                                      InventoryService


“easy” to...
                                                      ShippingService
 develop
 test
                                              Container (e.g. Tomcat)
 deploy
 scale        ...apart from: provisioning, setup, need to replicate, shard, scale to massive numbers of
                         mobile clients, provide polyglot support, run multiple dev teams, collaborate...
                                             CONFIDENTIAL
                                                                                                          4
Platform-as-a-Service is the solution



   Deployment                              Services
     Easy deployment                         SQL databases

                                           NoSQL databases
 Application management          +
 Easy scaling up and down                   Message Broker




                            CONFIDENTIAL
                                                             5
The Open
           Platform as a Service


“Deploy and scale applications in
seconds, without locking yourself into a
single cloud or vendor”
                                                       le,
                                              , Flexib
                                          pen
                              im p le, O able
                            S          S cal

                  CONFIDENTIAL
                                                             6
Cloud Foundry open PaaS - Choice of clouds




                                                                                              Private	
  




                                                                                    I)
                          Ap




                                                                                 CP
      Data Services
                                                                                              Clouds	
  
                            pli




                                                                                    (
                                                                                 ce
                                ca




                                                                             r fa
                                  tio
                                  nS




                                                                           e
                                                                       Int
                                    er




                                                                                         Public


                                                                         r
                                        vic




                                                                     ide
                                           eI




               Msg Services




                                                                  ov
                                                                                         Clouds
                                             nt e




                                                                Pr
                                                                d
                                              r fa




                                                              ou
                                                  ce




                                                           Cl


                               Other                                         Micro
                              Services
                                                                             Clouds                                     to
                                                                                                                 e ploy
                                                                                                     ! bo  sh: d      S e tc
                                                                                                                             )
                                                                                              NEW            PIs (AW
                                                                                                    n at e C
                                                                                              alter
                                                       CONFIDENTIAL
cloudfoundry.com - Multi-tenant PaaS from VMware
                      CloudFoundry.COM (beta)

     Runtimes & Frameworks

     Services

                          vCenter / vSphere




     Infrastructure




                              CONFIDENTIAL
                                                   8
Micro Cloud FoundryTM – an easy downloadable PaaS
                        Micro Cloud Foundry

     Runtimes & Frameworks

     Services

                             Your Laptop/PC




    Single VM instance of
    Cloud Foundry
    that runs on developer’s
    machine (Linux, Mac, Win)




                                CONFIDENTIAL
                                                    9
CloudFoundry.ORG - Community open-source project
                          CloudFoundry.ORG




                           Your Infrastructure

     Download            Setup                 Setup     Deploy Behind
       Code           Environment              Scripts     Firewall




            Apache2
            license


                                CONFIDENTIAL
                                                                         10
Cloud Foundry Resources

•Primary Site: cloudfoundry.com
•Open Source Site: cloudfoundry.org

•Twitter: @cloudfoundry #cfoundry
•Blog: blog.cloudfoundry.com
•FB: facebook.com/cloudfoundry

•Documentation: start.cloudfoundry.com
 •Full “bootcamp” presentation: slidesha.re/cf-bootcamp
•Support : support.cloudfoundry.com
 •Knowledge Base
 •Q & A / Forums


                           CONFIDENTIAL
                                                          11
How-to (in brief)



             CONFIDENTIAL
                            12
Register!

  http://cloudfoundry.com/signup




                                       Use promo code

                                       LondonRealtime




                        CONFIDENTIAL
                                                    13
Welcome email




                CONFIDENTIAL
                               14
Ways to use Cloud Foundry
                     command line...




                                         IDE plugin...



    toolchain plugin...


                                         Cloud IDEs

                          CONFIDENTIAL
                                                         15
Example vmc commands

  $	
  gem	
  install	
  vmc


  $	
  vmc	
  target	
  <any	
  cloud>
  $	
  vmc	
  login	
  <credentials>
  $	
  vmc	
  push	
  <my-­‐app>
  	
   	
  	
  >	
  bind	
  services?	
  Yes

  $	
  vmc	
  update	
  <my-­‐app>
  $	
  vmc	
  instances	
  <my-­‐app>	
  +100	
  


                                 CONFIDENTIAL
                                                    16
Logging into CloudFoundry.com

$	
  vmc	
  target	
  api.cloudfoundry.com
Successfully	
  targeted	
  to	
  
	
  	
  	
  	
  	
  	
  	
  	
  [http://api.cloudfoundry.com]
$	
  vmc	
  login
Attempting	
  login	
  to	
  
	
  	
  [http://api.cloudfoundry.com]
Email:	
  apiper@vmware.com
Password:	
  ********
Successfully	
  logged	
  into	
  
	
  	
  [http://api.cloudfoundry.com]
                                      CONFIDENTIAL
                                                                17
Cloud Foundry Integration plugin for Eclipse




                         CONFIDENTIAL
                                               18
Micro Cloud Foundry



           CONFIDENTIAL
                          19
What is in Micro Cloud Foundry?



         App Instances                              Services




        Open source Platform as a Service project




                                                    10.04


      A cloud packaged as a VMware Virtual Machine
                  Use as a developer sandbox
                  • Use the services from Junit integration tests
                  • Deploy your application for functional testing
                  • Remote debugging from STS
                                                               CONFIDENTIAL
                                                                              20
Pre-requisites for using Micro Cloud Foundry
Resources
                 Minimum 1 GB   Minimum 8 GB       Internet Connectivity




                     RAM              Disk             (w/DHCP is ideal)



Virtualization




 Clients

           VMC                                   STS


                                  CONFIDENTIAL
Summary



          CONFIDENTIAL
                         22
Cloud Foundry:
a remarkably easy way to
deploy your applications


     Cloud Foundry
           =
         choice
          CONFIDENTIAL
                           23
Cloud Foundry Open Tour
 London May 1st 2012
http://lanyrd.com/cggxz


          CONFIDENTIAL
                          24
Thank You
#ldnrealtime Getting Started:
http://www.rabbitmq.com/blog/londonrealtime/


CloudFoundry Source Samples:

     http://bit.ly/cloudfoundry-samples


http://cloudfoundry.com
Questions: @cloudfoundry
@andypiper / apiper@vmware.com


© 2012 VMware, Inc. All rights reserved

Cloud Foundry - A Lightning Introduction

  • 1.
    Cloud Foundry: a Lightning Overview! London Realtime Hackathon Andy Piper, Developer Advocate based on material by Chris Richardson © 2012 VMware, Inc. All rights reserved
  • 2.
    Andy Piper social bridgebuilder, techie Developer Advocate @ Cloud Foundry* 15 years in enterprise middleware & messaging social web enthusiast OSS supporter / contributor excited by “what’s next”, Internet of Things, etc. @andypiper apiper@vmware.com * (the newest!) CONFIDENTIAL 2
  • 3.
    Overview CONFIDENTIAL 3
  • 4.
    Traditional web apparchitecture  Browser client Web Application  Monolithic WAR / other deployment artefact StoreFront  RDBMS AccountingService MySQL Desktop Database Apache Browser InventoryService “easy” to... ShippingService  develop  test Container (e.g. Tomcat)  deploy  scale ...apart from: provisioning, setup, need to replicate, shard, scale to massive numbers of mobile clients, provide polyglot support, run multiple dev teams, collaborate... CONFIDENTIAL 4
  • 5.
    Platform-as-a-Service is thesolution Deployment Services Easy deployment SQL databases NoSQL databases Application management + Easy scaling up and down Message Broker CONFIDENTIAL 5
  • 6.
    The Open Platform as a Service “Deploy and scale applications in seconds, without locking yourself into a single cloud or vendor” le, , Flexib pen im p le, O able S S cal CONFIDENTIAL 6
  • 7.
    Cloud Foundry openPaaS - Choice of clouds Private   I) Ap CP Data Services Clouds   pli ( ce ca r fa tio nS e Int er Public r vic ide eI Msg Services ov Clouds nt e Pr d r fa ou ce Cl Other Micro Services Clouds to e ploy ! bo sh: d S e tc ) NEW PIs (AW n at e C alter CONFIDENTIAL
  • 8.
    cloudfoundry.com - Multi-tenantPaaS from VMware CloudFoundry.COM (beta) Runtimes & Frameworks Services vCenter / vSphere Infrastructure CONFIDENTIAL 8
  • 9.
    Micro Cloud FoundryTM– an easy downloadable PaaS Micro Cloud Foundry Runtimes & Frameworks Services Your Laptop/PC Single VM instance of Cloud Foundry that runs on developer’s machine (Linux, Mac, Win) CONFIDENTIAL 9
  • 10.
    CloudFoundry.ORG - Communityopen-source project CloudFoundry.ORG Your Infrastructure Download Setup Setup Deploy Behind Code Environment Scripts Firewall Apache2 license CONFIDENTIAL 10
  • 11.
    Cloud Foundry Resources •PrimarySite: cloudfoundry.com •Open Source Site: cloudfoundry.org •Twitter: @cloudfoundry #cfoundry •Blog: blog.cloudfoundry.com •FB: facebook.com/cloudfoundry •Documentation: start.cloudfoundry.com •Full “bootcamp” presentation: slidesha.re/cf-bootcamp •Support : support.cloudfoundry.com •Knowledge Base •Q & A / Forums CONFIDENTIAL 11
  • 12.
    How-to (in brief) CONFIDENTIAL 12
  • 13.
    Register! http://cloudfoundry.com/signup Use promo code LondonRealtime CONFIDENTIAL 13
  • 14.
    Welcome email CONFIDENTIAL 14
  • 15.
    Ways to useCloud Foundry command line... IDE plugin... toolchain plugin... Cloud IDEs CONFIDENTIAL 15
  • 16.
    Example vmc commands $  gem  install  vmc $  vmc  target  <any  cloud> $  vmc  login  <credentials> $  vmc  push  <my-­‐app>      >  bind  services?  Yes $  vmc  update  <my-­‐app> $  vmc  instances  <my-­‐app>  +100   CONFIDENTIAL 16
  • 17.
    Logging into CloudFoundry.com $  vmc  target  api.cloudfoundry.com Successfully  targeted  to                  [http://api.cloudfoundry.com] $  vmc  login Attempting  login  to      [http://api.cloudfoundry.com] Email:  apiper@vmware.com Password:  ******** Successfully  logged  into      [http://api.cloudfoundry.com] CONFIDENTIAL 17
  • 18.
    Cloud Foundry Integrationplugin for Eclipse CONFIDENTIAL 18
  • 19.
    Micro Cloud Foundry CONFIDENTIAL 19
  • 20.
    What is inMicro Cloud Foundry? App Instances Services Open source Platform as a Service project 10.04 A cloud packaged as a VMware Virtual Machine Use as a developer sandbox • Use the services from Junit integration tests • Deploy your application for functional testing • Remote debugging from STS CONFIDENTIAL 20
  • 21.
    Pre-requisites for usingMicro Cloud Foundry Resources Minimum 1 GB Minimum 8 GB Internet Connectivity RAM Disk (w/DHCP is ideal) Virtualization Clients VMC STS CONFIDENTIAL
  • 22.
    Summary CONFIDENTIAL 22
  • 23.
    Cloud Foundry: a remarkablyeasy way to deploy your applications Cloud Foundry = choice CONFIDENTIAL 23
  • 24.
    Cloud Foundry OpenTour London May 1st 2012 http://lanyrd.com/cggxz CONFIDENTIAL 24
  • 25.
    Thank You #ldnrealtime GettingStarted: http://www.rabbitmq.com/blog/londonrealtime/ CloudFoundry Source Samples: http://bit.ly/cloudfoundry-samples http://cloudfoundry.com Questions: @cloudfoundry @andypiper / apiper@vmware.com © 2012 VMware, Inc. All rights reserved