Jenkins Installation in Ubuntu
Prerequisites for the project:
Update the Ubuntu machine connected to the AWS instance (t2-micro) through Git bash.
ssh -i "PROJECT001.pem" ubuntu@ec2-54-88-172-177.compute-1.amazonaw..
Update system:
root@ip-172-31-25-199:/home/ubuntu# sudo apt update
Install Docker on the instance:
root@ip-172-31-28-27:~# sudo apt-get install docker.io
Install Docker-Compose:
root@ip-172-31-25-199:/home/ubuntu# sudo apt-get install docker-compose
Install Java for Jenkins installation:
root@ip-172-31-25-199:/home/ubuntu# sudo apt install openjdk-11-jre
Jenkins Installation:
Follow the following link--> https://www.jenkins.io/doc/book/installing/linux/
Install the weekly release:
Docker Installation verification:
Jenkins Installation verification:
User Privilege:
root@ip-172-31-28-27:~# sudo usermod -aG docker $USER root@ip-172-31-28-27:~# sudo usermod -aG docker jenkins
Reboot the system:
Browse the Jenkins using the public IP address of the EC2 Instance:
Jenkins port:8080, open the following port in ec2 instance security inbound.
Access the public IP for Jenkins using port:8080
Integrate the password for Jenkins:
\========================================================
Have a Nice Day!