microservices application deployment with docker

18
Microservices Application Deployment with Docker #BrownBag Sessions 29th Aug 2017 Swapnil Dahiphale Sr. DevOps Engineer, Crevise Technologies

Upload: swapnil-dahiphale

Post on 22-Jan-2018

62 views

Category:

Technology


4 download

TRANSCRIPT

Page 1: Microservices application deployment with docker

Microservices Application Deployment with Docker

#BrownBag Sessions29th Aug 2017

Swapnil Dahiphale

Sr. DevOps Engineer, Crevise Technologies

Page 2: Microservices application deployment with docker

Agenda

• Microservices

• Containers

• A container pipeline

• Docker-compose

• Use-case

• Demo

Page 3: Microservices application deployment with docker

Microservices

Page 4: Microservices application deployment with docker

Containers

“automates the deployment of any application as a lightweight, portable, self-sufficient container that will run virtually anywhere”

Page 5: Microservices application deployment with docker

What are containers?

OS virtualization

Process isolation

Automation

Images

Page 6: Microservices application deployment with docker

Why use Docker?

With Docker we can solve many problems

• “it works on my machine”• reducing build & deploy time• Infrastructure configuration – automation!• Libs dependency hell• Cost control and granularity

Page 7: Microservices application deployment with docker

A container pipelineIT Operations

BaseImage

PatchesUtilities

Page 8: Microservices application deployment with docker

A container pipelineIT Operations

BaseImage

PatchesUtilities

Ruby

Redis

Logger

Page 9: Microservices application deployment with docker

A container pipelineIT Operations Developer

BaseImage

PatchesUtilities

Ruby

Redis

Logger

App

Page 10: Microservices application deployment with docker

A container pipeline

BaseImage

PatchesUtilities

IT Operations Developer

Ruby

Redis

Logger

App

Page 11: Microservices application deployment with docker

Guest OS

Server

Bins/Libs Bins/Libs

App2App1

$ docker run myimage

Page 12: Microservices application deployment with docker

MultiContainer Apps is a hussle

Page 13: Microservices application deployment with docker

Docker-compose

Get an microservices app running in one command!

Page 14: Microservices application deployment with docker

Use-case

https://github.com/swapnildahiphale/docker-workflow.git

Page 15: Microservices application deployment with docker

docker-compose file

nginx:

build: ./nginx

links:

- node1:node1

- node2:node2

- node3:node3

ports:

- "80:80"

node1:

build: ./node

links:

- redis

ports:

- "8080"

node2:

build: ./node

links:

- redis

ports:

- "8080"

node3:

build: ./node

links:

- redis

ports:

- "8080"

redis:

image: redis

ports:

- "6379"

Page 16: Microservices application deployment with docker

Q&A

Page 17: Microservices application deployment with docker

Demo