Devops task 2
a):- First i create the my own docker images of Jenkins using the docker file . In which installed the curl, sudo , wget, jenkins, and at the last i use /bin/bash by which my container will be keep on continue, will not be terminated/exited. this all the task perform on the "centos:latest".
b):- Then i build the docker file by which by own created Jenkins docker file created. And by default i expose it so from ant where and from any network i can access my Jenkins only condition is my Jenkins image should run within any system.
c):- Then i launch launch the my own created docker image of jenkins.
d):- Now this is my full flash new Jenkins.
g):- Then i created the 4 jobs which has dependent to up stream job.
h):- There use of web-hooks first set the web-hook of git hub then set also the local hook. Now from here job_1 role come in play. As the developer commit the code my job_1 go to the Github and download the code and copy it .
i):- then job_2 run automatically when job_1 run , this is my testing system. i launch launch the site working great no any issue.
j):- Now because of my site working new my new job, job_3 role come in play , the working of this job is when my site give 200 code then site working fine and launch the container to production site if not then process will terminated. And give error message of site not working.
k):- Now from there my job_4 come in play , if site is not working proper it will run and sent the mail to the developer.
l):- Now job_5 is my my Q&A team it keep on eye on the production system job if production system site goes down it will run automatically.
Completed....!