SlideShare a Scribd company logo
Andy Piper | @andypiper | apiper@gopivotal.com
Cloud Foundry Developer Advocate, Pivotal

Run Your Java Apps on
Cloud Foundry
Hello

I’m Andy
Developer Advocate @ Cloud Foundry
social web enthusiast
maker, educator, LEGO fan
OSS contributor
Eclipse Project Lead (Paho / MQTT)
excited by “what’s next”, Internet of Things, etc.
!
!

@andypiper
apiper@gopivotal.com
a few things about me
Developer Advocate?

hellz to the yeah!
Run your Java apps on Cloud Foundry
@andypiper
!
[works on]
!

#cloudfoundry
!
[at]
!

@gopivotal
1. Why is an Open Cloud Platform important?
2. What is Cloud Foundry?
3. Java support in the open cloud
Why is an Open Cloud Platform important?
From: torvalds@klaava.Helsinki.FI
Newsgroups: comp.os.minix
Date: 25 Aug 91 20:57:08 GMT
Organization: University of Helsinki

1991
An important year in software

Hello everybody out
there using minix !

I’m doing a (free)
operating system
(just a hobby,
won’t be big and
professional like
gnu) for 386(486)
AT clones.
~21 years later: Linux has won
#P0WN ALL
TEH
GADGETZ !

Linux runs everywhere

(even old versions, on crashy
airline entertainment systems...)
It works.
Don’t be locked-in

do you know what is coming
tomorrow?
What is Cloud Foundry?
Software

Gmail, Salesforce,
Flickr, Google Docs...

Platform

Google AppEngine,
Heroku, Cloud Foundry,
EngineYard, Apprenda...

Infrastructure

3 layers

Amazon EC2, Google CE,
OpenStack, vSphere,
Joyent, Cloud Stack,
Eucalyptus...

IaaS, PaaS, SaaS
Cloud Foundry - the Open PaaS
Public&
Clouds

Private&
Clouds

CUSTOM 

RUNTIMES

Micro&
Clouds

CUSTOM 

SERVICES

Open Source
“… we believe that
the best solution
should be available
on top of any cloud
and not just be
locked into EC2”
!
- Mike Soby in JAX Magazine
Special Edition
All the pieces to make
your own!

“if you can’t open it, you
don’t own it” (O’Reilly MAKE)
Open & public from the start

Code all on Github
Why is it so hard...?

A real deployment flow (!)
DEVELOPER

OPERATOR
cf#iaas.yml+

target+<my+cloud>+

provision+<my+cloud>+

push+<my+app>+

add_capacity+<my+cloud>

create+<my+services>+
bind+<my+services>+
scale+<my+app>++100

Cloud Deployment: 2-4 hours

An alternative approach...

App Deployment: 30-90 seconds

Cloud Foundry can
make it simpler!
CLOUD FOUNDRY

Demo



Java (and JVM language) support
in Cloud Foundry
From VM-centric to Application Centric

App

App

App

App

Dev Framework

Dev Framework

Dev Framework

Configurations

Configurations

Manifests, Automations

JVM

JVM

App Server

App Server

VM

VM

Infrastructure

One

Infrastructure

Two

Container 1
JVM

Container 2
JVM

App Server

App Server

Infrastructure

One

Infrastructure

Two
Buildpacks
Buildpacks are responsible for preparing the
machine image for an application

Application
Buildpack

Container

Libraries

DEA

Runtime
Operating System

}

Droplet
Compatibility

Cloud Foundry buildpacks follow the 

Heroku buildpack design

Cloud Foundry and Heroku buildpacks are compatible

(if you take care to make them compatible)

!

Other PaaS providers are adopting the 

buildpack design - emerging convention
Built-in Buildpacks

→
→
→
Tested Buildpacks
https://github.com/cloudfoundry-community/cf-docs-contrib/wiki/Buildpacks

Containers

Languages
Haskell
Java Buildpack
Supports a variety of JVM languages, containers,
and frameworks with a modular, configurable, and
extensible design
“The primary objective of the Java buildpack is to be
the easiest way to run a Java application. The word
easiest can mean a lot of things, but to me it means
that a developer can push an application and have an
“it just works™” experience.”
!

- Ben Hale, Java buildpack engineer

http://blog.cloudfoundry.com/2013/09/06/introducing-the-cloud-foundry-java-buildpack/
Java Buildpack Concepts

Containers

Frameworks

Java main()

Spring config
Play config
Play JPA config
New Relic

Tomcat
Groovy
Spring Boot CLI
Play

JREs
OpenJDK, etc.
Container Detection Criteria
Java main()

META-INF/MANIFEST.MF exists
with Main-class attribute set

Tomcat

WEB-INF directory exists

Groovy

.groovy file with a main() method, or!
.groovy file with no classes, or!
.groovy file with a shebang (#!) declaration

Spring Boot CLI

one or more POGO .groovy files
with no main() method, and
no WEB-INF directory

Play

start and lib/play.play_*.jar
exist

Choose zero or one
Framework Detection Criteria

Spring

spring-core*.jar exists

Play config

Play application detected

Play JPA config

play-java-jpa plugin exists in app

New Relic

New Relic service bound to app

Choose all that apply
Customization
Two ways to customize the Java buildpack

Configure artifacts used by standard
JREs, Containers, and Frameworks

Extend the buildpack with your own JREs,
Containers, and Frameworks


Customization is done by
forking the buildpack

→
Choice!
• IBM donated WebSphere Liberty Buildpack

http://blog.cloudfoundry.com/2013/09/09/ibm-websphereliberty-buildpack-contributed-to-cloud-foundry/


• Other forks add additional containers and frameworks Jonas, Dropwizard, Karaf, etc
Tooling support

$ mvn clean package cf:push!
$ gradle clean assemble cf-push

http://blog.cloudfoundry.com/2013/10/29/java-tooling/
the new Spring

spring.io
XD

BOOT

Stream, Taps, Jobs

GRAILS

Bootable, Minimal, Ops-Ready

Full-stack, Web

INTEGRATION

BATCH

BIG DATA

WEB

Channels, Adapters,

Filters, Transformers

Jobs, Steps,

Readers, Writers

Ingestion, Export,

Orchestration, Hadoop

Controllers, REST,

WebSocket

DATA

RELATIONAL

NON-RELATIONAL

CORE

FRAMEWORK

SECURITY

GROOVY

REACTOR
Groovy and Spring Boot
Groovy and Spring Boot
Groovy and Spring Boot
Spring and the Cloud
• Goal: deploy Spring apps to the cloud without
changing a single line of code

• Cloud Foundry automatically re-configures bean
definitions to bind to cloud services

• Works with Spring and Grails
Portability
SPRING




Demo
… and finally …
Try It!

http://run.pivotal.io
Join us!

... a pull request is all it
takes!
Connect
http://twitter.com/andypiper
http://andypiper.co.uk
http://slideshare.net/andypiper


Credits
• Padlock http://www.flickr.com/photos/bpc009/3328427457/

• Other images are author’s own, or royalty-free and CC-licensed works 

from Wikimedia Commons

• Thanks to Scott Frederick, Josh Long and Guillaume Laforge for content

More Related Content

What's hot (19)

ODP
The site architecture you can edit
Open Stack
 
PDF
NetflixOSS and ZeroToDocker Talk
aspyker
 
PDF
Docker Cambridge: Serverless Functions Made Simple with OpenFaaS
Alex Ellis
 
PDF
DockerCon EU 2015: Continuous Integration with Jenkins, Docker and Compose
Docker, Inc.
 
PPTX
Zoe - Swarming Spark applications
Daniele Venzano
 
PDF
XCloudLabs- AWS Overview
sangam biradar
 
PDF
Zero to Serverless - OpenFaaS at the Open Source Summit
Alex Ellis
 
ODP
Cloud computing - an insight into "how does it really work ?"
Tikal Knowledge
 
PDF
How to build an event-driven, polyglot serverless microservices framework on ...
Animesh Singh
 
PDF
WJAX 2013: Java8-Tooling in Eclipse
martinlippert
 
PPTX
Cloud Foundry | How it works
Kazuto Kusama
 
PDF
OpenFaaS - zero serverless in 60 seconds anywhere with case-studies
Alex Ellis
 
PDF
Introducing Pico - A Deep Learning Platform using Docker & IoT - Sangam Biradar
sangam biradar
 
PDF
OpenFaaS 2019 Project Update
Alex Ellis
 
PDF
Spinnaker workshop
Lee Xie
 
PDF
Continuous Delivery at Netflix, and beyond
Mike McGarr
 
PPTX
Docker cloud hybridation & orchestration
Adrien Blind
 
PDF
GitOps meets Serverless
Alex Ellis
 
PDF
OpenFaaS serverless framework for Docker and Kubernetes - London
Alex Ellis
 
The site architecture you can edit
Open Stack
 
NetflixOSS and ZeroToDocker Talk
aspyker
 
Docker Cambridge: Serverless Functions Made Simple with OpenFaaS
Alex Ellis
 
DockerCon EU 2015: Continuous Integration with Jenkins, Docker and Compose
Docker, Inc.
 
Zoe - Swarming Spark applications
Daniele Venzano
 
XCloudLabs- AWS Overview
sangam biradar
 
Zero to Serverless - OpenFaaS at the Open Source Summit
Alex Ellis
 
Cloud computing - an insight into "how does it really work ?"
Tikal Knowledge
 
How to build an event-driven, polyglot serverless microservices framework on ...
Animesh Singh
 
WJAX 2013: Java8-Tooling in Eclipse
martinlippert
 
Cloud Foundry | How it works
Kazuto Kusama
 
OpenFaaS - zero serverless in 60 seconds anywhere with case-studies
Alex Ellis
 
Introducing Pico - A Deep Learning Platform using Docker & IoT - Sangam Biradar
sangam biradar
 
OpenFaaS 2019 Project Update
Alex Ellis
 
Spinnaker workshop
Lee Xie
 
Continuous Delivery at Netflix, and beyond
Mike McGarr
 
Docker cloud hybridation & orchestration
Adrien Blind
 
GitOps meets Serverless
Alex Ellis
 
OpenFaaS serverless framework for Docker and Kubernetes - London
Alex Ellis
 

Viewers also liked (7)

PDF
Connecting to the Pulse of the Planet with the Twitter Platform
Andy Piper
 
PDF
Twitter APIs for #MediaHackday
Andy Piper
 
PDF
Imagining the Future, when the Future is already Now
Andy Piper
 
PDF
Eclipse Paho - MQTT and the Internet of Things
Andy Piper
 
PDF
Rebooting A Community #DevRelCon
Andy Piper
 
PDF
MQTT, Eclipse Paho and Java - Messaging for the Internet of Things
Andy Piper
 
PDF
Introducing MQTT
Andy Piper
 
Connecting to the Pulse of the Planet with the Twitter Platform
Andy Piper
 
Twitter APIs for #MediaHackday
Andy Piper
 
Imagining the Future, when the Future is already Now
Andy Piper
 
Eclipse Paho - MQTT and the Internet of Things
Andy Piper
 
Rebooting A Community #DevRelCon
Andy Piper
 
MQTT, Eclipse Paho and Java - Messaging for the Internet of Things
Andy Piper
 
Introducing MQTT
Andy Piper
 
Ad

Similar to Run your Java apps on Cloud Foundry (20)

PDF
Cloud Foundry Introduction and Overview
Andy Piper
 
PDF
Cloudfoundry Overview
rajdeep
 
PPTX
Give Your Java Apps “The Boot” With Spring Boot And Cloud Foundry
Ryan Baxter
 
PDF
Review: Cloud Foundry brings power and polish to PaaS
VMware Tanzu
 
PPTX
Cloud Foundry: Hands-on Deployment Workshop
Manuel Garcia
 
PDF
Cloud foundry presentation
Vipul Tope
 
PDF
Cloud Foundry Overview
Patrick Chanezon
 
PDF
Tools and Recipes to Replatform Monolithic Apps to Modern Cloud Environments
VMware Tanzu
 
PDF
Cloud Foundry, the Open Platform as a Service - Oscon - July 2012
Patrick Chanezon
 
PDF
Cloud foundry and openstackcloud
Francisco Gonçalves
 
PDF
Introduction To Cloud Foundry - SpringPeople
SpringPeople
 
PDF
Part 4: Custom Buildpacks and Data Services (Pivotal Cloud Platform Roadshow)
VMware Tanzu
 
PDF
WJAX 2013: Die PaaS-Parade - Teil 2 - Cloud Foundry
martinlippert
 
PDF
PHP Buildpacks in the Cloud on Bluemix
IBM
 
PDF
Cloud Foundry for PHP developers
Daniel Krook
 
PDF
Running Java Applications on Cloud Foundry
VMware Tanzu
 
PPTX
Cloud foundry
shyamkumar chauhan
 
PDF
Despliegue Cloud-Native Simplificado: Infraestructura, Servicios y GenAI en m...
Alberto Lorenzo
 
PDF
Spring Boot & Spring Cloud on PAS- Nate Schutta (1/2)
VMware Tanzu
 
PPT
Cloud foundry meetup 12112013
Christopher Ferris
 
Cloud Foundry Introduction and Overview
Andy Piper
 
Cloudfoundry Overview
rajdeep
 
Give Your Java Apps “The Boot” With Spring Boot And Cloud Foundry
Ryan Baxter
 
Review: Cloud Foundry brings power and polish to PaaS
VMware Tanzu
 
Cloud Foundry: Hands-on Deployment Workshop
Manuel Garcia
 
Cloud foundry presentation
Vipul Tope
 
Cloud Foundry Overview
Patrick Chanezon
 
Tools and Recipes to Replatform Monolithic Apps to Modern Cloud Environments
VMware Tanzu
 
Cloud Foundry, the Open Platform as a Service - Oscon - July 2012
Patrick Chanezon
 
Cloud foundry and openstackcloud
Francisco Gonçalves
 
Introduction To Cloud Foundry - SpringPeople
SpringPeople
 
Part 4: Custom Buildpacks and Data Services (Pivotal Cloud Platform Roadshow)
VMware Tanzu
 
WJAX 2013: Die PaaS-Parade - Teil 2 - Cloud Foundry
martinlippert
 
PHP Buildpacks in the Cloud on Bluemix
IBM
 
Cloud Foundry for PHP developers
Daniel Krook
 
Running Java Applications on Cloud Foundry
VMware Tanzu
 
Cloud foundry
shyamkumar chauhan
 
Despliegue Cloud-Native Simplificado: Infraestructura, Servicios y GenAI en m...
Alberto Lorenzo
 
Spring Boot & Spring Cloud on PAS- Nate Schutta (1/2)
VMware Tanzu
 
Cloud foundry meetup 12112013
Christopher Ferris
 
Ad

More from Andy Piper (20)

PDF
Adapt & Survive
Andy Piper
 
PDF
Building Twitter's SDKs for Android
Andy Piper
 
PDF
Developer Advocacy - A Life Less Ordinary
Andy Piper
 
PDF
Twitter in the Internet of Things
Andy Piper
 
PDF
Twitter APIs - the starter guide
Andy Piper
 
PDF
Connecting to the pulse of the planet with Twitter APIs
Andy Piper
 
PDF
Internet ALL the Things - a walking tour of MQTT
Andy Piper
 
PDF
Combining Context with Signals in the IoT (longer version)
Andy Piper
 
PDF
Why the Internet of Things will be built on Open Source
Andy Piper
 
PDF
Combining Context with Signals in the Internet of Things
Andy Piper
 
PDF
MQTT - standards-based plumbing for the Internet of Things
Andy Piper
 
PDF
My Quantified Self and the promise of wearables
Andy Piper
 
PDF
Why Data, Code and Mobile converge in the Open Cloud
Andy Piper
 
PDF
From Cloud Computing to Platform as a Service – BCS Oxfordshire
Andy Piper
 
PDF
Why Apps, Data and Mobile Converge in the Open Cloud
Andy Piper
 
PDF
The Internet of Things is Made of Signals
Andy Piper
 
PDF
How to Write a Web App in fewer than 140 Characters
Andy Piper
 
PDF
Cloud Foundry - Platform as a Service for vSphere
Andy Piper
 
PDF
Why Open Cloud Platforms are important - OSCON 2013
Andy Piper
 
PDF
Cloud East 2013 - Open Source Clouds
Andy Piper
 
Adapt & Survive
Andy Piper
 
Building Twitter's SDKs for Android
Andy Piper
 
Developer Advocacy - A Life Less Ordinary
Andy Piper
 
Twitter in the Internet of Things
Andy Piper
 
Twitter APIs - the starter guide
Andy Piper
 
Connecting to the pulse of the planet with Twitter APIs
Andy Piper
 
Internet ALL the Things - a walking tour of MQTT
Andy Piper
 
Combining Context with Signals in the IoT (longer version)
Andy Piper
 
Why the Internet of Things will be built on Open Source
Andy Piper
 
Combining Context with Signals in the Internet of Things
Andy Piper
 
MQTT - standards-based plumbing for the Internet of Things
Andy Piper
 
My Quantified Self and the promise of wearables
Andy Piper
 
Why Data, Code and Mobile converge in the Open Cloud
Andy Piper
 
From Cloud Computing to Platform as a Service – BCS Oxfordshire
Andy Piper
 
Why Apps, Data and Mobile Converge in the Open Cloud
Andy Piper
 
The Internet of Things is Made of Signals
Andy Piper
 
How to Write a Web App in fewer than 140 Characters
Andy Piper
 
Cloud Foundry - Platform as a Service for vSphere
Andy Piper
 
Why Open Cloud Platforms are important - OSCON 2013
Andy Piper
 
Cloud East 2013 - Open Source Clouds
Andy Piper
 

Recently uploaded (20)

PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PPTX
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Blockchain Transactions Explained For Everyone
CIFDAQ
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PPTX
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Top iOS App Development Company in the USA for Innovative Apps
SynapseIndia
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Blockchain Transactions Explained For Everyone
CIFDAQ
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
✨Unleashing Collaboration: Salesforce Channels & Community Power in Patna!✨
SanjeetMishra29
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 

Run your Java apps on Cloud Foundry