To wrap up this chapter on Docker and Jenkins, let's walk through the steps of creating a template for a real-world Dockerized node application. The following is what we will do:
Prepare our application:
- Create a new repo on GitHub
- Clone the repo to our development workstation
- Create our application files
- Push our application files up to GitHub
Create and test the Jenkins job that will build our Dockerized node application:
- Create a new Jenkins job that utilizes the GitHub repo
- Test our Jenkins job that will pull the repo, build the app, test it, and publish the image
- Celebrate our success!
Let's begin by preparing our application.
The first thing we want to ...