https://www.sonarqube.org/downloads/
- jdk1.8
- postgresql & mysql
wget https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-6.7.6.zip
./sonar.sh start
Browse to http://localhost:9000
https://hub.docker.com/_/sonarqube/
docker pull postgres
* 依赖postgres数据库
docker pull sonarqube
docker run --name db -e POSTGRES_USER=sonar -e POSTGRES_PASSWORD=sonar -d postgres
docker run --name sq --link db -e SONARQUBE_JDBC_URL=jdbc:postgresql://db:5432/sonar -p 9000:9000 -d sonarqube
- POSTGRES_USER POSTGRES_PASSWORD 指定postgresql的用户名密码
Browse to http://localhost:9000
mvn sonar:sonar