1
Cloud Native & Docker
Brian Christner / Swisscom
@idomyowntricks
2
Brian Christner
Brian.Christner@gmail.com / @idomyowntricks
● Swisscom Cloud Architect
● Background in Engineering, Cloud & Containers
● Docker Captain
3
Cloud Native Architecture
Credit: @benorama
What is Cloud Native
Cloud native computing uses an open source
software stack to be:
Containerized
Dynamically orchestrated
Microservices oriented
Development
VM
QA
Server
Public
Cloud
Disaster
Recovery
Contributor’s
Laptop
Production
Servers
Production
Cluster
Data Center
Containers Drive Cloud Native
Static
Website
Web
Front End
Background
Workers
User DB
Analytics
DB
Queue
API
Endpoint
8
Containers vs. VM’s
Long vs Short Lived Apps/Containers
Long Lived Short Lived
VM’s
1
3
Docker & Swisscom
VM VM VM
1
5
Docker Architecture
Swarm Architecture
Deployment
Let’s have a
look:
DEMO
Future == Serverless
Serverless is made of Servers!
Database
Entry
Point
Entry Point
Vote Handling
HTTP Request
Process
Vote
Handle Result
HTTP Request
Serverless Voting App
Monolithic
Application
Microservice
Monolithic vs Microservice vs FaaS
Function
Function
Function
Function
Function
Function
Function
Function
Microservice
Microservice
https://github.com/alexellis/faas
EASE OF USE PORTABILITY
SIMPLICITY
OPEN
PLATFORM
SERVERLESS DEMO
3
4
What’s New
Multi-Stage Builds
1
2
3
4
5
6
7
8
9
1
0
FROM golang:1.8
MAINTAINER CodeFresh.io
WORKDIR /go/src/myapp
COPY app.go .
# build
RUN go build -o app .
CMD ["./app"]
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM golang:1.8
MAINTAINER CodeFresh.io
WORKDIR /go/src/myapp
COPY app.go .
# build
RUN go build -o app .
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /root/
COPY --from=0 /go/src/myapp/app .
CMD ["./app"]
700 MB 15 MB
Multiple Architectures
Docker Resources
•@idomyowntricks / brianchristner.io
•PWD - http://play-with-docker.com
•The Best Docker Resource –
http://veggiemonk.github.io/awesome-docker/
•My Docker Projects –
•https://github.com/vegasbrianc
Questions?
Cloud Native & Docker

Cloud Native & Docker