DevOps Practice Project

DevOps Practice Project

I am doing DevOps training under Mr Vimal Daga. By the learning of this training which is currently running. In just 8 sessions i gain some knowledge about Some DevOps tool and their Integrations. I am sharing my assignment which is given by Mr Vimal daga in the training.

My assignment is to create an Environment for Quality Assurance Team and Production Team. QAT check the website design built by developer and put into a server.

I am doing this assignment by Integration of many tools-

git :- In local repository i built some basic web page then like in companies other developer also work on same project i make a branch of other developer as "sidedev" and keeping my code as main webpage in "master" branch .I also sync repository with github repository.I use git hook "post-commit" to sync automatically with github when i commit in local repository.

github:- in github repository we build two branches as in git repository. in github i also use webhooks for giving information to jenkins that there is something change in repository. To use webhooks i need link of jenkins WebUI link which is private so i am doing private IP to public by using ngrok tunnel.

github repository link - https://github.com/amang1451/devopsal5m.git

master repository
sidedev respository
webhook

Jenkins :- In jenkins i build three jobs as following-

jenkins jobs


JOB#1

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

sidedev job code


JOB#2

If Developer push to *master* branch then Jenkins will fetch from *master* and deploy on *master-docker* environment.Both *sidedev-docker* and *master-docker* environment are on different docker containers.

master job code

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 *sidedev* branch to *master* branch and trigger #job 2

No alt text provided for this image
No alt text provided for this image

Docker-I use docker container for web servers. I use docker containers as written in job2 and job3.

No alt text provided for this image

#vimaldaga #iiec #docker #devops #linuxworld #jenkins #git #github #righteducation




To view or add a comment, sign in

Others also viewed

Explore content categories