{"id":560,"date":"2017-03-21T16:26:52","date_gmt":"2017-03-21T10:56:52","guid":{"rendered":"http:\/\/www.cyberaka.com\/?p=560"},"modified":"2017-03-21T16:26:52","modified_gmt":"2017-03-21T10:56:52","slug":"setting-up-sonarqube-docker-instance","status":"publish","type":"post","link":"https:\/\/www.cyberaka.com\/?p=560","title":{"rendered":"Setting up Sonarqube docker instance"},"content":{"rendered":"<p>In order to setup a fully functional Sonarqube server via docker I use the following consolidated command:<\/p>\n<p><code><br \/>\ndocker run \\<br \/>\n--detach \\<br \/>\n--name=sonarqube \\<br \/>\n--publish 9000:9000 \\<br \/>\n--publish 9092:9092 \\<br \/>\n--env=\"SONARQUBE_JDBC_USERNAME=sonar\" \\<br \/>\n--env=\"SONARQUBE_JDBC_PASSWORD=sonar\" \\<br \/>\n--env=\"SONARQUBE_JDBC_URL=jdbc:mysql:\/\/mysql:3306\/sonar?useUnicode=true&characterEncoding=utf8&rewriteBatchedStatements=true\" \\<br \/>\n--link mysql:mysql \\<br \/>\nsonarqube:5.1<br \/>\n<\/code><\/p>\n<p>This connects my dockerized mysql instance with sonar and it is able to create tables and start using MySQL properly for storing all it&#8217;s data. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>In order to setup a fully functional Sonarqube server via docker I use the following consolidated command: docker run \\ &#8211;detach \\ &#8211;name=sonarqube \\ &#8211;publish 9000:9000 \\ &#8211;publish 9092:9092 \\ &#8211;env=&#8221;SONARQUBE_JDBC_USERNAME=sonar&#8221; \\ &#8211;env=&#8221;SONARQUBE_JDBC_PASSWORD=sonar&#8221; \\ &#8211;env=&#8221;SONARQUBE_JDBC_URL=jdbc:mysql:\/\/mysql:3306\/sonar?useUnicode=true&#038;characterEncoding=utf8&#038;rewriteBatchedStatements=true&#8221; \\ &#8211;link mysql:mysql \\ sonarqube:5.1 This connects my dockerized mysql instance with sonar and it is able to create tables [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[57],"tags":[],"class_list":["post-560","post","type-post","status-publish","format-standard","hentry","category-docker"],"_links":{"self":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts\/560","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=560"}],"version-history":[{"count":1,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts\/560\/revisions"}],"predecessor-version":[{"id":561,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts\/560\/revisions\/561"}],"wp:attachment":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}