{"id":1255,"date":"2021-05-08T09:24:52","date_gmt":"2021-05-08T00:24:52","guid":{"rendered":"https:\/\/ito-u-oti.com\/?p=1255"},"modified":"2021-05-13T14:11:10","modified_gmt":"2021-05-13T05:11:10","slug":"docker-sonarqube","status":"publish","type":"post","link":"https:\/\/ito-u-oti.com\/?p=1255","title":{"rendered":"Docker\u3067SonarQube\u74b0\u5883\u3092\u624b\u65e9\u304f\u69cb\u7bc9\u3059\u308b"},"content":{"rendered":"\n<p>SonarQube\u306e\u4f7f\u3044\u65b9\u542b\u3081\u3066\u5099\u5fd8\u9332\u3002<\/p>\n\n\n\n<h2 id=\"outline__1\" class=\"wp-block-heading\">SonarQube\u3068\u306f<\/h2>\n\n\n\n<p>\u30b3\u30fc\u30c9\u306e\u9759\u7684\u5206\u6790\u3067\u81ea\u52d5\u30ec\u30d3\u30e5\u30fc\u3092\u884c\u3044\u3001\u30b3\u30fc\u30c9\u54c1\u8cea\u3092\u7d99\u7d9a\u7684\u306b\u691c\u67fb\u3059\u308b\u305f\u3081\u306e\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9<br>\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u6a5f\u80fd\u304c\u3042\u308b<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u30d0\u30b0\u304c\u57cb\u3081\u8fbc\u307e\u308c\u3066\u3044\u308b\u30b3\u30fc\u30c9\uff08Bugs\uff09<\/li><li>\u91cd\u8907\u30b3\u30fc\u30c9\u306e\u691c\u51fa\uff08Duplications\uff09<\/li><li>\u8106\u5f31\u6027\u306e\u3042\u308b\u30b3\u30fc\u30c9\u306e\u691c\u51fa\uff08Vulnerabilities\uff09<\/li><li>\u30d0\u30b0\u3092\u8a98\u767a\u3057\u305d\u3046\u306a\u30b3\u30fc\u30c9\u306e\u691c\u51fa\uff08Code Smells\uff09<\/li><li>\u30ab\u30d0\u30ec\u30c3\u30b8\u8a08\u6e2c\uff08Coverage\uff09<\/li><\/ul>\n\n\n\n<p>\u307e\u305f\u3001QualityGate\uff08\u81ea\u5206\u3067\u8a2d\u5b9a\u3067\u304d\u308b\u54c1\u8cea\u304c\u826f\u3044\u72b6\u614b\u304b\u306e\u95be\u5024\uff09\u3067\u30b3\u30fc\u30c9\u54c1\u8cea\u306e\u5224\u5b9a\u3092\u3057\u3066\u304f\u308c\u308b\u3002<\/p>\n\n\n\n<p>\u4e0b\u306fSonarQube\u4e0a\u3067\u78ba\u8a8d\u3067\u304d\u308b\u9759\u7684\u5206\u6790\u7d50\u679c\u306e\u4f8b<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"742\" height=\"141\" src=\"https:\/\/ito-u-oti.com\/wp-content\/uploads\/2021\/05\/image-8.png\" alt=\"\" class=\"wp-image-1256\"\/><\/figure>\n\n\n\n<h2 id=\"outline__2\" class=\"wp-block-heading\">\u69cb\u7bc9\u3059\u308b<\/h2>\n\n\n\n<p><a href=\"https:\/\/hub.docker.com\/_\/sonarqube\">docker hub\u306esonarqube<\/a>\u3092\u4f7f\u3046<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\ndocker run -p 9000:9000 --name sonarqube -d --restart always -it sonarqube:lts\n<\/pre><\/div>\n\n\n<p>docker ps\u30b3\u30de\u30f3\u30c9\u3067Status up\u306b\u306a\u3063\u3066\u3044\u308c\u3070OK<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$ docker ps\nCONTAINER ID   IMAGE            COMMAND           CREATED          STATUS        PORTS                     NAMES\n21be52e54145   sonarqube:lts    &quot;.\/bin\/run.sh&quot;    48 seconds ago   Up 46 days    0.0.0.0:9000-&gt;9000\/tcp    sonarqube\n<\/pre><\/div>\n\n\n<p><a href=\"http:\/\/localhost:9000\">http:\/\/localhost:9000<\/a>\u3067\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308c\u3070OK<\/p>\n\n\n\n<p>\u521d\u671f\u30d1\u30b9\u30ef\u30fc\u30c9\u306fadmin\/admin<\/p>\n\n\n\n<p>\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3068\u30c0\u30c3\u30b7\u30e5\u30dc\u30fc\u30c9\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u3002<br>\u3053\u3053\u3067\u306f\u307e\u3060\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u4f55\u3082\u7121\u3044\u306e\u3067\u7a7a\u306e\u72b6\u614b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"408\" src=\"https:\/\/ito-u-oti.com\/wp-content\/uploads\/2021\/05\/image-9-1024x408.png\" alt=\"\" class=\"wp-image-1257\"\/><\/figure>\n\n\n\n<h2 id=\"outline__3\" class=\"wp-block-heading\">QualityGates\u306e\u8a2d\u5b9a<\/h2>\n\n\n\n<p>\u30d8\u30c3\u30c0\u30fc\u306eQuality Gates\u3092\u62bc\u3059\u3068Quality Gates\u306e\u8a2d\u5b9a\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b<\/p>\n\n\n\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u300cSonarWay\u300d\u3068\u3044\u3046QualityGates\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u304a\u308a\u3001\u5185\u5bb9\u306f\u4ee5\u4e0b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"352\" src=\"https:\/\/ito-u-oti.com\/wp-content\/uploads\/2021\/05\/image-10-1024x352.png\" alt=\"\" class=\"wp-image-1260\"\/><\/figure>\n\n\n\n<p>\u300c\u301con New Code\u300d\u3068\u66f8\u3044\u3066\u3042\u308b\u901a\u308a\u3001\u65b0\u3057\u304f\u8ffd\u52a0\u3055\u308c\u305f\u30b3\u30fc\u30c9\u306b\u5bfe\u3057\u3066QualityGate\u306e\u5224\u5b9a\u3092\u884c\u3046\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3002<br>\u3082\u3057\u5e38\u306b\u5168\u3066\u306e\u30b3\u30fc\u30c9\u306b\u5bfe\u3057\u3066QualityGate\u306e\u5224\u5b9a\u3092\u884c\u3044\u305f\u3044\u5834\u5408\u306f\u65b0\u305f\u306aQualityGate\u3092Create\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/p>\n\n\n\n<h2 id=\"outline__4\" class=\"wp-block-heading\">project\u3092\u767b\u9332\u3059\u308b<\/h2>\n\n\n\n<p>SonarQube\u4e0a\u3067project\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3082\u3042\u308b\u304c\u3001project\u304c\u3059\u3067\u306b\u3042\u308b\u5834\u5408\u306f\u305d\u306e\u307e\u307eSonarQube\u306b\u6295\u3052\u308b\u5f62\u306e\u307b\u3046\u304c\u697d\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/ito-u-oti.com\/sonarqube-gradle\/\">SonarQube\u3068project\u306e\u9023\u643a\u65b9\u6cd5(Spring Boot,gradle)<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/ito-u-oti.com\/sonarqube-react-single\/\">SonarQube\u3068project\u306e\u9023\u643a\u65b9\u6cd5(React + TypeScript)<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/ito-u-oti.com\/sonarqube-qualitygate-api\/\">SonarQube\u3067\u7ba1\u7406\u3057\u3066\u3044\u308bproject\u306eQualityGate\u306e\u72b6\u614b\u3092API\u3067\u53d6\u5f97\u3059\u308b\u65b9\u6cd5<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SonarQube\u306e\u4f7f\u3044\u65b9\u542b\u3081\u3066\u5099\u5fd8\u9332\u3002 SonarQube\u3068\u306f \u30b3\u30fc\u30c9\u306e\u9759\u7684\u5206\u6790\u3067\u81ea\u52d5\u30ec\u30d3\u30e5\u30fc\u3092\u884c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1263,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[286],"tags":[289,288,287],"class_list":["post-1255","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sonarqube","tag-docker","tag-qualitygate","tag-sonarqube"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/posts\/1255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1255"}],"version-history":[{"count":8,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/posts\/1255\/revisions"}],"predecessor-version":[{"id":1302,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/posts\/1255\/revisions\/1302"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=\/wp\/v2\/media\/1263"}],"wp:attachment":[{"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ito-u-oti.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}