Automation on Deploying Website

Automation on Deploying Website

Hey Guys , I m very happy to inform you all that after all 4 sleepless nights searching only about that endless errors that ended finally after searching a lot , reading blogs and it finally ended with a boosted confidence over concepts and also that everything is possible if we are determined .It is basically Devops.

No alt text provided for this image

So, in this project i basically integrated github , Automation tool Jenkins and deployed mrfywebsite over docker container .

No alt text provided for this image
                                  AIM

In this project i just did automation which checks that the every change made in git repo is copied to the website and also if their is any error will give email to the owner regarding the fail of website also it will keep check over container every minute and if it goes down it restart it automatically .

Thus , we can utilise automation for a lot of things.

                                  PROCEDURE

* STEP 1 : So , with the help of Dockerfile just configure it to make a container to start he requiered services .Please have a view on below link for Dockerfile repository .

* STEP 2 : Now , with the help of Dockerfile build the image and start the docker services and while starting container use [ -- privileged ] to make it enable to use root powers also .

No alt text provided for this image

* STEP 3 : As now service is started make a git repo where you will update and push the changes to website .

No alt text provided for this image

* STEP 4 : Now it's time to create JOB-1 which will be trigerred if any changes are made in github with the help of Webhook and also will copy it to the files directory in Redhat .

No alt text provided for this image

* STEP 5 : We have to trigger JOB-2 after succesful build of JOB-1 this will build a container for us in which we will mount the files directory so that any chnges in github will be copied to container which will be deployed to our website running over container also.

No alt text provided for this image

*STEP 6 : It's time for our JOB-3 which will be trigered after succesful build of JOB-2 it will check whether the website is working or not with the help of curls command and if not working will mail the user.

#This step is very important as it informs the user about site failure .

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

* STEP 7 : Now to add an extra check just create JOB-4 which will keep a check every minute over the container over which the website is deployed and if it not works it restarts it . This is a very required job .


No alt text provided for this image


Now, its completed our work finoshed here and aour work will become automated and if any problem occur it will restart it by itself and any error in file will inform us by mailing the administrator .

My project Github Link : https://github.com/cv692001/Automation_Project_2

Hope you like it :-). For any queries feel free to contact me at 19uec128@lnmiit,ac.in



Lakshit Somani

SDE at Samsung R&D | ET Campus Coding Star '22 | Full Stack Developer | Top 10% Leetcode

4 年

Great job Chirag Vaishnav . Please can you help me how did you started. As I want to do the same due to interest.

Param Parikh

ASE Intern @Tekion Corp | Codechef 1940 | LNMIIT '23

4 年

great job chirag

Ahsan Rizvi

Process Engineer, Product Manager, Product Marketing Manager, Business Strategist

4 年

Hey chirag let’s connect as I have some inquiries and hoping we can find answers. Thanks

Soham Baijal

Full Stack Developer | BA3 @ Barclays

4 年

Good work Chirag Vaishnav

要查看或添加评论,请登录

社区洞察

其他会员也浏览了