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 built-in delivery pipelines

Jenkins 2 provides a way to create delivery pipelines using a domain-specific language (DSL).

The steps for creating a built-in delivery pipeline are as follows:

  1. Go to the Jenkins dashboard and click on New Item.

  2. Enter an item name, say PetClinic-Pipeline, and select Pipeline, as shown in the following screenshot, and click on OK:

  3. In case you have an existing pipeline available, you can create a new pipeline by copying from it.

  4. Go to Advanced Project Options. For the purpose of learning, input echo 'Hello from Pipeline Demo' in the Script box.

  5. Click on Save to save the configuration:

  6. As we haven't created any stage, we will get a warning, as shown in the following screenshot. However, we can execute the pipeline for demo purposes:

  7. Click on the Build Now. Verify the Console Output. We can see the script execution completing successfully:

Creating scripts

Let's go step by step and learn how we can create a script. To make things easier, refer to the Pipeline...