Build, Release, and Distribute Your Python App with Docker
Buch, Englisch, 239 Seiten, Format (B × H): 155 mm x 235 mm, Gewicht: 400 g
ISBN: 978-1-4842-7814-7
Verlag: Apress
You'll start with a brief history of how containerization has changed over the years. Next, we look at how to install (including using the new WSL2 mode) and get started with Docker. The next couple of chapters will focus on understanding the Dockerfile, including the structure and the core instructions used in building a Docker image. You'll also see how to distribute Docker images using Docker hub and other private registries. From there, you'll look at using Docker volumes for persisting data. Then learn how to run multi-container applications with Docker compose and learn inter-container networking works with Docker networks. Finally, you'll look at how to prepare a containerized application for production deployments.
Throughout the book you'll apply the techniques learned through the chapters by building a Telegram messenger Chatbot and see how much easier Docker makes it possible to build, release, contribute and distribute an application. In addition, the book shows how optimize the Docker images for production servers by using multi-stage builds and improve the reliability of your services by using health checks and restart policies. Practical Docker with Python will break down terminologies like Dockerfile and Docker volumes, and take you on a guided tour of building a telegram bot using Python.
What You'll Learn
- Compare the difference between containerization and virtualization
- Understand the Dockerfile and converting your application to Docker image
- Define and run multi-container applications with Docker compose
- Review data persistency with Docker volumes
Beginner and intermediate developers, DevOps practitioners who are looking improving their build and release workflow by containerizing applications as well as system administrators learning to implement DevOps principles.
Zielgruppe
Professional/practitioner
Autoren/Hrsg.
Fachgebiete
- Mathematik | Informatik EDV | Informatik Programmierung | Softwareentwicklung Software Engineering
- Mathematik | Informatik EDV | Informatik Programmierung | Softwareentwicklung Programmier- und Skriptsprachen
- Mathematik | Informatik EDV | Informatik Programmierung | Softwareentwicklung Webprogrammierung
Weitere Infos & Material
Chapter 1: Introduction to Containerization & Docker.- Chapter 2: Docker 101.- mandsChapter 3: Building the Python App.- Chapter 4: Understanding Dockerfile.- Chapter 5: Understanding Docker Volumes.- Chapter 6: Docker Networking.- Chapter 7: Multi Container Applications.- Chapter 8: Preparing for Production Deployments.