6
sonar代码质量分析相关
source link: http://quangelab.com/sonar-tip/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
sonar代码质量分析相关 – ruquan.z – github技术博客,成长在于积累。
sonar代码质量分析相关
###docker相关
部署sonar
在dockerhub中搜索sonar镜像 找到带official
标签的
####下载镜像
docker pull sonarqube //默认最新版
docker pull sonarqube:alphine //:后面跟的是标签或版本号
docker run -d --name sonarqube -p 9000:9000 -p 9092:9092 sonarqube
sudo docker exec -ti sonarqube sh//可以进入刚才启动的docker
可以通过http://localhost:9000/ 网址访问sonar服务器 帐号密码 都为admin
sonarQube scanner 这是执行执行分析的工具
具体配置 查看上面连接即可
//先cd到某项目下面 然后
/private/etc/sonar-scanner-2.7/bin/sonar-scanner -Dsonar.login=admin -Dsonar.password=admin
Written on October 8, 2016
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK