Integrating Github and Jenkins using Docker:Automating the flow(CI/CD)-1

Sri Sravya
3 min readJul 10, 2020

Softwares Required:

  1. Jenkins
  2. Git
  3. Github
  4. Docker on rhel-8

Project performed in clean steps :

we create three jobs in Jenkins in which all of them has specific functionalities.

JOB#1

If Developer push to dev branch then Jenkins will fetch from dev and deploy on dev-docker environment.

Poll Scm for github
containers launching and running

JOB#2

If Developer push to master branch then Jenkins will fetch from master and deploy on master-docker environment.

test-job

Both dev-docker and master-docker environment are on different docker containers.

JOB#3

Manually the QA team will check (test) for the website running in dev-docker environment. If it is running fine then Jenkins will merge the dev branch to master branch and trigger #job 2

choose Git publisher
Final Step

Conclusion:

1.This entire process which is auotmated serves a great purpose when it comes to developers team and production team without falling into mess and saving their lot of time.

2.This can be automated in QA testing part without being done manually.

In the next article,even the QA team part gets auotmated :)

This task is performed as a part of MLops Internship programming under Mr.Vimal Daga Sir,Linux World,Jaipur.

Happy Learning !

Feel Free to Suggest anything!

Can Connect with me on LinkedIn:

--

--