Integrating Github Docker & Jenkins
Chirag Vaishnav ????
Helping You Grow | SDE @slice | Ex. ElectricPe | Gold Medalist in B.Tech | Ex. GDSC lead
We are in a Automation world right now and as we all can observe that in present scenario that due this COVID pandemic this Automation will be used more to reduce human dependencies .It is mainly a project of Devops .
Thus , in order to utilise this qurantine time I just read topic to explore things and i came out with this projecting integrating Github , Jenkins and Docker.
AUTOMATION WITH GITHUB , DOCKER & JENKINS
AIM : The main aim behind this was to automate the process of checking testing environment and production environment of github with help of automation tool JENKINS with help of DOCKER container.
This is basic map that we have to create while implementnig .
Procedure :
- Firstly , we have to create a repo. in Github with two branches master and dev in which dev branch will be developer branch and master will be our production environment .
- Then in your Jenkins (an automation tool ) create a job with work to get trigger whenever there is a change in master branch and copy it to a folder and mount it with the docker container of httpd . So that all the changes can be copued to docker container of httpd , ( HTTPD is a server which will deploy our websites so that whatever change we did can be uploaded to website .)
- Now , in your Jenkins create the same job for master our production environment .
- At this point our half work is done and now we have to check that as we do any changes to our github repository it should be deployed to their respective websites . Now, on checking that our testing environment is working properly it is time to merge the dev branch to master branch .
- In order to merge create a job in Jenkins that will merge dev branch to master branch and thus after testing our made changes are uploaded to our main website .
- The Checking is done by QA team manually that if the site is working or not.
THUS , WE HAVE ACHEIVED AN AUTOMATED ENVIRONMENT
* What we have achieved ?
: Now, in this automated environment as soon as we push our changes to github form git it will automatically be deployed for testing and after approval of QA team just by one clock we will be there with our final tested rpoduct which can a website and a many more interesting thing .
HERE IS THE LINK TO MY PROJECT : https://github.com/cv692001/Automation_Project
Sharing some of the pics of my projects :-)
Hope you liked it :-) .
For any further queries please contact me .
Full Stack Developer | BA3 @ Barclays
4 年Nicely explained and very informative Chirag Vaishnav
Business Development and Partnerships Lead @The Sandbox India | Building products with seamless transition from Web2.0 to Web3.0
4 年Great work! Also the article seems very informative!!