Building, testing, and pushing Docker images inside Dockerized build nodes

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 ...

Get Docker Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.