Book Image

Continuous Integration, Delivery, and Deployment

By : Sander Rossel
Book Image

Continuous Integration, Delivery, and Deployment

By: Sander Rossel

Overview of this book

The challenge faced by many teams while implementing Continuous Deployment is that it requires the use of many tools and processes that all work together. Learning and implementing all these tools (correctly) takes a lot of time and effort, leading people to wonder whether it's really worth it. This book sets up a project to show you the different steps, processes, and tools in Continuous Deployment and the actual problems they solve. We start by introducing Continuous Integration (CI), deployment, and delivery as well as providing an overview of the tools used in CI. You'll then create a web app and see how Git can be used in a CI environment. Moving on, you'll explore unit testing using Jasmine and browser testing using Karma and Selenium for your app. You'll also find out how to automate tasks using Gulp and Jenkins. Next, you'll get acquainted with database integration for different platforms, such as MongoDB and PostgreSQL. Finally, you'll set up different Jenkins jobs to integrate with Node.js and C# projects, and Jenkins pipelines to make branching easier. By the end of the book, you'll have implemented Continuous Delivery and deployment from scratch.
Table of Contents (15 chapters)

Installing a Virtual Machine

As mentioned, we will need a Virtual Machine. We are going to use Oracle VM VirtualBox to host our VMs, which you can download at: https://www.virtualbox.org (I have downloaded the VirtualBox 5.1.12 platform package for Windows). Download the version that is applicable to you on the downloads page and install it on your computer. I've left all the defaults as they were, but you can change them as you see fit (at your own risk). If all goes well, you should soon see the Oracle VM VirtualBox Manager, as follows:

To create a new VM, click the New button. You then get to pick a name (I have called my VM CI server), a type (Linux), and a version (Ubuntu (64-bit), which is the default). The next window lets you specify the amount of memory. The default is 1 GB, but I recommend making that 4 GB (4096 MB), unless you are only going to run GitLab on it...