Category: Data, Kubernetes, github

Create container image that’s has Jenkins installed using dockerfile Or You can use the Jenkins Server on RHEL 8/7 When we launch this image, it should automatically starts Jenkins service in the container.3.

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

In this job ,jenkins first check the language of the code , It It has interpreter of it then It will launch deployment ,Service,and pvc on the kubernetes server to launch the website,If It don’t find the suitable Interpreter , It will show “ Code is not compatable”.

Job 3 will be auto triggered after the successful build of job 2.In this job Jenkins will get the pod name from the kubernetes server, so that it can copy the website code to the pods, so that client can get the website. This job will also triggered by the successful build of job 3,This job is for testing, To test the website is live or not.If not then it will trigger a job that send mail to developer .

Related Articles