- AWS Acccount.
- Create Redhat EC2 t2.medium Instance with 4GB RAM.
- Create Security Group and open Required ports.
- 8080 got Jenkins, ..etc
- Attach Security Group to EC2 Instance.
- Install java openJDK 1.8+ for SonarQube version 7.8
sudo hostnamectl set-hostname ci
sudo yum -y install unzip wget tree git
sudo yum install java-11-openjdk -y
sudo su - ec2-user
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
cd /etc/yum.repos.d/
sudo curl -O https://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo yum -y install jenkins --nobest
sudo systemctl start jenkins
sudo systemctl enable jenkins
sudo systemctl status jenkins
public-ip:8080
curl ifconfig.co
sudo cat /var/lib/jenkins/secrets/initialAdminPassword