Building A Pipeline System using Jenkins + Docker
Sandeep Singh Rajawat
Former Business Technology Solutions Associate @ ZS Associate
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.
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 .
JOB 2
By looking at the code or program file, Jenkins should automatically start the respective language interpreter installed image container to deploy code.
JOB 3
Testing the app if it is working or not.
JOB 4
if app is not working , then send email to developer with error messages.
JOB 5
If container where app is running. fails due to any reason then this job should automatically start the container again.
visual build pipeline to see and build the jobs more efficiently.
Business Technology Solutions Associate Consultant @ ZS Pune
4 年Awesome ??