Neuerscheinungen 2018Stand: 2020-02-01 |
Schnellsuche
ISBN/Stichwort/Autor
|
Herderstraße 10 10625 Berlin Tel.: 030 315 714 16 Fax 030 315 714 14 info@buchspektrum.de |
Sathyajith Bhat
Practical Docker with Python
Build, Release and Distribute your Python App with Docker
1st ed. 2018. xv, 186 S. 33 SW-Abb. 235 mm
Verlag/Jahr: SPRINGER, BERLIN; APRESS 2018
ISBN: 1-484-23783-8 (1484237838)
Neue ISBN: 978-1-484-23783-0 (9781484237830)
Preis und Lieferzeit: Bitte klicken
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
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 Who This Book Is For
Intermediate developers/DevOps practitioners who are looking to improve their build and release workflow by containerizing applications
Chapter 1: Introduction to Containerization & Docker Chapter Goal: Brief introduction to containerization, how they compare to virtual machines, Docker and getting the reader ready for the content of the book Sub -Topics 1. What are containers 2. Containers vs Virtual machines 3. Introduction to Docker 4. Installing Docker 5. Introduction to the Project Chapter 2: Docker 101 Chapter Goal: Getting started with Docker, running a sample container Sub - Topics: 1. Checking if Docker is ready 2. Docker client 3. Running/stopping/ connecting a Docker container 4. Dockerfile brief 5. Practical: Running a simple container, hands-on some common Docker commands Chapter 3: Building the Python App Chapter Goal: Getting to understand the project, APIs involved, pre-requisites Sub - 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 Dockerfile Chapter Goal: Getting to know Dockerfile, the different constructs and concepts Sub - Topics: Dockerfile, dockerignore Base image & using them with "from ..." RUN/CMD/Environment variables Practical: Modifying sample Dockerfile to run our Project Chapter 5: Understanding Docker Volumes Chapter Goal: Containers are meant for stateless applications. Chapter explains steps needed to persist data Sub - Topics: Problem of stateful applications in containers Docker volumes Practical: Show how data in containers is lost when container is killed and how Docker volumes avoid this Practical: Modifying our project Dockerfile to add Docker volumes Chapter 6: Docker Networking Chapter Goal: Overview of Docker networking, linking containers Sub - Topics: Docker bridged network User defined networks Practical: Create a Database container and link it with our project application server container Chapter 7: Multi Container Applications with Docker Compose Chapter Goal: Building multi-container applications with Docker compose Sub - Topics: DockerCompose file reference Linking/establishing dependencies across containers Environment variables across linked containers Practical: Moving our project from separate linked containers to Docker Compose project