安装docker
安装docker
https://blog.csdn.net/BThinker/article/details/123358697
加入阿里云镜像
https://blog.csdn.net/TommyXu8023/article/details/113291112
{ "registry-mirrors": ["https://alzgoonw.mirror.aliyuncs.com"] }
安装sonarqube
https://www.cnblogs.com/hzxll/p/17482842.html
https://zhuanlan.zhihu.com/p/653213853
启动sonarque
#执行前 xxx.xxx.xxx.xxx 修改为服务器IP地址,并且需要提前在数据库中手动创建 sonar 数据库
docker run -it --name sonarqube -p 9000:9000 -p 9092:9092 --link=mysql5.7:mysql5.7 -e SONARQUBE_JDBC_USERNAME=sonar -e SONARQUBE_JDBC_PASSWORD=sonar -e SONARQUBE_JDBC_URL="jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true&useConfigs=maxPerformance&useSSL=false" sonarqube:7.8-community
elasticsearch 启动错误 bootstrap checks failed
` ``
bootstrap checks failed
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]