Integrating GitHub and Jenkins
After installing Jenkins, we will create our first job and integrate it with GitHub. In this section, as in Figure 8.8, we will focus solely on GitHub and Jenkins. Docker Hub will be discussed a little later.
We will use a simple Python application to count the number of hits on a website. Every time you refresh the page, the counter will increment, resulting in an increase in the number of hits on the website.
Note
The code files for the Getting Started
application can be found at the following link: https://github.com/efoda/hit_counter.
The application consists of four files:
app.py
: This is the Python application code. It usesRedis
to keep track of the counts of the number of hits on a website.requirments.txt
: This file contains the dependencies needed for the application to work properly.Dockerfile
: This builds the image with the required libraries...