the lazy developer's guide to cloud foundry - holly cummins

112
© 2014 IBM Corporation The Lazy Developer’s Guide to Cloud Foundry Document number Holly Cummins @holly_cummins

Upload: jaxlondon2014

Post on 02-Jul-2015

180 views

Category:

Presentations & Public Speaking


0 download

DESCRIPTION

JAX London presentation 2014

TRANSCRIPT

Page 1: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

The Lazy Developer’s Guide to Cloud Foundry

Document number

Holly Cummins @holly_cummins

Page 2: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Page 3: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

?

Page 4: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Page 5: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Page 6: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Page 7: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Page 8: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Page 9: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Page 10: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Page 11: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Page 12: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Page 13: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

A model for excellence in public speaking

Page 14: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Cloud Foundry

> cf push

Page 15: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

Any questions?

Page 16: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

?

Page 17: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Page 18: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

IaaS

Page 19: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

PaaS

Page 20: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

SaaS

Page 21: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

The joy of cloud

Page 22: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Introducing Cloud Foundry

Page 23: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

The Cloud Foundry Foundation

Page 24: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

The Cloud Foundry Foundation

Page 25: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Public or private cloud?

Page 26: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Public cloud

Page 27: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Public cloud

Page 28: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Public cloud

This is supposed to show it’s easy to get going.

Page 29: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Public cloud

This is supposed to show it’s easy to get going.It’s a bad graphic but a great benefit.

Page 30: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Page 31: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Page 32: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Page 33: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Page 34: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

System capacity still matters

Page 35: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Page 36: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Page 37: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Page 38: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Security

Page 39: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪Who has access to the data? ▪Who manages the servers? ▪What’s the patching policy?

Security is not just physical

Page 40: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Hybrid cloud

Page 41: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Public or private cloud?

Page 42: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

How big is your organisation?

Page 43: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

How big is your organisation?

Page 44: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

How big is your organisation?

Page 45: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Page 46: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Can we hear more about Cloud Foundry now, please?

Page 47: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Public or private Cloud Foundry?

Page 48: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Public or private Cloud Foundry?

Page 49: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Public or private Cloud Foundry?

Page 50: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Cloud Foundry

> cf push

Page 51: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

Putting your demo where your mouth is

Page 52: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

No really, that was cool

Page 53: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

No really, that was cool

Page 54: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Page 55: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Page 56: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Remember that I said it was easy to get going?

Page 57: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Buildpacks

Page 58: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Buildpacks

Page 59: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Out of the box

Page 60: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪Java

Out of the box

Page 61: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪Java▪Node.js

Out of the box

Page 62: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪Java▪Node.js▪PHP

Out of the box

Page 63: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪Java▪Node.js▪PHP▪Python

Out of the box

Page 64: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪Java▪Node.js▪PHP▪Python▪Ruby

Out of the box

Page 65: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪Java▪Node.js▪PHP▪Python▪Ruby▪Go

Out of the box

Page 66: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Bring your own

Page 67: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪Your preferred app server flavour

Bring your own

Page 68: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪Your preferred app server flavour–WebSphere Liberty Profile (of course!)

Bring your own

Page 69: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪Your preferred app server flavour–WebSphere Liberty Profile (of course!)–Jetty

Bring your own

Page 70: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪Your preferred app server flavour–WebSphere Liberty Profile (of course!)–Jetty–nginx

Bring your own

Page 71: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪Your preferred app server flavour–WebSphere Liberty Profile (of course!)–Jetty–nginx

▪The functional language to impress your colleagues with

Bring your own

Page 72: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪Your preferred app server flavour–WebSphere Liberty Profile (of course!)–Jetty–nginx

▪The functional language to impress your colleagues with–Haskell

Bring your own

Page 73: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪Your preferred app server flavour–WebSphere Liberty Profile (of course!)–Jetty–nginx

▪The functional language to impress your colleagues with–Haskell–Clojure

Bring your own

Page 74: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪Your preferred app server flavour–WebSphere Liberty Profile (of course!)–Jetty–nginx

▪The functional language to impress your colleagues with–Haskell–Clojure–Scala

Bring your own

Page 75: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪Your preferred app server flavour–WebSphere Liberty Profile (of course!)–Jetty–nginx

▪The functional language to impress your colleagues with–Haskell–Clojure–Scala

▪That thing you saw Greg Young talk about yesterday

Bring your own

Page 76: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪Your preferred app server flavour–WebSphere Liberty Profile (of course!)–Jetty–nginx

▪The functional language to impress your colleagues with–Haskell–Clojure–Scala

▪That thing you saw Greg Young talk about yesterday –Erlang

Bring your own

Page 77: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪Your preferred app server flavour–WebSphere Liberty Profile (of course!)–Jetty–nginx

▪The functional language to impress your colleagues with–Haskell–Clojure–Scala

▪That thing you saw Greg Young talk about yesterday –Erlang

▪The dark side

Bring your own

Page 78: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪Your preferred app server flavour–WebSphere Liberty Profile (of course!)–Jetty–nginx

▪The functional language to impress your colleagues with–Haskell–Clojure–Scala

▪That thing you saw Greg Young talk about yesterday –Erlang

▪The dark side–.NET

Bring your own

Page 79: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪Your preferred app server flavour–WebSphere Liberty Profile (of course!)–Jetty–nginx

▪The functional language to impress your colleagues with–Haskell–Clojure–Scala

▪That thing you saw Greg Young talk about yesterday –Erlang

▪The dark side–.NET

▪….

Bring your own

Page 80: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Bring someone else’s

Page 81: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Bring someone else’s

Page 82: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪Start with someone else’s. ▪Cut, paste, fork.

No really, bring your own

Page 83: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

buildpack: http://my.cool.pack.git

Page 84: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Life of a buildpack

Page 85: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪Detect

Life of a buildpack

Page 86: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪Detect–Do I understand this application?

Life of a buildpack

Page 87: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪Detect–Do I understand this application?

▪Compile

Life of a buildpack

Page 88: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪Detect–Do I understand this application?

▪Compile–I do understand this application! Let’s package it up into a self-contained unit (“droplet”)

Life of a buildpack

Page 89: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪Detect–Do I understand this application?

▪Compile–I do understand this application! Let’s package it up into a self-contained unit (“droplet”)

▪Release

Life of a buildpack

Page 90: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪Detect–Do I understand this application?

▪Compile–I do understand this application! Let’s package it up into a self-contained unit (“droplet”)

▪Release–Ok, let’s go!

Life of a buildpack

Page 91: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Services

Page 92: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪You didn’t want to provide an app server …

Services

Page 93: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪You didn’t want to provide an app server …▪… so you don’t want to provide the database …

Services

Page 94: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪You didn’t want to provide an app server …▪… so you don’t want to provide the database …▪… or the email provider …

Services

Page 95: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪You didn’t want to provide an app server …▪… so you don’t want to provide the database …▪… or the email provider …▪… or the monitoring

Services

Page 96: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Some are generic

Page 97: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Some are not …

Page 98: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

… and there are a lot

Page 99: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

services:! - instance_ABC! - instance_XYZ

Binding services

Page 100: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Using a bound service

Page 101: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

System.getProperty(VCAP_SERVICES);!!{! sqldb": [! {! "name": "SQLDB-myDB",! "label": "sqldb"! "plan": "sqldb_small"! "credentials": {! "hostname": "75.126.155.139",! "host": "75.126.155.139",! "port": 50000,! "username": "u123456",! "password": "CasDQ5v72u",! "db": "I_012345",! "jdbcurl": "jdbc:db2://75.126.155.139:50000/I_012345",! "uri": "db2://u123:[email protected]:50000/I_012345"! }! }! ]!}!

Using a bound service

Page 102: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Docker

Page 103: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Decker

Page 104: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Decker

+

Page 105: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Decker

> cf push

Page 106: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Decker

> cf push

Page 107: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

Decker

> cf push

Page 108: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

In the future

Page 109: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪More convergence

In the future

Page 110: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪More convergence▪Cloud Foundry will have first class support for pushing docker images

In the future

Page 111: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

@holly_cummins

▪More convergence▪Cloud Foundry will have first class support for pushing docker images▪Cloud Foundry will use Docker’s lib container internally

In the future

Page 112: The Lazy Developer's Guide to Cloud Foundry - Holly Cummins

© 2014 IBM Corporation

Thank you. Any questions?

@holly_cummins