
Practical Docker with Python
Build, Release and Distribute your Python App with Docker
Sathyajith Bhat(Author)
Apress
Published on 27. July 2018
Book
Paperback/Softback
XV, 186 pages
978-1-4842-3783-0 (ISBN)
Article exhausted; check for reprint
Description
Learn the key differences between containers and virtual machines. Adopting a project based approach, this book introduces you to a simple Python application to be developed and containerized with Docker.
After an introduction to Containers and Docker you'll be guided through Docker installation and configuration. You'll also learn basic functions and commands used in Docker by running a simple container using Docker commands.
The book then moves on to developing a Python based Messaging Bot using required libraries and virtual environment where you'll add Docker Volumes to your project, ensuring your container data is safe. You'll create a database container and link your project to it and finally, bring up the Bot-associated database all at once with Docker Compose.
What You'll Learn
Intermediate developers/DevOps practitioners who are looking to improve their build and release workflow by containerizing applications
After an introduction to Containers and Docker you'll be guided through Docker installation and configuration. You'll also learn basic functions and commands used in Docker by running a simple container using Docker commands.
The book then moves on to developing a Python based Messaging Bot using required libraries and virtual environment where you'll add Docker Volumes to your project, ensuring your container data is safe. You'll create a database container and link your project to it and finally, bring up the Bot-associated database all at once with Docker Compose.
What You'll Learn
-
Build, run, and distribute Docker containers
- Develop a Python App and containerize it
- Use Dockerfile to run the Python App
- Define and run multi-container applications with Docker Compose
- Work with persisting data generated by and used by Docker containers
Intermediate developers/DevOps practitioners who are looking to improve their build and release workflow by containerizing applications
More details
Edition
1st ed.
Language
English
Place of publication
CA
United States
Target group
Professional and scholarly
Illustrations
33
33 s/w Abbildungen
33 Illustrations, black and white; XV, 186 p. 33 illus.
Dimensions
Height: 23.5 cm
Width: 15.5 cm
Weight
3168 gr
ISBN-13
978-1-4842-3783-0 (9781484237830)
DOI
10.1007/978-1-4842-3784-7
Schweitzer Classification
Other editions
New editions

Sathyajith Bhat
Practical Docker with Python
Build, Release, and Distribute Your Python App with Docker
Book
11/2021
2nd Edition
APress
€58.84
Shipment within 15-20 days
Additional editions

Sathyajith Bhat
Practical Docker with Python
Build, Release and Distribute your Python App with Docker
E-Book
07/2018
APress
€39.99
Available for download
Person
Sathyajith Bhat is a seasoned DevOps/SRE professional currently working as a DevOps Engineer on Adobe I/O, which is Adobe's developer ecosystem and community. Prior to this, he was the lead Ops/SRE at Styletag.com. He transitioned to Ops/SRE after being a lead analyst at CGI, working primarily on Oracle Fusion stack (Oracle DB/PL/SQL/Oracle Forms and other related middleware) designing, architecting, and implementing complete end-to-end solutions for a major insurance provider in the Nordics.
In his free time, Sathya is part of the Barcamp Bangalore planning team, handling DevOps and Social Media for BCB. He is also a volunteer Community Moderator at Super User and Web Apps Stack Exchange, keeps the servers for Indian Video Gamer forums up and running, and was previously a Moderator for Chip-India and Tech 2 forums.
In his free time, Sathya is part of the Barcamp Bangalore planning team, handling DevOps and Social Media for BCB. He is also a volunteer Community Moderator at Super User and Web Apps Stack Exchange, keeps the servers for Indian Video Gamer forums up and running, and was previously a Moderator for Chip-India and Tech 2 forums.
Content
Chapter 1: Introduction to Containerization & DockerChapter Goal: Brief introduction to containerization, how they compare to virtual machines, Docker and getting the reader ready for the content of the bookSub -Topics1. What are containers2. Containers vs Virtual machines3. Introduction to Docker4. Installing Docker5. Introduction to the Project Chapter 2: Docker 101Chapter Goal: Getting started with Docker, running a sample containerSub - Topics: 1. Checking if Docker is ready2. Docker client3. Running/stopping/ connecting a Docker container4. Dockerfile brief5. Practical: Running a simple container, hands-on some common Docker commands Chapter 3: Building the Python AppChapter Goal: Getting to understand the project, APIs involved, pre-requisitesSub - Topics: 1. Project description (delivering latest content from Reddit to Telegram messenger)2. Setting up the Python workspace (installing the required libraries, setting up virtualenv)3. Creating a Telegram bot 4. Running the Python application and confirming bot works Chapter 4: Understanding DockerfileChapter Goal: Getting to know Dockerfile, the different constructs and conceptsSub - Topics: Dockerfile, dockerignoreBase image & using them with "from ."RUN/CMD/Environment variablesPractical: Modifying sample Dockerfile to run our Project Chapter 5: Understanding Docker VolumesChapter Goal: Containers are meant for stateless applications. Chapter explains steps needed to persist data Sub - Topics: Problem of stateful applications in containersDocker volumesPractical: Show how data in containers is lost when container is killed and how Docker volumes avoid thisPractical: Modifying our project Dockerfile to add Docker volumes Chapter 6: Docker NetworkingChapter Goal: Overview of Docker networking, linking containersSub - Topics: Docker bridged networkUser defined networksPractical: Create a Database container and link it with our project application server container Chapter 7: Multi Container Applications with Docker ComposeChapter Goal: Building multi-container applications with Docker composeSub - Topics:DockerCompose file referenceLinking/establishing dependencies across containersEnvironment variables across linked containersPractical: Moving our project from separate linked containers to Docker Compose project