This is online app to rent your car
mvn archetype:generate
-DgroupId=in.javahome
-DartifactId=pets-app
-DarchetypeArtifactId=maven-archetype-webapp
-DinteractiveMode=false
sudo yum install java-1.8.0-openjdk -y
cd /opt/
sudo wget https://download.sonatype.com/nexus/3/latest-unix.tar.gz
sudo tar -xf latest-unix.tar.gz
sudo mv nexus-3.21.1-01/ nexus3
sudo chown -R ec2-user:ec2-user nexus3/ sonatype-work/
/opt/nexus3/bin/nuxus start
/opt/nexus3/bin/nuxus stop
/opt/nexus3/bin/nuxus restart
vi /opt/nexus3/bin/nexus.rc
run_as_user="ec2-user"
sudo ln -s /opt/nexus3/bin/nexus /etc/init.d/nexus
cd /etc/init.d
sudo chkconfig --add nexus
sudo chkconfig --levels 345 nexus on
sudo service nexus start
cd /opt/
sudo wget http://mirrors.estointernet.in/apache/tomcat/tomcat-8/v8.5.51/bin/apache-tomcat-8.5.51.tar.gz
sudo tar -xf apache-tomcat-8.5.51.tar.gz
sudo mv apache-tomcat-8.5.51 tomcat8
sudo chown -R ec2-user:ec2-user tomcat8/
sudo yum install java-1.8.0-openjdk -y
/opt/tomcat8/bin/startup.sh
/opt/tomcat8/bin/shutdown.sh
sudo yum install java-1.8.0-openjdk-devel -y
sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
sudo yum install jenkins -y
sudo chkconfig jenkins on
sudo service jenkkins start
sudo yum install java-1.8.0-openjdk -y
cd /opt/
sudo wget https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-7.1.zip
sudo unzip sonarqube-7.1.zip
sudo mv sonarqube-7.1 sonar7
sudo rm sonarqube-7.1.zip
sudo chown -R ec2-user:ec2-user sonar7/
/opt/sonar7/bin/linux-x86-64/sonar.sh start
Make sure this entry is present in sonar.sh
RUN_AS_USER="ec2-user"
sudo yum install docker -y
sudo usermod -a -G docker ec2-user. (Add ec2-user to docker group)
sudo chkconfig docker on
sudo service docker start
// exit and login again