Project-2. CI/CD Pipeline Using Jenkins and Docker

👋 Hello! I'm passionate about DevOps & AWS Cloud. I have over 1.4 years of experience in IT Security and Cloud field. I'm proficient in a variety of cutting-edge technologies and always motivated to expand my knowledge and skills. Let's connect and grow together!
OS: Linux/Unix, Mac, Windows Cloud: AWS Containers: Docker Version Control: GIT, GitHub, GitLab, Bitbucket. CI/CD Tools: Jenkins Container Orchestration: Kubernetes Languages: Python, PowerShell, Shell scripting IAC: Terraform, Ansible, Chef, AWS Cloud Formation Web: Apache, Nginx, Tomcat
Open to opportunities. 🌱 #DevOps #AWS #CI/CD #Containers #Python #IaC #Cloud #Blogging #OpenToOpportunities
📢🎡Project - Creating CI/CD pipeline for web app
🚩Prerequisite-: Git, GitHub, Docker, Docker Hub, Jenkins,
🚀Description:-
Implemented CI/CD pipelines for a web app using Docker containers, Jenkins automation, and AWS services to streamline code deployment, ensuring efficiency, scalability, and reliability.
Working
🎢Working Step🎢
Step-1. Create EC2 Instance
Step-2. Setup and Install Jenkins
curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | sudo tee \
/usr/share/keyrings/jenkins-keyring.asc > /dev/null
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.asc] \
https://pkg.jenkins.io/debian-stable binary/ | sudo tee \
/etc/apt/sources.list.d/jenkins.list > /dev/null
sudo apt-get update
sudo apt-get install jenkins
Step-3. Clone the code from the GitHub Repository
git clone https://github.com/Fir3eye/Node-todo-project.git
Step-4. Build code and Test Locally
sudo apt install docker.io
# After installing docker build code
docker build -t myimg .
docker run -d -p 8000:8000 myimg
# check images
docker images
# check container are running or not
docker ps -a
# stop container
docker stop <container_id>
# Delete Container
docker rm <container_id>
# Delete Images
docker rmi <container_id>
Step-5. Add inbound and outbound rules on EC2 Instance




Step-6. Integrate Jenkins with GitHub
Step-7. Create a Job on Jenkins
Step-8. Build and Test







