MlOps &DevOps AL TASK 1

MlOps &DevOps AL TASK 1

❗️TASK-1❗️

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-docker 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

Requirements For The Task :-

  1. Configure the Jenkins server .
  2. Create the GitHub Account .
  3. Configure the Git Software in the Local System .
  4. Configure the Docker Environment .

Let's Start first we have to create the repository on the GitHub.

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

After, That we need to clone it into the our local SCM system "Git", so we have to run the Git bash .

No alt text provided for this image

After that we need to create the set the hooks like "post commit" in the ".git" repository.

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

After that we have to configure the another branch called "Dev" for some testing purpose.

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

After that we have to setup the our first job

job 1
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

Save it and configure the job 2 similarly .

Job 2
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

Save this job .

After that we have to configure the job 3.

Job 3
No alt text provided for this image


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

save this job and push the code to the git hub.

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

in the above screenshot we see the both environment created.

No alt text provided for this image

!!! TASK COMPLETED !!!

!!! THANK YOU FOR READING !!!

To view or add a comment, sign in

More articles by Priyanshu Goyal

Others also viewed

Explore content categories