cloudfoundry bootcamp springone2gx
DESCRIPTION
TRANSCRIPT
© 2012 VMware, Inc. All rights reserved
Cloud Foundry Bootcamp
Josh Long Spring Developer [email protected]@starbuxman
Eric BottardDeveloper [email protected] @ebottard
mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard2
About Josh Long
Josh Long Spring Developer [email protected] @starbuxman
mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard
What does Cloud Foundry
offer?
4mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard
Cloud Foundry: Choice of Runtimes
mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard
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
mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard
Cloud Foundry: Choice of Clouds
7mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard
Main Risk: Lock In
8
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
mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard
Open Source Advantage
9mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard
Open Source Advantage
mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard11
Cloud Foundry.org
mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard12
Cloud Foundry.org
mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard
Cloud Foundry: Clouds
13
§ Joyent
• community lead for Node.js
§ ActiveState
• community lead for Python, Perl
• Providers of Stackato private PaaS
§ AppFog.com
• community lead for PHP
• PaaS for PHP
mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard
Micro Cloud Foundry (beta)
14mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard
Cloud Foundry: Services
15mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard
Cloud Foundry: Services
16
§ 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
mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard
Demo: logging in, asking questions, & deploying from the CLI
17mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard
Accessing Your Services§ Debugging and accessing the data locally
• Caldecott --> Service tunneling. Access your Cloud Foundry service as if it was local.
18mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard
Demo: Using the tunnel to talk to your services
19mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard
Demo: developing with Eclipse & STS
20mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard
Getting started with Cloud Foundry...
21mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard
Register
22
http://cloudfoundry.com/signup
Use promo code
SpringOne2012
mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard
Welcome email
23mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard
Ways to use Cloud Foundry
24mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard
Ways to use Cloud Foundry
24mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard
Ways to use Cloud Foundry
24mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard
Ways to use Cloud Foundry
24mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard
Ways to use Cloud Foundry
24mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard
Ways to use Cloud Foundry
24mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard
Installing vmc on Windows
25
mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard
Installing vmc on Windows
25
Install the vmc gem
mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard
Installing vmc on Mac OSX
26
$ curl -L https://get.rvm.io | bash -s stable --ruby
$ rvm install 1.9.2
$ rvm use 1.9.2
$ gem install vmc
Use Ruby Version Manager http://beginrescueend.com/
You need:Command Line Tools for OSX orXCode 4.1!!
mardi 16 octobre 12
CONFIDENTIAL@starbuxman @ebottard
Questions?
Josh Long | [email protected]
CloudFoundry.com signup promo code: SpringOne2012
Eric Bottard | [email protected]
mardi 16 octobre 12