MlOps And DevOps Task 1
Task Overview:
JOB#1
If Developer push to dev branch then Jenkins will fetch from dev and deploy on the dev-docker environment.
JOB#2
If Developer push to master branch then Jenkins will fetch from master and deploy on the master-docker environment.
both dev-docker and master-docker environments are on different docker containers.
JOB#3
Manually the QA team will check (test) for the website running in the dev-docker environment. If it is running fine then Jenkins will merge the dev branch to master branch and trigger #job 2
So, now I will tell you how I completed this task.
Step:- 1
Uploading code to GitHub
Firstly create one repository on Github and be sure do not check on Initialize this repository with a README option, then create the repository,
then create one folder in your desired location as here I choose Desktop,
then open gitbash inside it,
and then run git init command as shown below:-
then create one file and then add it,
at that time if run git status command then you are seen as shown below,
so, now I commit first in the master branch as shown below:-
then, upended some more text then do second commit as shown below:-
then, run some more command as shown below:-
Step:- 2
Now, here the use of JENKINS come
Firstly, here you create first M_T1_J1 {JOB} as shown below:-
then, I created second M_T1_J2 {JOB} as shown below:-
then, I created M_T1_J3 {JOB3} as shown below:-
job run successfully as shown below:-
So finally, the docker container successfully created as shown below:-