Baking Docker using Chef
Docker wave has changed the way we look at infrastructure today. Docker is like a lightweight VM which provides an isolated environment on your OS, without the need for a separate kernel. You can run your applications inside docker which offers the ease of deployment.
However, docker requires some management. How do you configure and tune the OS that will host them? How can you ease the process of creating and managing the right dockerfiles? How do you manage docker images? How do you orchestrate docker containers? How do you manage configurations across the different environments of dev, test and prod?
You can use Chef to provision and configure the machines which will host docker containers. Chef can create container images. Chef can configure docker containers when they boot and while they run. Chef can deploy, run and stop containers. Moreover chef can help you debug and analyse whats happening in your application that runs inside the docker container.
This tutorial will run you through the way you can configure and manage Docker using Chef. It will be supported with a demo and a real business case.
Outline/Structure of the Tutorial
- Quick introduction to Docker and Chef
- Pros and cons of using Chef + Docker
- Simple CI/CD pipeline
- Dealing with multiple environments
- Secure credential management
- Introduction to docker cookbook
- Installing docker
- Generating dockerfile and creating docker image
- Deploying and running docker containers
- Managing docker containers in production
- Debugging applications running inside containers
- Understanding a business case and building the entire CI/CD setup using Chef+Docker
Learning Outcome
Understanding of how chef can be used to install, deploy and manage how to run docker containers.
Target Audience
devops engineers, sysadmin, developers, managers
Video
Links
Presented at ChefConf 2015 in Santa Clara on using Chef+Docker: https://www.youtube.com/watch?v=5NiJ03r8h9E
Presented at DockerCon 2015 in San Francisco on bridging motherhood with technology: https://www.slideshare.net/slideshow/embed_code/key/A32ZXYPno9MFNU?feature=oembed
Presented at Unicom DevOps Conf in Pune on Continuous Testing using Docker and Shippable which was featured on Slideshare as most hit presentation:http://www.slideshare.net/MuktaArankalleAphale/continuous-testing-using-shippable-and-docker
Presented at DevOps meetup in Pune hosted by WhiteHedge Technologies on Application Monitoring using Datadog: http://www.slideshare.net/WhiteHedge/application-monitoring-using-datadog-57572190
Various other presentations by Mukta can be found at: http://www.slideshare.net/MuktaArankalleAphale/