Book Image

DevOps for Web Development

By : Mitesh Soni
Book Image

DevOps for Web Development

By: Mitesh Soni

Overview of this book

The DevOps culture is growing at a massive rate, as many organizations are adopting it. However, implementing it for web applications is one of the biggest challenges experienced by many developers and admins, which this book will help you overcome using various tools, such as Chef, Docker, and Jenkins. On the basis of the functionality of these tools, the book is divided into three parts. The first part shows you how to use Jenkins 2.0 for Continuous Integration of a sample JEE application. The second part explains the Chef configuration management tool, and provides an overview of Docker containers, resource provisioning in cloud environments using Chef, and Configuration Management in a cloud environment. The third part explores Continuous Delivery and Continuous Deployment in AWS, Microsoft Azure, and Docker, all using Jenkins 2.0. This book combines the skills of both web application deployment and system configuration as each chapter contains one or more practical hands-on projects. You will be exposed to real-world project scenarios that are progressively presented from easy to complex solutions. We will teach you concepts such as hosting web applications, configuring a runtime environment, monitoring and hosting on various cloud platforms, and managing them. This book will show you how to essentially host and manage web applications along with Continuous Integration, Cloud Computing, Configuration Management, Continuous Monitoring, Continuous Delivery, and Deployment.
Table of Contents (16 chapters)
DevOps for Web Development
About the Author
About the Reviewer

Creating your first Docker container

Just to get a feel of Docker, let's run a sample hello-world container, which we tried to do earlier without success.

The hello-world image is not available locally, so it will be fetched from Docker Hub:

            [root@localhost Desktop]# docker run hello-world
            Unable to find image 'hello-world:latest' locally
            latest: Pulling from hello-world
            d59cd4c39e50: Pull complete 
            f1d956dc5945: Pull complete 
            Digest:         sha256:4f32210e234b4ad5cac92efacc0a3d602b02476c754f13d517e1ada048e5a8ba
            Status: Downloaded newer image for hello-world:latest
            Hello from Docker.

This message shows that your installation appears to be working correctly.

To generate this message, Docker performs the following steps:

  1. The Docker client communicates with the Docker daemon.

  2. Then Docker daemon pulls the hello-world image from Docker Hub.

  3. After that, the Docker daemon...