2. Josh Long
Spring Developer Advocate
About Josh Long
josh.long@springsource.com @starbuxman
@starbuxman @ebottard
CONFIDENTIAL
2
mardi 16 octobre 12
3. Eric Bottard
• Developer Advocate VMware
• @ebottard
• ebottard@vmware.com
mardi 16 octobre 12
4. What does
Cloud Foundry
offer?
@starbuxman @ebottard
CONFIDENTIAL
4
mardi 16 octobre 12
5. Cloud Foundry: Choice of Runtimes
@starbuxman @ebottard
CONFIDENTIAL
mardi 16 octobre 12
6. 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
@starbuxman @ebottard
CONFIDENTIAL
mardi 16 octobre 12
7. Cloud Foundry: Choice of Clouds
@starbuxman @ebottard
CONFIDENTIAL
7
mardi 16 octobre 12
8. 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
@starbuxman @ebottard
CONFIDENTIAL
8
mardi 16 octobre 12
13. 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
@starbuxman @ebottard
CONFIDENTIAL
13
mardi 16 octobre 12
16. 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
@starbuxman @ebottard
CONFIDENTIAL
16
mardi 16 octobre 12
17. Demo: logging in,
asking questions, &
deploying from the CLI
@starbuxman @ebottard
CONFIDENTIAL
17
mardi 16 octobre 12
18. Accessing Your Services
§ Debugging and accessing the data locally
• Caldecott --> Service tunneling. Access your Cloud Foundry service as if it was local.
@starbuxman @ebottard
CONFIDENTIAL
18
mardi 16 octobre 12
19. Demo: Using the tunnel to talk to your services
@starbuxman @ebottard
CONFIDENTIAL
19
mardi 16 octobre 12
20. Demo: developing with Eclipse & STS
@starbuxman @ebottard
CONFIDENTIAL
20
mardi 16 octobre 12
21. Getting started with
Cloud Foundry...
@starbuxman @ebottard
CONFIDENTIAL
21
mardi 16 octobre 12
22. Register http://cloudfoundry.com/signup
Use promo code
SpringOne2012
@starbuxman @ebottard
CONFIDENTIAL
22
mardi 16 octobre 12
24. Ways to use Cloud Foundry
@starbuxman @ebottard
CONFIDENTIAL
24
mardi 16 octobre 12
25. Ways to use Cloud Foundry
@starbuxman @ebottard
CONFIDENTIAL
24
mardi 16 octobre 12
26. Ways to use Cloud Foundry
@starbuxman @ebottard
CONFIDENTIAL
24
mardi 16 octobre 12
27. Ways to use Cloud Foundry
@starbuxman @ebottard
CONFIDENTIAL
24
mardi 16 octobre 12
28. Ways to use Cloud Foundry
@starbuxman @ebottard
CONFIDENTIAL
24
mardi 16 octobre 12
29. Ways to use Cloud Foundry
@starbuxman @ebottard
CONFIDENTIAL
24
mardi 16 octobre 12
30. Installing vmc on Windows
@starbuxman @ebottard
CONFIDENTIAL
25
mardi 16 octobre 12
31. Installing vmc on Windows
Install the vmc gem
@starbuxman @ebottard
CONFIDENTIAL
25
mardi 16 octobre 12
32. Installing vmc on Mac OSX
Use Ruby Version Manager http://beginrescueend.com/
$ curl -L https://get.rvm.io | bash -s stable --ruby
$ rvm install 1.9.2
$ rvm use 1.9.2
You need:
$ gem install vmc
Command Line Tools for OSX or
XCode 4.1!!
@starbuxman @ebottard
CONFIDENTIAL
26
mardi 16 octobre 12
33. Josh Long | josh.long@springsource.com
Eric Bottard | ebottard@vmware.com
Questions?
CloudFoundry.com signup promo code: SpringOne2012
@starbuxman @ebottard
CONFIDENTIAL
mardi 16 octobre 12