Shiv jayanti Devops Project
- Launch EC2 instance
Public IP address 54.165.122.101
Install JAVA and Jenkins. Unlock Jenkins by using command
sudo cat /var/lib/jenkins/secrets/initialAdminPassword and then create user
- Install docker - sudo apt install docker.io -y
- After installation run below command to give permission other users to docker
sudo chmod 666 /var/run/docker.sock
- Install sonarqube. Use command
docker run -d -p 9000:9000 sonarqube:lts-community
- Verify Sonarqube is up and running and Access sonarqube by changing password and then generate token.
- Install trivy. create shell script trivy.sh
sudo apt-get install wget apt-transport-https gnupg lsb-release wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | sudo apt-key add - echo deb https://aquasecurity.github.io/trivy-repo/deb $(lsb_release -sc) main | sudo tee -a /etc/apt/sources.list.d/trivy.list sudo apt-get update sudo apt-get install trivy
- Install and configure plugins in Jenkins for docker and sonarqube.
- Create jenkins pipeline
After successful pipeline run
access Nginx by entering EC2 instance public IP followed by 8081 port
EC2 instance public IP followed by 8081 port and our yes.html file
Do you want to follow Chhatrapati Shivaji Maharaj's ideology?" If you try to click on No then it will not allow you click on No. if you click on yes it will go ahead
lets fix a date. select any date. e.g. 19th February
after fixing date it will land to below page