Shiv jayanti Devops Project

  1. Launch EC2 instance

Public IP address 54.165.122.101

  1. Install JAVA and Jenkins. Unlock Jenkins by using command

    sudo cat /var/lib/jenkins/secrets/initialAdminPassword and then create user

  1. Install docker - sudo apt install docker.io -y
  1. After installation run below command to give permission other users to docker

sudo chmod 666 /var/run/docker.sock

  1. Install sonarqube. Use command

docker run -d -p 9000:9000 sonarqube:lts-community

  1. Verify Sonarqube is up and running and Access sonarqube by changing password and then generate token.

  1. 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

  1. Install and configure plugins in Jenkins for docker and sonarqube.
  1. Create jenkins pipeline

  1. After successful pipeline run

    1. access Nginx by entering EC2 instance public IP followed by 8081 port

  1. 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