Docker Containers


@ladislavGazo

gazo@seges.sk

Deployment evolution

  • physical server
  • virtualization
  • chroot/jail
  • containers

Physical Server

Pros:
  • bare hardware usage
  • no overhead
  • straightforward


Cons:
  • does not scale easily
  • costly
  • no effective utilisation
  • mixture of applications on one server

Virtualization

Pros:
  • utilization of underlying HW
  • horizontal scaling
  • transparent image migration
  • cross-platform
  • cloud and DevOps evolution


Cons:
  • virtual machine overhead
  • efficiency of utilization
  • startup time

Containers

Pros:
  • microservices concept
  • minimal container overhead
  • quick startup
  • transparent and consistent deployment
  • trend

Cons:
  • young project (but heavy involvement of big companies)
  • unsolved parts yet (service discovery, security,...)
  • windows

Docker




Demo Environment


server:
.....

user:
......

pass:
......

Docker provisioning

  • Dockerfile
  • custom scripts
  • DevOps tools
    • chef-container

Docker in Seges

  • Voipac Wiki prototype
    • discovered complexity of preparing Chef-aware environment with proper service startup
    • first boot container initialization
  • Synapso ACC prototype
    • transforming existing app to "microservice" ecosystem
    • complexity of service discovery
    • volumes and linking containers
      • ambassador pattern

Docker in Development

Example:

Principle:
  • application running in docker
  • exposed ports
  • volume linked to the host
  • IDE works on top of the volume

Benefit
same environment in DEV, ACC & PROD

Never been in Moria?


 docker run --rm -v /usr/local/bin:/target jpetazzo/nsenter

Pedo Mellon a Minno


 docker-enter my_awesome_container ls -la




Play time



Questions?





@ladislavGazo
gazo@seges.sk



Thank YOu... for...






ATTENTION

Docker Containers light introduction

By lgazo

Docker Containers light introduction

Light introduction to the world of Docker

  • 754