Automating the Docker testing process

In this section, we will explore how to automate testing using Jenkins and Docker. As mentioned earlier, we are going to use GitHub as our repository. We have already uploaded the Dockerfile, test_hitcount.py, and hitcount.py files of our previous example to GitHub at https://github.com/thedocker/testing, which we are to use in the ensuing example. However, we strongly encourage you to set up your own repository at http://github.com, using the fork option that you can find at https://github.com/thedocker/testing, and substitute this address wherever applicable in the ensuing example.

The following are the detailed steps to automate Docker testing:

Configure Jenkins to trigger a build when a file is modified ...

Get Learning Docker - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.