Automation of GitHub , Jenkins & Docker
STEP 1 :
We created container image that’s has Jenkins installed in that image & that image is created by using dockerfile method of image creation.
Above image is the image of Jenkins Container.
Above Image is the image which contains some of the programming language interpreter i.e. Python,PHP,HTML etc.This image we use for testing & deployment environment.
And then we create a job chain of 4 jobs which perform some automation.
STEP 2:
JOB 1: It is the job which launches the jenkins container & that container is linked with github & poll SCM is selected to monitor changes at some particulare time interval.
STEP 3:
JOB 2: It is job which launches the testing environment and copies the data from github to the root directory of web server that we had launched in container & paste it to the the testing environment & updates the data when any change is done by the developer in the code and that code gets commited by local git.We use httpd as Web Server.
STEP 4:
JOB 3: It is the job where we do testing in our customized testing environment that we had created.And unfortunately some error is coming in my case which is not getting resolved by me.It is working on prompt but not working over jenkins dashboard.
STEP 5:
JOB 4 : In this job we send an email to the mentioned recipients when any error comes in the process of testing i.e. the environment already launched or any unstable build.
That E-Mail is send by the help of Jenkins plugin i.e. Email Extension
STEP 6:
In this step we can create an job which monitors the whole automation process.
IMAGES OF BUILD PIPELINE
IMAGES FOR EMAIL SENDING & RECEIVING CONFIRMATION
IMAGES OF GIT & GITHUB