microservices application deployment with docker
TRANSCRIPT
![Page 1: Microservices application deployment with docker](https://reader031.vdocuments.net/reader031/viewer/2022021421/5a65d7c77f8b9ab21e8b4787/html5/thumbnails/1.jpg)
Microservices Application Deployment with Docker
#BrownBag Sessions29th Aug 2017
Swapnil Dahiphale
Sr. DevOps Engineer, Crevise Technologies
![Page 2: Microservices application deployment with docker](https://reader031.vdocuments.net/reader031/viewer/2022021421/5a65d7c77f8b9ab21e8b4787/html5/thumbnails/2.jpg)
Agenda
• Microservices
• Containers
• A container pipeline
• Docker-compose
• Use-case
• Demo
![Page 3: Microservices application deployment with docker](https://reader031.vdocuments.net/reader031/viewer/2022021421/5a65d7c77f8b9ab21e8b4787/html5/thumbnails/3.jpg)
Microservices
![Page 4: Microservices application deployment with docker](https://reader031.vdocuments.net/reader031/viewer/2022021421/5a65d7c77f8b9ab21e8b4787/html5/thumbnails/4.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022021421/5a65d7c77f8b9ab21e8b4787/html5/thumbnails/5.jpg)
What are containers?
OS virtualization
Process isolation
Automation
Images
![Page 6: Microservices application deployment with docker](https://reader031.vdocuments.net/reader031/viewer/2022021421/5a65d7c77f8b9ab21e8b4787/html5/thumbnails/6.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022021421/5a65d7c77f8b9ab21e8b4787/html5/thumbnails/7.jpg)
A container pipelineIT Operations
BaseImage
PatchesUtilities
![Page 8: Microservices application deployment with docker](https://reader031.vdocuments.net/reader031/viewer/2022021421/5a65d7c77f8b9ab21e8b4787/html5/thumbnails/8.jpg)
A container pipelineIT Operations
BaseImage
PatchesUtilities
Ruby
Redis
Logger
![Page 9: Microservices application deployment with docker](https://reader031.vdocuments.net/reader031/viewer/2022021421/5a65d7c77f8b9ab21e8b4787/html5/thumbnails/9.jpg)
A container pipelineIT Operations Developer
BaseImage
PatchesUtilities
Ruby
Redis
Logger
App
![Page 10: Microservices application deployment with docker](https://reader031.vdocuments.net/reader031/viewer/2022021421/5a65d7c77f8b9ab21e8b4787/html5/thumbnails/10.jpg)
A container pipeline
BaseImage
PatchesUtilities
IT Operations Developer
Ruby
Redis
Logger
App
![Page 11: Microservices application deployment with docker](https://reader031.vdocuments.net/reader031/viewer/2022021421/5a65d7c77f8b9ab21e8b4787/html5/thumbnails/11.jpg)
Guest OS
Server
Bins/Libs Bins/Libs
App2App1
$ docker run myimage
![Page 12: Microservices application deployment with docker](https://reader031.vdocuments.net/reader031/viewer/2022021421/5a65d7c77f8b9ab21e8b4787/html5/thumbnails/12.jpg)
MultiContainer Apps is a hussle
![Page 13: Microservices application deployment with docker](https://reader031.vdocuments.net/reader031/viewer/2022021421/5a65d7c77f8b9ab21e8b4787/html5/thumbnails/13.jpg)
Docker-compose
Get an microservices app running in one command!
![Page 14: Microservices application deployment with docker](https://reader031.vdocuments.net/reader031/viewer/2022021421/5a65d7c77f8b9ab21e8b4787/html5/thumbnails/14.jpg)
Use-case
https://github.com/swapnildahiphale/docker-workflow.git
![Page 15: Microservices application deployment with docker](https://reader031.vdocuments.net/reader031/viewer/2022021421/5a65d7c77f8b9ab21e8b4787/html5/thumbnails/15.jpg)
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](https://reader031.vdocuments.net/reader031/viewer/2022021421/5a65d7c77f8b9ab21e8b4787/html5/thumbnails/16.jpg)
Q&A
![Page 17: Microservices application deployment with docker](https://reader031.vdocuments.net/reader031/viewer/2022021421/5a65d7c77f8b9ab21e8b4787/html5/thumbnails/17.jpg)
Demo
![Page 18: Microservices application deployment with docker](https://reader031.vdocuments.net/reader031/viewer/2022021421/5a65d7c77f8b9ab21e8b4787/html5/thumbnails/18.jpg)
Thank You
github.com/swapnildahiphale
Swapnil Dahiphale
@Swapnil2233