Автор: Bernd Oggl, Michael Kofler
Издательство: Rheinwerk Publishing Inc.
Год: 2023
Страниц: 496
Язык: английский
Формат: epub (true)
Размер: 10.27 MB
Learn the ins and outs of containerization in Docker with this practical guide! Begin by installing and setting up the platform. Then master the basics: get to know important terminology, understand how to run containers, and set up port redirecting and communication. You’ll learn to create custom images, work with commands, and use key containerization tools. Gain essential skills by following exercises that cover common tasks from packaging new applications and modernizing existing applications to handling security and operations.
The book is divided into three parts:
• Part I introduces Docker. On the basis of numerous examples, you’ll learn how to use the docker and docker-compose commands in a meaningful way and what the syntax of the Dockerfile and docker-compose.yml files looks like.
• Part II presents important images that can serve as a basis for your own projects. These include the following:
• Alpine Linux
• Apache and Nginx web servers (including proxy setup with Traefik and Let’s Encrypt configuration)
• Database servers, MySQL/MariaDB, Mongo Database (MongoDB), PostgreSQL, and Redis
• Programming languages, jаvascript (Node.js), Java, PHP: Hypertext Preprocessor (PHP), Ruby, and Python
• Web applications, WordPress, Joomla, and Nextcloud
• Part III demonstrates the use of Docker in practice. We’ll show you both how to develop modern web applications with Docker in a particularly efficient way, and how to transform existing projects with all their legacy issues into more maintainable Docker projects.
Two chapters on using GitLab with Docker and on continuous integration (CI) and continuous delivery (CD) demonstrate new paradigms and tools for developing software in teams.
The three Hello World examples for Docker presented in this chapter are intended to do a little more than just output the much-quoted string to the screen: We want to start one web server at a time, which will provide a web page that displays the current time and a value for the server’s utilization. In this context, we use three different programming languages. To keep the program code that’s independent of Docker and unimportant for this example as short as possible, we’ll refrain from separating frontend and backend code, as a modern web application would do. You can consider this chapter rather as a proof of concept. Examples of modern web applications can be found in Part III of this book.
1) Installation and configuration
2) Dockerfiles
3) Docker commands
4) Rootless Docker
5) Project migration
6) GitLab
7) Grafana
8) Kubernetes
9) Container security
10) Continuous integration and delivery (CI/CD)
11) Docker images: servers, databases, programming languages, and web applications
Скачать Docker: Practical Guide for Developers and DevOps Teams