Task 2 MLOPS

Menghanibhanvi
2 min readJul 14, 2020

TASK DESCRIPTION:-

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

For that create a work space in the root folder using cmd #mkdir task2. Then go inside the folder using cmd #cd task2 and then create docker file #geditDockerfile write the docker file code and run :

docker build -t myjenkins:latest /root/task2

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

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

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

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 ).

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

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

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

--

--

Menghanibhanvi

Stop reading only to start writing. Views are my own.