{"id":10443,"date":"2023-04-06T14:12:34","date_gmt":"2023-04-06T06:12:34","guid":{"rendered":"http:\/\/123.57.164.21\/?p=10443"},"modified":"2023-09-15T12:42:57","modified_gmt":"2023-09-15T04:42:57","slug":"%e4%bd%bf%e7%94%a8docker-%e6%90%ad%e5%bb%ba-sonarqube-%e4%bb%a3%e7%a0%81%e8%b4%a8%e9%87%8f%e7%ae%a1%e7%90%86%e5%b9%b3%e5%8f%b0","status":"publish","type":"post","link":"https:\/\/92it.top\/?p=10443","title":{"rendered":"\u4f7f\u7528docker \u642d\u5efa SonarQube \u4ee3\u7801\u8d28\u91cf\u7ba1\u7406\u5e73\u53f0"},"content":{"rendered":"\n<p><strong>\u4e00\u3001\u6982\u8ff0<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>Sonar\u662f\u4e00\u4e2a\u7528\u4e8e\u4ee3\u7801\u8d28\u91cf\u7ba1\u7406\u7684\u5f00\u6e90\u5e73\u53f0\uff0c\u7528\u4e8e\u7ba1\u7406\u6e90\u4ee3\u7801\u7684\u8d28\u91cf\uff0c\u53ef\u4ee5\u4ece\u591a\u4e2a\u7ef4\u5ea6\u68c0\u6d4b\u4ee3\u7801\u8d28\u91cf\uff0c\u901a\u8fc7\u63d2\u4ef6\u5f62\u5f0f\uff0c\u53ef\u4ee5\u652f\u6301\u5305\u62ecjava\u3001python\u3001C#\u3001go\u3001scala\u3001kotlin\u3001JavaScrip\u3001Groovy\u7b49\u4e8c\u5341\u51e0\u79cd\u7f16\u7a0b\u8bed\u8a00\u7684\u4ee3\u7801\u8d28\u91cf\u7ba1\u7406\u4e0e\u68c0\u6d4b\u3002<\/p>\n\n\n\n<p>\u4e0b\u9762\u4f7f\u7528docker \u542f\u52a8\u4e00\u4e2a sonarqube , \u4fbf\u4e8e\u5feb\u901f\u4f53\u9a8c\u6b64\u5e73\u53f0\u63d0\u4f9b\u7684\u529f\u80fd\u3002<\/p>\n\n\n\n<p><strong>\u4e8c\u3001\u5b89\u88c5 SonarQube<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u4f60\u53ef\u4ee5\u4e0b\u8f7dzip\u6587\u4ef6\u7684\u4f20\u7edf\u65b9\u5f0f\u5b89\u88c5SonarQube\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528docker \u955c\u50cf\u7684\u65b9\u5f0f\u542f\u52a8 SonarQube\u5bb9\u5668\u3002<\/p>\n\n\n\n<p><strong>1\u3001 <a rel=\"noreferrer noopener\" href=\"https:\/\/links.jianshu.com\/go?to=https%3A%2F%2Fwww.sonarqube.org%2Fdownloads%2F\" target=\"_blank\">\u4e0b\u8f7dzip\u6587\u4ef6\u5b89\u88c5SonarQube https:\/\/www.sonarqube.org\/downloads\/<\/a><\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2023\/04\/image-15-1024x721.png\" alt=\"\" class=\"wp-image-10444\" width=\"472\" height=\"332\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-15-1024x721.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-15-300x211.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-15-768x541.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-15-1536x1082.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-15-830x585.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-15-230x162.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-15-350x246.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-15-480x338.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-15.png 1650w\" sizes=\"(max-width: 472px) 100vw, 472px\" \/><\/figure><\/div>\n\n\n\n<ul><li>\u4e0b\u8f7d\u4e0a\u56fe\u4e2d\u7684zip\u6587\u4ef6<\/li><li>\u89e3\u538b\u7f29zip\u6587\u4ef6\uff0c\u4f8b\u5982\u5728C\uff1a\\ sonarqube\u6216\/ opt \/ sonarqube\u4e2d<\/li><li>\u8fd0\u884c\u4e0b\u9762\u7684\u547d\u4ee4\u542f\u52a8 SonarQube Server<\/li><\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># \u5728windows\u4e2d\uff0c\u6267\u884c\u5982\u4e0b\u547d\u4ee4\nC:\\sonarqube\\bin\\windows-x86-64\\StartSonar.bat\n\n# \u5728linux\u7b49\u5176\u4ed6\u7cfb\u7edf\u4e2d\u6267\u884c\u5982\u4e0b\u547d\u4ee4\n\/opt\/sonarqube\/bin\/[OS]\/sonar.sh console\n<\/pre>\n\n\n\n<p><strong>2\u3001\u4f7f\u7528docker \u5b89\u88c5 SonarQube<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2023\/04\/image-16-1024x675.png\" alt=\"\" class=\"wp-image-10445\" width=\"524\" height=\"345\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-16-1024x675.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-16-300x198.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-16-768x507.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-16-1536x1013.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-16-830x547.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-16-230x152.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-16-350x231.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-16-480x317.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-16.png 1704w\" sizes=\"(max-width: 524px) 100vw, 524px\" \/><\/figure><\/div>\n\n\n\n<ul><li>\u5728docker hub \u4e2d\u627e\u5230 sonarqube<\/li><li>\u4f7f\u7528 <code>docker pull sonarqube<\/code> \u62c9\u53d6\u955c\u50cf<\/li><li>\u8fd0\u884c\u4e0b\u9762\u7684\u547d\u4ee4\u542f\u52a8 SonarQube Server<\/li><\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">docker run -d --name sonarqube -e SONAR_ES_BOOTSTRAP_CHECKS_DISABLE=true -p 9000:9000 sonarqube:latest\n<\/pre>\n\n\n\n<p><strong>3\u3001\u767b\u5f55SonarQube Server<\/strong><\/p>\n\n\n\n<p>\u5b9e\u4f8b\u542f\u52a8\u5e76\u8fd0\u884c\u540e\uff0c\u4f7f\u7528\u7cfb\u7edf\u7ba1\u7406\u5458\u51ed\u636e\u767b\u5f55\u5230 <a rel=\"noreferrer noopener\" href=\"https:\/\/links.jianshu.com\/go?to=http%3A%2F%2Flocalhost%3A9000%2F\" target=\"_blank\">http:\/\/localhost:9000<\/a><\/p>\n\n\n\n<ul><li>\u7528\u6237\u540d\uff1aadmin<\/li><li>\u5bc6\u7801\uff1aadmin<\/li><\/ul>\n\n\n\n<p>\u767b\u5f55\u6210\u529f\u540e\u9700\u8981\u91cd\u7f6e\u5bc6\u7801<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2023\/04\/image-17-936x1024.png\" alt=\"\" class=\"wp-image-10446\" width=\"398\" height=\"434\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-17-936x1024.png 936w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-17-274x300.png 274w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-17-768x840.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-17-830x908.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-17-230x252.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-17-350x383.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-17-480x525.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-17.png 1190w\" sizes=\"(max-width: 398px) 100vw, 398px\" \/><\/figure><\/div>\n\n\n\n<p><strong>\u4e09\u3001\u5206\u6790\u9879\u76ee<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u767b\u5f55\u6210\u529f\u540e\uff0c\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2023\/04\/image-18-1024x499.png\" alt=\"\" class=\"wp-image-10447\" width=\"498\" height=\"242\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-18-1024x499.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-18-300x146.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-18-768x374.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-18-1536x749.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-18-830x405.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-18-230x112.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-18-350x171.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-18-480x234.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-18.png 1674w\" sizes=\"(max-width: 498px) 100vw, 498px\" \/><\/figure><\/div>\n\n\n\n<p><strong>1\u3001\u5b89\u88c5\u4e2d\u6587\u5305<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2023\/04\/image-19-1024x683.png\" alt=\"\" class=\"wp-image-10448\" width=\"489\" height=\"326\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-19-1024x683.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-19-300x200.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-19-768x513.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-19-1536x1025.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-19-830x554.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-19-230x154.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-19-350x234.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-19-480x320.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-19.png 1690w\" sizes=\"(max-width: 489px) 100vw, 489px\" \/><\/figure><\/div>\n\n\n\n<p>\u4e2d\u6587\u5305\u5b89\u88c5\u6210\u529f\u540e\u5982\u4e0b\u56fe<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2023\/04\/image-20-1024x524.png\" alt=\"\" class=\"wp-image-10449\" width=\"525\" height=\"268\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-20-1024x524.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-20-300x154.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-20-768x393.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-20-1536x786.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-20-830x425.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-20-230x118.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-20-350x179.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-20-480x246.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-20.png 1668w\" sizes=\"(max-width: 525px) 100vw, 525px\" \/><\/figure><\/div>\n\n\n\n<p><strong>2\u3001\u5206\u6790\u9879\u76ee<\/strong><\/p>\n\n\n\n<ul><li>\u5355\u51fb\u521b\u5efa\u65b0\u9879\u76ee\u6309\u94ae\u3002<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2023\/04\/image-21-1024x405.png\" alt=\"\" class=\"wp-image-10450\" width=\"555\" height=\"220\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-21-1024x405.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-21-300x119.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-21-768x304.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-21-1536x608.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-21-830x329.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-21-230x91.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-21-350x139.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-21-480x190.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-21.png 1596w\" sizes=\"(max-width: 555px) 100vw, 555px\" \/><\/figure><\/div>\n\n\n\n<ul><li>\u7ed9\u60a8\u7684\u9879\u76ee\u4e00\u4e2a\u9879\u76ee\u952e\u548c\u4e00\u4e2a\u663e\u793a\u540d\u79f0\uff0c\u7136\u540e\u5355\u51fb\u8bbe\u7f6e\u6309\u94ae\u3002<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2023\/04\/image-22-1024x725.png\" alt=\"\" class=\"wp-image-10451\" width=\"560\" height=\"396\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-22-1024x725.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-22-300x212.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-22-768x544.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-22-830x588.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-22-230x163.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-22-350x248.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-22-480x340.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-22.png 1370w\" sizes=\"(max-width: 560px) 100vw, 560px\" \/><\/figure><\/div>\n\n\n\n<ul><li>\u5728\u201c\u63d0\u4f9b\u4ee4\u724c\u201d\u4e0b\uff0c\u9009\u62e9\u201c\u751f\u6210\u4ee4\u724c\u201d\u3002\u4e3a\u60a8\u7684\u4ee4\u724c\u547d\u540d\uff0c\u70b9\u51fb\u751f\u6210\u6309\u94ae\uff0c\u7136\u540e\u70b9\u51fb\u7ee7\u7eed\u3002<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2023\/04\/image-23-1024x755.png\" alt=\"\" class=\"wp-image-10452\" width=\"534\" height=\"394\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-23-1024x755.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-23-300x221.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-23-768x567.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-23-1536x1133.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-23-830x612.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-23-230x170.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-23-350x258.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-23-480x354.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-23.png 1586w\" sizes=\"(max-width: 534px) 100vw, 534px\" \/><\/figure><\/div>\n\n\n\n<ul><li>\u5728\u201c\u5bf9\u9879\u76ee\u8fd0\u884c\u5206\u6790\u201d\u4e0b\u9009\u62e9\u9879\u76ee\u7684\u4e3b\u8981\u8bed\u8a00\uff0c\u7136\u540e\u6309\u7167\u8bf4\u660e\u5206\u6790\u9879\u76ee\u3002\u5728\u8fd9\u91cc\uff0c\u60a8\u5c06\u5728\u4ee3\u7801\u4e0a\u4e0b\u8f7d\u5e76\u6267\u884c\u626b\u63cf\u7a0b\u5e8f\uff08\u5982\u679c\u60a8\u4f7f\u7528\u7684\u662fMaven\u6216Gradle\uff0c\u5219\u4f1a\u81ea\u52a8\u4e0b\u8f7d\u8be5\u626b\u63cf\u7a0b\u5e8f\uff09\u3002<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2023\/04\/image-24-1024x541.png\" alt=\"\" class=\"wp-image-10453\" width=\"534\" height=\"281\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-24-1024x541.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-24-300x159.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-24-768x406.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-24-1536x812.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-24-830x439.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-24-230x122.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-24-350x185.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-24-480x254.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-24.png 1600w\" sizes=\"(max-width: 534px) 100vw, 534px\" \/><\/figure><\/div>\n\n\n\n<ul><li>\u4f7f\u7528Maven\u6267\u884cSonarQube\u5206\u6790\u662f\u975e\u5e38\u7b80\u5355\u7684\u3002\u53ea\u9700\u8981\u5728\u4f60\u7684\u9879\u76ee\u76ee\u5f55\u4e0b\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u3002<\/li><\/ul>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">mvn sonar:sonar \\\n  -Dsonar.projectKey=test \\\n  -Dsonar.host.url=http:\/\/localhost:9000 \\\n  -Dsonar.login=a98ea942c2c4bd02b1621ee26653fe1b7007d83d\n<\/pre>\n\n\n\n<ul><li>\u5206\u6790\u5b8c\u6210\u540e\uff0c\u9875\u9762\u4f1a\u81ea\u52a8\u5237\u65b0\uff0c\u60a8\u5c06\u5728SonarQube\u4e0a\u770b\u5230\u7b2c\u4e00\u4e2a\u5206\u6790\uff1a<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2023\/04\/image-25-1024x632.png\" alt=\"\" class=\"wp-image-10454\" width=\"515\" height=\"317\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-25-1024x632.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-25-300x185.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-25-768x474.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-25-1536x948.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-25-830x512.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-25-230x142.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-25-350x216.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-25-480x296.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-25.png 1636w\" sizes=\"(max-width: 515px) 100vw, 515px\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2023\/04\/image-26-1024x378.png\" alt=\"\" class=\"wp-image-10455\" width=\"531\" height=\"196\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-26-1024x378.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-26-300x111.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-26-768x284.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-26-1536x568.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-26-830x307.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-26-230x85.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-26-350x129.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-26-480x177.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-26.png 1640w\" sizes=\"(max-width: 531px) 100vw, 531px\" \/><\/figure><\/div>\n\n\n\n<p><strong>\u56db\u3001\u9047\u5230\u7684\u95ee\u9898<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p><strong>\u2460\u6267\u884c\u4e0a\u9762\u7684mvn\u547d\u4ee4\uff0c\u51fa\u73b0\u5982\u4e0b\u95ee\u9898\uff1a<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2023\/04\/image-27-1024x226.png\" alt=\"\" class=\"wp-image-10456\" width=\"612\" height=\"135\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-27-1024x226.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-27-300x66.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-27-768x170.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-27-1536x340.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-27-830x184.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-27-230x51.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-27-350x77.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-27-480x106.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-27.png 1646w\" sizes=\"(max-width: 612px) 100vw, 612px\" \/><\/figure><\/div>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.8.0.2131:sonar (default-cli) on project quarkus-demo: Your project contains .java files, please provide\n compiled classes with sonar.java.binaries property, or exclude them from the analysis with sonar.exclusions property.<\/pre>\n\n\n\n<p>\u539f\u56e0\uff1a\u9879\u76ee\u53ea\u5305\u542b .java \u6587\u4ef6\uff0c\u6ca1\u6709\u7f16\u8bd1\u6210 .class \u6587\u4ef6<br>\u89e3\u51b3\uff1a\u9700\u8981\u7f16\u8bd1\u5148\u9879\u76ee\uff0c\u5148\u6267\u884c <code>mvn pakage<\/code> \u518d\u6267\u884c <code>mvn sonar: sonar<\/code> ,\u4e5f\u53ef\u4ee5\u5408\u5e76\u6267\u884c\u4e0b\u9762\u7684\u547d\u4ee4<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">mvn package sonar:sonar \\\n  -Dsonar.projectKey=test \\\n  -Dsonar.host.url=http:\/\/localhost:9000 \\\n  -Dsonar.login=a98ea942c2c4bd02b1621ee26653fe1b7007d83d\n<\/pre>\n\n\n\n<p><strong>\u2461\u6267\u884c\u4e0a\u9762\u7684mvn\u547d\u4ee4\uff0c\u51fa\u73b0\u5982\u4e0b\u95ee\u9898\uff1a<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.7.0.1746:sonar (default-cli) on project mail-service: Not authorized. Please check the properties sonar.login and sonar.password. -> [Help 1]\n<\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/09\/image-71-1024x138.png\" alt=\"\" class=\"wp-image-12709\" width=\"589\" height=\"79\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/09\/image-71-1024x138.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/09\/image-71-300x41.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/09\/image-71-768x104.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/09\/image-71-1536x208.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2023\/09\/image-71-2048x277.png 2048w, https:\/\/92it.top\/wp-content\/uploads\/2023\/09\/image-71-830x112.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/09\/image-71-230x31.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/09\/image-71-350x47.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/09\/image-71-480x65.png 480w\" sizes=\"(max-width: 589px) 100vw, 589px\" \/><\/figure><\/div>\n\n\n\n<p>\u62a5\u9519\u539f\u56e0\u662f\u7f3a\u5c11\u7528\u6237\u5bc6\u7801\uff0c\u589e\u52a0 -D&#8221;sonar.password=123456&#8243; \u53c2\u6570\uff0c\u5177\u4f53\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mvn clean verify sonar:sonar \\\n  -Dsonar.projectKey=mail-service \\\n  -Dsonar.projectName='mail-service' \\\n  -Dsonar.host.url=http:\/\/localhost:9000 \\\n  -Dsonar.login=admin \\\n  -Dsonar.password=xxxx<\/pre>\n\n\n\n<p><strong>\u2462\u4f7f\u7528\u7684\u955c\u50cf\uff1a<a rel=\"noreferrer noopener\" href=\"https:\/\/so.csdn.net\/so\/search?q=sonarqube&amp;spm=1001.2101.3001.7020\" target=\"_blank\">sonarqube<\/a>:lastest \/ sonarqube:9.8-community \uff0c9.x \u7248\u672c\u5e94\u8be5\u90fd\u4f1a\u62a5\u9519<\/strong><\/p>\n\n\n\n<p>\u542f\u52a8\u547d\u4ee4\uff08\u53ea\u662f\u4e3a\u4e86\u770b\u80fd\u90fd\u542f\u52a8\u6210\u529f\uff09 docker run sonarqube<\/p>\n\n\n\n<p>\u62a5\u9519\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">2023.02.04 01:55:35 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory \/opt\/sonarqube\/temp\n2023.02.04 01:55:35 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on [HTTP: 127.0.0.1:9001, TCP: 127.0.0.1:36696]\n2023.02.04 01:55:35 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[ELASTICSEARCH] from [\/opt\/sonarqube\/elasticsearch]: \/opt\/sonarqube\/elasticsearch\/bin\/elasticsearch\ncould not find java in ES_JAVA_HOME at \/usr\/lib\/jvm\/java-17-openjdk\/bin\/java\n2023.02.04 01:55:35 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [ElasticSearch]: 1\n2023.02.04 01:55:35 INFO app[][o.s.a.SchedulerImpl] Process[ElasticSearch] is stopped\n2023.02.04 01:55:35 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running\n2023.02.04 01:55:35 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped \n<\/pre>\n\n\n\n<p>\u95ee\u9898\u6392\u67e5\uff1a<\/p>\n\n\n\n<ul><li>1\uff1adocker run -it sonarqube \/bin\/bash \u8fdb\u5165\u955c\u50cf\u5185\u90e8\u67e5\u770b\u73af\u5883\u53d8\u91cf JAVA_HOME \u6ca1\u95ee\u9898<\/li><li>2\uff1a\u67e5\u770b jdk\u7684\u6743\u9650\u8bbe\u7f6e\uff0c\u662f\u4e0d\u662fes\u7684\u542f\u52a8\u7528\u6237\u770b\u4e0d\u5230\uff0c\u53d1\u73b0\u4e5f\u662f\u6b63\u5e38\u7684<\/li><li>3\uff1a\u60f3\u4e0d\u51fa\u6765\u5176\u4ed6\u7684\uff0c9.x\u4e4b\u524d\u7684\u955c\u50cf\u662f\u6ca1\u6709\u95ee\u9898\u7684\uff0c\u4e8e\u662f\u767e\u5ea6<\/li><\/ul>\n\n\n\n<p>\u5b98\u65b9\u89e3\u51b3\u65b9\u6848\uff1acould not find java in ES_JAVA_HOME at \/opt\/java\/openjdk\/bin\/java \u00b7 Issue #494 \u00b7 SonarSource\/docker-sonarqube \u00b7 GitHub<\/p>\n\n\n\n<p>\u539f\u6765\u662f9.x \u7684\u955c\u50cf\u5e76\u6ca1\u6709\u5904\u7406linux\u7684\u7cfb\u7edf\u65b9\u6848\u5b89\u5168\u914d\u7f6e\uff0c\u9700\u8981\u6211\u4eec\u624b\u52a8\u914d\u7f6e<\/p>\n\n\n\n<p>\u5904\u7406\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2023\/04\/image-63-1024x292.png\" alt=\"\" class=\"wp-image-10519\" width=\"638\" height=\"181\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-63-1024x292.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-63-300x86.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-63-768x219.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-63-1536x438.png 1536w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-63-830x237.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-63-230x66.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-63-350x100.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-63-480x137.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2023\/04\/image-63.png 1606w\" sizes=\"(max-width: 638px) 100vw, 638px\" \/><\/figure><\/div>\n\n\n\n<p>\u914d\u7f6e\u6587\u4ef6\u4e0b\u8f7d\u5730\u5740\uff1a<a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/moby\/moby\/blob\/master\/profiles\/seccomp\/default.json\" target=\"_blank\">https:\/\/github.com\/moby\/moby\/blob\/master\/profiles\/seccomp\/default.json<\/a><\/p>\n\n\n\n<p>\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">docker run -d --name sonarqube -e SONAR_ES_BOOTSTRAP_CHECKS_DISABLE=true -p 9000:9000 --security-opt=seccomp=\/mnt\/sonar\/seccomp_profile.json sonarqube:latest\n<\/pre>\n\n\n\n<p>\u5982\u679c\u5927\u5bb6\u770b\u4e0d\u5230\uff0c\u76f4\u63a5\u590d\u5236\u5982\u4e0b\u6587\u4ef6\u5373\u53ef<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">{\n    \"defaultAction\": \"SCMP_ACT_TRACE\",\n    \"defaultErrnoRet\": 1,\n    \"archMap\": [\n        {\n            \"architecture\": \"SCMP_ARCH_X86_64\",\n            \"subArchitectures\": [\n                \"SCMP_ARCH_X86\",\n                \"SCMP_ARCH_X32\"\n            ]\n        },\n        {\n            \"architecture\": \"SCMP_ARCH_AARCH64\",\n            \"subArchitectures\": [\n                \"SCMP_ARCH_ARM\"\n            ]\n        },\n        {\n            \"architecture\": \"SCMP_ARCH_MIPS64\",\n            \"subArchitectures\": [\n                \"SCMP_ARCH_MIPS\",\n                \"SCMP_ARCH_MIPS64N32\"\n            ]\n        },\n        {\n            \"architecture\": \"SCMP_ARCH_MIPS64N32\",\n            \"subArchitectures\": [\n                \"SCMP_ARCH_MIPS\",\n                \"SCMP_ARCH_MIPS64\"\n            ]\n        },\n        {\n            \"architecture\": \"SCMP_ARCH_MIPSEL64\",\n            \"subArchitectures\": [\n                \"SCMP_ARCH_MIPSEL\",\n                \"SCMP_ARCH_MIPSEL64N32\"\n            ]\n        },\n        {\n            \"architecture\": \"SCMP_ARCH_MIPSEL64N32\",\n            \"subArchitectures\": [\n                \"SCMP_ARCH_MIPSEL\",\n                \"SCMP_ARCH_MIPSEL64\"\n            ]\n        },\n        {\n            \"architecture\": \"SCMP_ARCH_S390X\",\n            \"subArchitectures\": [\n                \"SCMP_ARCH_S390\"\n            ]\n        },\n        {\n            \"architecture\": \"SCMP_ARCH_RISCV64\",\n            \"subArchitectures\": null\n        }\n    ],\n    \"syscalls\": [\n        {\n            \"names\": [\n                \"accept\",\n                \"accept4\",\n                \"access\",\n                \"adjtimex\",\n                \"alarm\",\n                \"bind\",\n                \"brk\",\n                \"capget\",\n                \"capset\",\n                \"chdir\",\n                \"chmod\",\n                \"chown\",\n                \"chown32\",\n                \"clock_adjtime\",\n                \"clock_adjtime64\",\n                \"clock_getres\",\n                \"clock_getres_time64\",\n                \"clock_gettime\",\n                \"clock_gettime64\",\n                \"clock_nanosleep\",\n                \"clock_nanosleep_time64\",\n                \"close\",\n                \"close_range\",\n                \"connect\",\n                \"copy_file_range\",\n                \"creat\",\n                \"dup\",\n                \"dup2\",\n                \"dup3\",\n                \"epoll_create\",\n                \"epoll_create1\",\n                \"epoll_ctl\",\n                \"epoll_ctl_old\",\n                \"epoll_pwait\",\n                \"epoll_pwait2\",\n                \"epoll_wait\",\n                \"epoll_wait_old\",\n                \"eventfd\",\n                \"eventfd2\",\n                \"execve\",\n                \"execveat\",\n                \"exit\",\n                \"exit_group\",\n                \"faccessat\",\n                \"faccessat2\",\n                \"fadvise64\",\n                \"fadvise64_64\",\n                \"fallocate\",\n                \"fanotify_mark\",\n                \"fchdir\",\n                \"fchmod\",\n                \"fchmodat\",\n                \"fchown\",\n                \"fchown32\",\n                \"fchownat\",\n                \"fcntl\",\n                \"fcntl64\",\n                \"fdatasync\",\n                \"fgetxattr\",\n                \"flistxattr\",\n                \"flock\",\n                \"fork\",\n                \"fremovexattr\",\n                \"fsetxattr\",\n                \"fstat\",\n                \"fstat64\",\n                \"fstatat64\",\n                \"fstatfs\",\n                \"fstatfs64\",\n                \"fsync\",\n                \"ftruncate\",\n                \"ftruncate64\",\n                \"futex\",\n                \"futex_time64\",\n                \"futex_waitv\",\n                \"futimesat\",\n                \"getcpu\",\n                \"getcwd\",\n                \"getdents\",\n                \"getdents64\",\n                \"getegid\",\n                \"getegid32\",\n                \"geteuid\",\n                \"geteuid32\",\n                \"getgid\",\n                \"getgid32\",\n                \"getgroups\",\n                \"getgroups32\",\n                \"getitimer\",\n                \"getpeername\",\n                \"getpgid\",\n                \"getpgrp\",\n                \"getpid\",\n                \"getppid\",\n                \"getpriority\",\n                \"getrandom\",\n                \"getresgid\",\n                \"getresgid32\",\n                \"getresuid\",\n                \"getresuid32\",\n                \"getrlimit\",\n                \"get_robust_list\",\n                \"getrusage\",\n                \"getsid\",\n                \"getsockname\",\n                \"getsockopt\",\n                \"get_thread_area\",\n                \"gettid\",\n                \"gettimeofday\",\n                \"getuid\",\n                \"getuid32\",\n                \"getxattr\",\n                \"inotify_add_watch\",\n                \"inotify_init\",\n                \"inotify_init1\",\n                \"inotify_rm_watch\",\n                \"io_cancel\",\n                \"ioctl\",\n                \"io_destroy\",\n                \"io_getevents\",\n                \"io_pgetevents\",\n                \"io_pgetevents_time64\",\n                \"ioprio_get\",\n                \"ioprio_set\",\n                \"io_setup\",\n                \"io_submit\",\n                \"io_uring_enter\",\n                \"io_uring_register\",\n                \"io_uring_setup\",\n                \"ipc\",\n                \"kill\",\n                \"landlock_add_rule\",\n                \"landlock_create_ruleset\",\n                \"landlock_restrict_self\",\n                \"lchown\",\n                \"lchown32\",\n                \"lgetxattr\",\n                \"link\",\n                \"linkat\",\n                \"listen\",\n                \"listxattr\",\n                \"llistxattr\",\n                \"_llseek\",\n                \"lremovexattr\",\n                \"lseek\",\n                \"lsetxattr\",\n                \"lstat\",\n                \"lstat64\",\n                \"madvise\",\n                \"membarrier\",\n                \"memfd_create\",\n                \"memfd_secret\",\n                \"mincore\",\n                \"mkdir\",\n                \"mkdirat\",\n                \"mknod\",\n                \"mknodat\",\n                \"mlock\",\n                \"mlock2\",\n                \"mlockall\",\n                \"mmap\",\n                \"mmap2\",\n                \"mprotect\",\n                \"mq_getsetattr\",\n                \"mq_notify\",\n                \"mq_open\",\n                \"mq_timedreceive\",\n                \"mq_timedreceive_time64\",\n                \"mq_timedsend\",\n                \"mq_timedsend_time64\",\n                \"mq_unlink\",\n                \"mremap\",\n                \"msgctl\",\n                \"msgget\",\n                \"msgrcv\",\n                \"msgsnd\",\n                \"msync\",\n                \"munlock\",\n                \"munlockall\",\n                \"munmap\",\n                \"nanosleep\",\n                \"newfstatat\",\n                \"_newselect\",\n                \"open\",\n                \"openat\",\n                \"openat2\",\n                \"pause\",\n                \"pidfd_open\",\n                \"pidfd_send_signal\",\n                \"pipe\",\n                \"pipe2\",\n                \"pkey_alloc\",\n                \"pkey_free\",\n                \"pkey_mprotect\",\n                \"poll\",\n                \"ppoll\",\n                \"ppoll_time64\",\n                \"prctl\",\n                \"pread64\",\n                \"preadv\",\n                \"preadv2\",\n                \"prlimit64\",\n                \"process_mrelease\",\n                \"pselect6\",\n                \"pselect6_time64\",\n                \"pwrite64\",\n                \"pwritev\",\n                \"pwritev2\",\n                \"read\",\n                \"readahead\",\n                \"readlink\",\n                \"readlinkat\",\n                \"readv\",\n                \"recv\",\n                \"recvfrom\",\n                \"recvmmsg\",\n                \"recvmmsg_time64\",\n                \"recvmsg\",\n                \"remap_file_pages\",\n                \"removexattr\",\n                \"rename\",\n                \"renameat\",\n                \"renameat2\",\n                \"restart_syscall\",\n                \"rmdir\",\n                \"rseq\",\n                \"rt_sigaction\",\n                \"rt_sigpending\",\n                \"rt_sigprocmask\",\n                \"rt_sigqueueinfo\",\n                \"rt_sigreturn\",\n                \"rt_sigsuspend\",\n                \"rt_sigtimedwait\",\n                \"rt_sigtimedwait_time64\",\n                \"rt_tgsigqueueinfo\",\n                \"sched_getaffinity\",\n                \"sched_getattr\",\n                \"sched_getparam\",\n                \"sched_get_priority_max\",\n                \"sched_get_priority_min\",\n                \"sched_getscheduler\",\n                \"sched_rr_get_interval\",\n                \"sched_rr_get_interval_time64\",\n                \"sched_setaffinity\",\n                \"sched_setattr\",\n                \"sched_setparam\",\n                \"sched_setscheduler\",\n                \"sched_yield\",\n                \"seccomp\",\n                \"select\",\n                \"semctl\",\n                \"semget\",\n                \"semop\",\n                \"semtimedop\",\n                \"semtimedop_time64\",\n                \"send\",\n                \"sendfile\",\n                \"sendfile64\",\n                \"sendmmsg\",\n                \"sendmsg\",\n                \"sendto\",\n                \"setfsgid\",\n                \"setfsgid32\",\n                \"setfsuid\",\n                \"setfsuid32\",\n                \"setgid\",\n                \"setgid32\",\n                \"setgroups\",\n                \"setgroups32\",\n                \"setitimer\",\n                \"setpgid\",\n                \"setpriority\",\n                \"setregid\",\n                \"setregid32\",\n                \"setresgid\",\n                \"setresgid32\",\n                \"setresuid\",\n                \"setresuid32\",\n                \"setreuid\",\n                \"setreuid32\",\n                \"setrlimit\",\n                \"set_robust_list\",\n                \"setsid\",\n                \"setsockopt\",\n                \"set_thread_area\",\n                \"set_tid_address\",\n                \"setuid\",\n                \"setuid32\",\n                \"setxattr\",\n                \"shmat\",\n                \"shmctl\",\n                \"shmdt\",\n                \"shmget\",\n                \"shutdown\",\n                \"sigaltstack\",\n                \"signalfd\",\n                \"signalfd4\",\n                \"sigprocmask\",\n                \"sigreturn\",\n                \"socketcall\",\n                \"socketpair\",\n                \"splice\",\n                \"stat\",\n                \"stat64\",\n                \"statfs\",\n                \"statfs64\",\n                \"statx\",\n                \"symlink\",\n                \"symlinkat\",\n                \"sync\",\n                \"sync_file_range\",\n                \"syncfs\",\n                \"sysinfo\",\n                \"tee\",\n                \"tgkill\",\n                \"time\",\n                \"timer_create\",\n                \"timer_delete\",\n                \"timer_getoverrun\",\n                \"timer_gettime\",\n                \"timer_gettime64\",\n                \"timer_settime\",\n                \"timer_settime64\",\n                \"timerfd_create\",\n                \"timerfd_gettime\",\n                \"timerfd_gettime64\",\n                \"timerfd_settime\",\n                \"timerfd_settime64\",\n                \"times\",\n                \"tkill\",\n                \"truncate\",\n                \"truncate64\",\n                \"ugetrlimit\",\n                \"umask\",\n                \"uname\",\n                \"unlink\",\n                \"unlinkat\",\n                \"utime\",\n                \"utimensat\",\n                \"utimensat_time64\",\n                \"utimes\",\n                \"vfork\",\n                \"vmsplice\",\n                \"wait4\",\n                \"waitid\",\n                \"waitpid\",\n                \"write\",\n                \"writev\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\"\n        },\n        {\n            \"names\": [\n                \"process_vm_readv\",\n                \"process_vm_writev\",\n                \"ptrace\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\",\n            \"includes\": {\n                \"minKernel\": \"4.8\"\n            }\n        },\n        {\n            \"names\": [\n                \"socket\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\",\n            \"args\": [\n                {\n                    \"index\": 0,\n                    \"value\": 40,\n                    \"op\": \"SCMP_CMP_NE\"\n                }\n            ]\n        },\n        {\n            \"names\": [\n                \"personality\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\",\n            \"args\": [\n                {\n                    \"index\": 0,\n                    \"value\": 0,\n                    \"op\": \"SCMP_CMP_EQ\"\n                }\n            ]\n        },\n        {\n            \"names\": [\n                \"personality\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\",\n            \"args\": [\n                {\n                    \"index\": 0,\n                    \"value\": 8,\n                    \"op\": \"SCMP_CMP_EQ\"\n                }\n            ]\n        },\n        {\n            \"names\": [\n                \"personality\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\",\n            \"args\": [\n                {\n                    \"index\": 0,\n                    \"value\": 131072,\n                    \"op\": \"SCMP_CMP_EQ\"\n                }\n            ]\n        },\n        {\n            \"names\": [\n                \"personality\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\",\n            \"args\": [\n                {\n                    \"index\": 0,\n                    \"value\": 131080,\n                    \"op\": \"SCMP_CMP_EQ\"\n                }\n            ]\n        },\n        {\n            \"names\": [\n                \"personality\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\",\n            \"args\": [\n                {\n                    \"index\": 0,\n                    \"value\": 4294967295,\n                    \"op\": \"SCMP_CMP_EQ\"\n                }\n            ]\n        },\n        {\n            \"names\": [\n                \"sync_file_range2\",\n                \"swapcontext\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\",\n            \"includes\": {\n                \"arches\": [\n                    \"ppc64le\"\n                ]\n            }\n        },\n        {\n            \"names\": [\n                \"arm_fadvise64_64\",\n                \"arm_sync_file_range\",\n                \"sync_file_range2\",\n                \"breakpoint\",\n                \"cacheflush\",\n                \"set_tls\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\",\n            \"includes\": {\n                \"arches\": [\n                    \"arm\",\n                    \"arm64\"\n                ]\n            }\n        },\n        {\n            \"names\": [\n                \"arch_prctl\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\",\n            \"includes\": {\n                \"arches\": [\n                    \"amd64\",\n                    \"x32\"\n                ]\n            }\n        },\n        {\n            \"names\": [\n                \"modify_ldt\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\",\n            \"includes\": {\n                \"arches\": [\n                    \"amd64\",\n                    \"x32\",\n                    \"x86\"\n                ]\n            }\n        },\n        {\n            \"names\": [\n                \"s390_pci_mmio_read\",\n                \"s390_pci_mmio_write\",\n                \"s390_runtime_instr\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\",\n            \"includes\": {\n                \"arches\": [\n                    \"s390\",\n                    \"s390x\"\n                ]\n            }\n        },\n        {\n            \"names\": [\n                \"riscv_flush_icache\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\",\n            \"includes\": {\n                \"arches\": [\n                    \"riscv64\"\n                ]\n            }\n        },\n        {\n            \"names\": [\n                \"open_by_handle_at\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\",\n            \"includes\": {\n                \"caps\": [\n                    \"CAP_DAC_READ_SEARCH\"\n                ]\n            }\n        },\n        {\n            \"names\": [\n                \"bpf\",\n                \"clone\",\n                \"clone3\",\n                \"fanotify_init\",\n                \"fsconfig\",\n                \"fsmount\",\n                \"fsopen\",\n                \"fspick\",\n                \"lookup_dcookie\",\n                \"mount\",\n                \"mount_setattr\",\n                \"move_mount\",\n                \"name_to_handle_at\",\n                \"open_tree\",\n                \"perf_event_open\",\n                \"quotactl\",\n                \"quotactl_fd\",\n                \"setdomainname\",\n                \"sethostname\",\n                \"setns\",\n                \"syslog\",\n                \"umount\",\n                \"umount2\",\n                \"unshare\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\",\n            \"includes\": {\n                \"caps\": [\n                    \"CAP_SYS_ADMIN\"\n                ]\n            }\n        },\n        {\n            \"names\": [\n                \"clone\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\",\n            \"args\": [\n                {\n                    \"index\": 0,\n                    \"value\": 2114060288,\n                    \"op\": \"SCMP_CMP_MASKED_EQ\"\n                }\n            ],\n            \"excludes\": {\n                \"caps\": [\n                    \"CAP_SYS_ADMIN\"\n                ],\n                \"arches\": [\n                    \"s390\",\n                    \"s390x\"\n                ]\n            }\n        },\n        {\n            \"names\": [\n                \"clone\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\",\n            \"args\": [\n                {\n                    \"index\": 1,\n                    \"value\": 2114060288,\n                    \"op\": \"SCMP_CMP_MASKED_EQ\"\n                }\n            ],\n            \"comment\": \"s390 parameter ordering for clone is different\",\n            \"includes\": {\n                \"arches\": [\n                    \"s390\",\n                    \"s390x\"\n                ]\n            },\n            \"excludes\": {\n                \"caps\": [\n                    \"CAP_SYS_ADMIN\"\n                ]\n            }\n        },\n        {\n            \"names\": [\n                \"clone3\"\n            ],\n            \"action\": \"SCMP_ACT_ERRNO\",\n            \"errnoRet\": 38,\n            \"excludes\": {\n                \"caps\": [\n                    \"CAP_SYS_ADMIN\"\n                ]\n            }\n        },\n        {\n            \"names\": [\n                \"reboot\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\",\n            \"includes\": {\n                \"caps\": [\n                    \"CAP_SYS_BOOT\"\n                ]\n            }\n        },\n        {\n            \"names\": [\n                \"chroot\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\",\n            \"includes\": {\n                \"caps\": [\n                    \"CAP_SYS_CHROOT\"\n                ]\n            }\n        },\n        {\n            \"names\": [\n                \"delete_module\",\n                \"init_module\",\n                \"finit_module\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\",\n            \"includes\": {\n                \"caps\": [\n                    \"CAP_SYS_MODULE\"\n                ]\n            }\n        },\n        {\n            \"names\": [\n                \"acct\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\",\n            \"includes\": {\n                \"caps\": [\n                    \"CAP_SYS_PACCT\"\n                ]\n            }\n        },\n        {\n            \"names\": [\n                \"kcmp\",\n                \"pidfd_getfd\",\n                \"process_madvise\",\n                \"process_vm_readv\",\n                \"process_vm_writev\",\n                \"ptrace\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\",\n            \"includes\": {\n                \"caps\": [\n                    \"CAP_SYS_PTRACE\"\n                ]\n            }\n        },\n        {\n            \"names\": [\n                \"iopl\",\n                \"ioperm\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\",\n            \"includes\": {\n                \"caps\": [\n                    \"CAP_SYS_RAWIO\"\n                ]\n            }\n        },\n        {\n            \"names\": [\n                \"settimeofday\",\n                \"stime\",\n                \"clock_settime\",\n                \"clock_settime64\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\",\n            \"includes\": {\n                \"caps\": [\n                    \"CAP_SYS_TIME\"\n                ]\n            }\n        },\n        {\n            \"names\": [\n                \"vhangup\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\",\n            \"includes\": {\n                \"caps\": [\n                    \"CAP_SYS_TTY_CONFIG\"\n                ]\n            }\n        },\n        {\n            \"names\": [\n                \"get_mempolicy\",\n                \"mbind\",\n                \"set_mempolicy\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\",\n            \"includes\": {\n                \"caps\": [\n                    \"CAP_SYS_NICE\"\n                ]\n            }\n        },\n        {\n            \"names\": [\n                \"syslog\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\",\n            \"includes\": {\n                \"caps\": [\n                    \"CAP_SYSLOG\"\n                ]\n            }\n        },\n        {\n            \"names\": [\n                \"bpf\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\",\n            \"includes\": {\n                \"caps\": [\n                    \"CAP_BPF\"\n                ]\n            }\n        },\n        {\n            \"names\": [\n                \"perf_event_open\"\n            ],\n            \"action\": \"SCMP_ACT_ALLOW\",\n            \"includes\": {\n                \"caps\": [\n                    \"CAP_PERFMON\"\n                ]\n            }\n        }\n    ]\n}<\/pre>\n\n\n\n<p><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u6982\u8ff0 Sonar\u662f\u4e00\u4e2a\u7528\u4e8e\u4ee3\u7801\u8d28\u91cf\u7ba1\u7406\u7684\u5f00\u6e90\u5e73\u53f0\uff0c\u7528\u4e8e\u7ba1\u7406\u6e90\u4ee3\u7801\u7684\u8d28\u91cf\uff0c\u53ef\u4ee5\u4ece\u591a\u4e2a\u7ef4\u5ea6\u68c0\u6d4b\u4ee3\u7801\u8d28\u91cf\uff0c\u901a\u8fc7\u63d2 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"_links":{"self":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/10443"}],"collection":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10443"}],"version-history":[{"count":6,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/10443\/revisions"}],"predecessor-version":[{"id":12710,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/10443\/revisions\/12710"}],"wp:attachment":[{"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10443"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}