docker jenkins CICD - vidyasekaran/current_learning GitHub Wiki
Achievments
- am able to CI/CD a war project using Jenkins - (pull git , build , deploy it in docker hub and deploy in another server (ec2 development server)
a. resources used : https://youtu.be/13FpCxCClLY
b. Install ansible : https://github.com/vidyasekaran/Simple-DevOps-Project (check under ansible, jenkins folder)
c. git project used to build and deploy : https://github.com/vidyasekaran/dockeransiblejenkins
Refer jenkins pipeline : https://github.com/vidyasekaran/dockeransiblejenkins/blob/master/Jenkinsfile, Ansible play book : https://github.com/vidyasekaran/dockeransiblejenkins/blob/master/deploy-docker.yml dev box detail : https://github.com/vidyasekaran/dockeransiblejenkins/blob/master/dev.inv
d. Udemy Course : 100% Hands-on labs on how to create DevOps CI/CD pipelines using Git, Jenkins, Ansible, Docker and Kubernetes on AWS - AR Shankar
e. Edureka helped to setup chain of jobs executing one after another : https://youtu.be/hMlr1KlazBk
NOTE: /var/lib/jenkins/workspace under which jenkins will create a project and build and have artifacts here. After job name whatever path is there we need to mention in jenkins Send build artifacts over SSH
To Integrate Jenkins with Docker
Login docker host and create a user >
Create a user called dockeradmin
useradd dockeradmin passwd dockeradmin
add a user to docker group to manage docker usermod -aG docker dockeradmin
=============================
completed docker cicd using - https://youtu.be/gdbA3vR2eDs git used : https://github.com/vidyasekaran/spring-boot-docker-example.git In AWS create 2 EC2 and installed jenkins in one and docker in another Reference : Udemy Dev ops AK Shankar and his git - vidyasekaran/Simple-DevOps-Project
MobaXterm used to login Ec2 Jenkins UI - admin/guru and dockeradmin/dockeradmin chmod 777 on some files needed.
reference https://www.jenkins.io/doc/pipeline/tour/hello-world/