Building A Pipeline System using Jenkins + Docker

Building A Pipeline System using Jenkins + Docker

No alt text provided for this image

If you just want to get going quickly: we use Jenkins to automate Continuous Integration tasks, and run it in a Docker container so its super-easy to setup and maintain. We also use Docker to run parts of the CI pipeline (such as builds or testing). Here, with a single command, we spin up a Docker container that contains Jenkins and the Docker executable, and connect it to the host daemon to avoid any conflicts.

First I created container image that’s has Jenkins installed using dockerfile .When we launch this image, it will automatically starts Jenkins service in the container.

No alt text provided for this image

After launching of container unlock the jenkins with the given password and install the pulgins needed for the following jobs like github and build pipeline.

JOB 1

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

For this Linking of the github repo with Jenkins to fetch the code must be done .

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

JOB 2

By looking at the code or program file, Jenkins should automatically start the respective language interpreter installed image container to deploy code.

No alt text provided for this image

JOB 3

Testing the app if it is working or not.

No alt text provided for this image

JOB 4

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


No alt text provided for this image

JOB 5

If container where app is running. fails due to any reason then this job should automatically start the container again.

No alt text provided for this image

visual build pipeline to see and build the jobs more efficiently.

No alt text provided for this image


Muskan Agarwal

Business Technology Solutions Associate Consultant @ ZS Pune

4 年

Awesome ??

要查看或添加评论,请登录

Sandeep Singh Rajawat的更多文章

社区洞察