MLOPS TASK-1
#task1 #mlops #devopsassemblylines
JOB#1
If Developer push to dev branch then Jenkins will fetch from dev and deploy on dev-docker environment.
JOB#2
If Developer push to master branch then Jenkins will fetch from master and deploy on master-docke environment.
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
Firstly for automation we need that our code pushes as soon as we commit so we made changes in the .git foder in hooks.
For job1 firstly we need to save the github repo and then we have to copy all the data in the folder named as developer and from that we launch a docker image and on that image we mouth the volume with the data which we copied from github
for job 2 we took the dev branch and then we have again did the same thing as in job1 but we triggered it with job 3 as the job 3 completed succesfully it will run again
JOB3
In this its status will be checked by the Quality Assurance team and then after this if statuscode is 200 then they will automatically merge this with the master branch .
in above image we can see the both container running properly..
we also use the Ngork for the poll Scm from github. to jenkins so that it automaticaly will upload the code.