Creating a deployment pipeline
In the previous recipes of this chapter we become familiar with Docker and Kubernetes. It's now time to wield the power of these technologies by creating a deployment pipeline.
Whether we are deploying to a staging environment (Continuous Delivery), or directly to production (Continuous Deployment) a robust and automated pipeline is a powerful tool that should form the core of our DevOps strategy.
In this recipe, we're going to create a deployment pipeline for our system.
Note
Requires Bash
This recipe uses Bash scripts (a common practice in creating build pipelines). Therefore it requires a machine capable of running Bash to be effectively implemented (Linux, Mac, and Windows 10 Pro support the Bash shell).
Getting ready
For this recipe, we are going to be using the Jenkins CI/CD system as our build and deployment tool, so we will need to install this first. We can head over to https://jenkins.io/ to download the appropriate binary for our system. Once we have...