The Cloud Foundry Bootcamp

1,588 views

Published on

Today's developers have enough problems. Focus on the things that are important- such as delivering business value - and leave the rest - infrastructure, services and management - to the first and best open-source PaaS from VMWare, Cloud Foundry

Published in: Technology
0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,588
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
64
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide
  • \n
  • anyway, thanks for having me. my name is josh long. i’m the advocate for the open source Spring technologies at SpringSource, a division of VMWare. Some of u may know me from my 4 books on Spring. the book on the left, “Spring Recipes,” is a book I co-authored with an amazing engineer named Gary Mak, who is from Macau, China! Truly, he is one of the most brilliant people in the world. \n
  • i’m also a committer and contributor to many open source projects, all of which are related to my experiences in industry architecting really high-scale applications. This includes things like Spring Integration - whcih provides help integrating systems, and Activiti, which is a workflow system for separating systems.\n
  • \n
  • So I now want to walk you through the process of getting started with Cloud Foundry\n
  • The first step is to register at Cloud Foundry.com\n\nYou enter your email address along with a promo code to expedite signup\n
  • You will then get a welcome email containing your temporary password\n
  • Once you have been signed up you can then start using CloudFoundry.com\n\nYou have several different tools to choose from.\n\nI want to begin by showing you the command line tool- vmc\n
  • Once you have been signed up you can then start using CloudFoundry.com\n\nYou have several different tools to choose from.\n\nI want to begin by showing you the command line tool- vmc\n
  • Once you have been signed up you can then start using CloudFoundry.com\n\nYou have several different tools to choose from.\n\nI want to begin by showing you the command line tool- vmc\n
  • Once you have been signed up you can then start using CloudFoundry.com\n\nYou have several different tools to choose from.\n\nI want to begin by showing you the command line tool- vmc\n
  • Once you have been signed up you can then start using CloudFoundry.com\n\nYou have several different tools to choose from.\n\nI want to begin by showing you the command line tool- vmc\n
  • Vmc is written in Ruby so the first step is to install the Ruby runtime.\nOn Windows...\n
  • Vmc is written in Ruby so the first step is to install the Ruby runtime.\nOn Windows...\n
  • Vmc is written in Ruby so the first step is to install the Ruby runtime.\nOn Windows...\n
  • Vmc is written in Ruby so the first step is to install the Ruby runtime.\nOn Windows...\n
  • On Mac, you can use the Ruby Version Manager to install ruby.\n
  • So I now want to walk you through the process of getting started with Cloud Foundry\n
  • \n
  • \n
  • This is what happens when you run the command.\n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Once you have deployed the application there are various commands that you can use.\n\nFor example, you can scale the application using the vmc scale command.\n\nIn this example, I’m added two more instances of the application.\n\n\n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • So I now want to walk you through the process of getting started with Cloud Foundry\n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • The packaging of the application into a droplet is handled by a framework-specific staging plugin.\n\nIt creates a zip file that contains everything the DEA needs to run the application.\nAt its root at two scripts: start and stop that are invoked by the DEA.\n
  • What the staging plugin does is very dependent on the framework.\nFor example, the Spring staging plugin alters the application’s configuration.\n\n\n\n
  • Load balancer\n Sends request to one of many Routers\n Router\n Selects application instance\n Handles sticky sessions\n Forwards request to application instance\n Application instance\n Handles request\n \n
  • Die when you are dead\n
  • In all of this discussion you might be wondering where the VMs are?\n
  • So I now want to walk you through the process of getting started with Cloud Foundry\n
  • MCF is CF packaged as a VMware virtual machine.\nIt contains all the services as CloudFoundry.com\n\nIt’s especially useful as a developer sandbox:\n* You can use the services for your JUNIT integration tests\n* You can also run your application for development and testing\n\nFor Java developers\n
  • To run MCF there are a few things that you need\n
  • The first step is to register and login to CF.com\n\n\n
  • You then have to pick a unique domain name for your MCF.\n
  • CF then displays a configuration token that you must later enter into MCF\n
  • You then download and unzip MCF and open the micro.VMX\nWhich launches FUSION or VMware player\n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • The Cloud Foundry Bootcamp

    1. 1. Cloud Foundry BootcampJava2Days 2012Josh LongSpring Developer Advocatejosh.long@springsource.com© 2012 VMware, Inc. All rights reserved
    2. 2. Josh LongSpring Developer Advocate About Josh Longjosh.long@springsource.com CONFIDENTIAL
    3. 3. About Josh LongContributor To:• Spring Integration• Spring Batch• Spring Hadoop• Activiti Workflow Engine CONFIDENTIAL
    4. 4. getting started with Cloud Foundry... CONFIDENTIAL
    5. 5. Register http://cloudfoundry.com/signup Use promo code CFOpenTour2012 CONFIDENTIAL
    6. 6. Welcome email CONFIDENTIAL
    7. 7. Ways to use Cloud Foundry CONFIDENTIAL
    8. 8. Ways to use Cloud Foundry CONFIDENTIAL
    9. 9. Ways to use Cloud Foundry CONFIDENTIAL
    10. 10. Ways to use Cloud Foundry CONFIDENTIAL
    11. 11. Ways to use Cloud Foundry CONFIDENTIAL
    12. 12. Ways to use Cloud Foundry CONFIDENTIAL
    13. 13. Installing vmc on Windows CONFIDENTIAL
    14. 14. Installing vmc on Windows Install the vmc gem CONFIDENTIAL
    15. 15. Installing vmc on Mac OSX Use Ruby Version Manager http://beginrescueend.com/$ bash -s stable <<(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)$ rvm install 1.9.2$ rvm use 1.9.2$ gem install vmc CONFIDENTIAL
    16. 16. what doesCloud Foundry offer? CONFIDENTIAL
    17. 17. Cloud Foundry: Choice of Runtimes CONFIDENTIAL
    18. 18. Frameworks and Runtimes Supported• Out of the Box • Java (.WAR files, on Tomcat. Spring’s an ideal choice here, of course..) • Scala (Lift, Play!) • Ruby (Rails, Sinatra, etc.) • Node.js• Ecosystem Partners • .NET (Uhuru, Tier3) • Python (Stackato) • PHP (AppFog) • Haskell (1) • Erlang (2) 1) http://www.cakesolutions.net/teamblogs/2011/11/25/haskell-happstack-on-cloudfoundry/ 2) https://github.com/cloudfoundry/vcap/pull/20 CONFIDENTIAL
    19. 19. Cloud Foundry: Choice of Clouds CONFIDENTIAL
    20. 20. Main Risk: Lock In Welcome to the hotel california Such a lovely place Such a lovely face Plenty of room at the hotel california Any time of year, you can find it here Last thing I remember, I was Running for the door I had to find the passage back To the place I was before ’relax,’ said the night man, We are programmed to receive. You can checkout any time you like, But you can never leave! -the Eagles CONFIDENTIAL
    21. 21. Open Source Advantage CONFIDENTIAL
    22. 22. Open Source Advantage CONFIDENTIAL
    23. 23. Cloud Foundry.org CONFIDENTIAL
    24. 24. Cloud Foundry: Clouds  AppFog.com • community lead for PHP • PaaS for PHP  Joyent • community lead for Node.js  ActiveState • community lead for Python, Perl • Providers of Stackato private PaaS CONFIDENTIAL
    25. 25. Micro Cloud Foundry (beta) CONFIDENTIAL
    26. 26. Cloud Foundry.org CONFIDENTIAL
    27. 27. Cloud Foundry: Services CONFIDENTIAL
    28. 28. Cloud Foundry: Services Take Advantage of Services • they cost nothing to setup • they deliver value They Encourage Better Architectures • Need a fast read-write cache? Redis is ready to go! • Need to store long-tail documents? Give MongoDB a try • Need to decouple what applications do from when they do it? Use messaging and RabbitMQ CONFIDENTIAL
    29. 29. Accessing Your Services Debugging and accessing the data locally • Caldecott --> Service tunneling. Access your Cloud Foundry service as if it was local. CONFIDENTIAL
    30. 30. Demo: logging in, asking questions, & deploying from the CLI CONFIDENTIAL
    31. 31. Demo: Using the tunnel to talk to your services CONFIDENTIAL
    32. 32. Demo: developing with Eclipse & STS CONFIDENTIAL
    33. 33. Josh Long | josh.long@springsource.com twitter: @starbuxman Questions? CONFIDENTIAL

    ×