Integration of ML and DL with DevOps

Problem Statement

Machine learning Docker file
Deep learning Docker file

Job1

pulls from github repo and sends it to code folder*

** sudo cp -rvf * /code

job 1 output

Job2

** ml=$(sudo cat /root/code/ML/train.py | grep sklearn | wc -l)
dl=$(sudo cat /root/code/DL/train.py | grep keras | wc -l)
if [ $ml -gt 0 ] && [ $dl -eq 0 ]
then
sudo docker run -dit -v /code:/code ml:v1
echo “ML”
elif [ $dl -gt 0 ]
then
sudo docker run -dit -v /code:/code dl:v1
echo “DL”
fi
sudo cp -r /root/code/DL /var/lib/jenkins/workspace/j2

job2 output
once the task is done it will send the mail to client

Job3

job 3 output
finally!

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store