Prasannamugundhan / devops_pipeline_demo

Complete DevOps CI/CD Pipeline Demo with Jenkins & Docker

Home Page:https://www.binpipe.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Demonstration for CI/CD deployment pipeline using Jenkins

| Subscribe & Learn DevOps for Free! BINPIPE


Learning Resources for DevOps, SRE, Cloud & Engineering Management

BINPIPE Learn DevOps! BINPIPE

Deliverables: This demonstration will simulate a completely automated CI/CD deployment pipeline using Jenkins. It will essentially do the following steps (phases):

  1. Pull the source code for a Java EE based Project from GIT. (SCM AUTOMATION)
  2. Compile (build) the code using Maven to generate the .war file (BUILD AUTOMATION)
  3. Run Test cases & ensure they pass. (TEST AUTOMATION)
  4. Copy the .war to a Docker build workspace (DEPLOYMENT AUTOMATION)
  5. Build a Docker image for Jboss server to run the war file. (DEPLOYMENT AUTOMATION)
  6. Deploy the Docker container on a target node. (DEPLOYMENT AUTOMATION)

Prerequisites: This demonstration has the following prerequisites:

  1. Jenkins should be installed with git, maven and shell plugins.
  2. In Jenkins Server install using # yum -y install git maven docker before trying out this demo.
  3. Changes to be made for Jenkins to be able to run docker.
echo "jenkins ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
echo 'Defaults:jenkins !requiretty' >> /etc/sudoers
setenforce 0 # Else disable SELINUX in /etc/sysconfig/selinux  and reboot

Execution: Add a Jenkins Build Job As per the below screenshot and build it:

  • Note: Add the build commands from the jenkins_build_commands.md file.

Jenkins build job Jenkins build job Jenkins build job Jenkins build job Jenkins build job


BINPIPE aims to simplify learning for those who are looking to make a foothold in the industry. 
Write to me at nixgurus@gmail.com if you are looking for tailor-made training sessions. 
For self-study resources look around in this repository, the Binpipe Blog and Youtube Channel.

đź“’ Maintainer: Prasanjit Singh | www.binpipe.org


License

About

Complete DevOps CI/CD Pipeline Demo with Jenkins & Docker

https://www.binpipe.org


Languages

Language:Shell 48.3%Language:Batchfile 37.7%Language:HTML 10.9%Language:CSS 1.5%Language:Java 1.2%Language:Dockerfile 0.5%