Kalim
Kalim
Objective:
To create an automated CI/CD pipeline using Jenkins for deploying a Dockerized web
application on an AWS EC2 instance.
1. Install Java
sudo apt-get install openjdk-17-jdk
2. Add the Jenkins repository and install Jenkins
#wget -q -O - https://pkg.jenkins.io/debian/jenkins.io.key | sudo apt-key
#add - sudo sh -c 'echo deb http://pkg.jenkins.io/debian-stable binary/ >
/etc/apt/sources.list.d/jenkins.list'
#sudo apt-get update
#sudo apt-get install Jenkins
3. Start Jenkins and open the web interface
sudo systemctl start Jenkins
4. Access Jenkins at http://<your-ec2-ip>:8080 and complete the initial setup by
unlocking it.