Skip to content

mansi-dadheech/mlops_task2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Task-2

This task is about again integrating jenkins,git,docker with some new concepts like sending mail and automatic lauching a new container if container fails. For building this steps that we have to follow:

1. Create container image that’s has Jenkins installed using dockerfile.

Dockerfile: 1

For building image:

#docker build -t <image_name> <path_of_dockerfile>

a b

Launch a container through this image.

c

2. When we launch this image, it should automatically starts Jenkins service in the container.

Screenshot (391) Screenshot (392)

After launching jenkins: 3. Create a job chain of job1, job2, job3 and job4 using build pipeline plugin in Jenkins

4. Job1 : Pull the Github repo automatically when some developers push repo to Github.

2 3

5. Job2 : By looking at the code or program file, Jenkins should automatically start the respective language interpreter install image container to deploy code ( eg. If code is of PHP, then Jenkins should start the container that has PHP already installed ).

5 6

6. Job3 : Test your app if it is working or not.

7

7. Job4 : if app is not working , then send email to developer with error messages.

8

If any failure occur a mail will be send to developer like this:

WhatsApp Image 2020-06-28 at 14 46 10

Build Pipeline:

e

8. Create One extra job job5 for monitor : If container where app is running. fails due to any reson then this job should automatically start the container again.

4

Thank You!!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages