<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Sonarqube on Nico Maas</title>
        <link>https://www.nico-maas.de/tags/sonarqube/</link>
        <description>Recent content in Sonarqube on Nico Maas</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en-us</language>
        <lastBuildDate>Fri, 19 Feb 2021 10:00:00 +0000</lastBuildDate><atom:link href="https://www.nico-maas.de/tags/sonarqube/index.xml" rel="self" type="application/rss+xml" /><item>
            <title>Use Sonarqube with sonar-cxx</title>
            <link>https://www.nico-maas.de/posts/2021-02-19-use-sonarqube-with-sonar-cxx/</link>
            <pubDate>Fri, 19 Feb 2021 10:00:00 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2021-02-19-use-sonarqube-with-sonar-cxx/</guid>
            <description>&lt;h1 id=&#34;installation&#34;&gt;Installation&#xA;&lt;/h1&gt;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Download SonarQube from &lt;a class=&#34;link&#34; href=&#34;https://www.sonarqube.org/downloads/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://www.sonarqube.org/downloads/&lt;/a&gt;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;If you are using Java 8, you need to download SonarQube 6.7.x LTS (look for Historical Downloads on the website)&lt;/li&gt;&#xA;&lt;li&gt;If you are using Java 11 - SonarQube 7.9.x LTS (look for Long term support area on the website)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Unpack the SonarQube ZIP file&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Download the latest sonar-c-plugin.jar and sonar-cxx-plugin.jar from &lt;a class=&#34;link&#34; href=&#34;https://github.com/SonarOpenCommunity/sonar-cxx/releases&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://github.com/SonarOpenCommunity/sonar-cxx/releases&lt;/a&gt;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Insert both jar files into the SONARQUBE_HOME/extensions/plugins extensions directory (within the unpacked ZIP file)&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Start SonarQube and Login&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;On Windows 10, e.g. via SONARQUBE_HOME/bin/windows-x86-64/StartSonar.bat&lt;/li&gt;&#xA;&lt;li&gt;Go to &lt;code&gt;http://127.0.0.1:9000&lt;/code&gt; as soon as &amp;ldquo;SonarQube is up&amp;rdquo; is announced&lt;/li&gt;&#xA;&lt;li&gt;Default login is user admin, password admin&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Navigate to Administration -&amp;gt; Marketplace and make sure the plugins &amp;ldquo;C (Community)&amp;rdquo; and &amp;ldquo;C++ (Community)&amp;rdquo; are installed&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;</description>
        </item><item>
            <title>Upgrade SonarQube 6.7 to 7.9</title>
            <link>https://www.nico-maas.de/posts/2020-01-22-upgrade-sonarqube-6-7-to-7-9/</link>
            <pubDate>Wed, 22 Jan 2020 17:00:00 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2020-01-22-upgrade-sonarqube-6-7-to-7-9/</guid>
            <description>&lt;p&gt;That was surprisingly easy: Just swaped the &lt;code&gt;sonarqube:6.7-community&lt;/code&gt; for the &lt;code&gt;sonarqube:7.9-community&lt;/code&gt; image entry in my docker-compose.yml and restarted the Docker container. Upon boot, the container restarted due to an error:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;ERROR: [2] bootstrap checks failed[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535][2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This could be resolved by executing &lt;code&gt;sudo sysctl -w vm.max_map_count=262144&lt;/code&gt; on my Ubuntu 18.04 LTS / Docker Host. After another restart of the container, it worked and I could start the update using a webbrowser under &lt;code&gt;http://IP:9000/setup&lt;/code&gt;&lt;/p&gt;</description>
        </item><item>
            <title>SonarQube 6.7 Community with Postgres 9.6 in Docker on Ubuntu</title>
            <link>https://www.nico-maas.de/posts/2019-04-30-sonarqube-6-7-community-with-postgres-9-6-in-docker-on-ubuntu/</link>
            <pubDate>Tue, 30 Apr 2019 12:45:40 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2019-04-30-sonarqube-6-7-community-with-postgres-9-6-in-docker-on-ubuntu/</guid>
            <description>&lt;p&gt;This is a very quick install for SonarQube on Ubuntu 18.04 LTS. I presume you got the latest Docker CE 18.09 and docker-compose 1.24 installed.&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;# create folders for sonarqube files and postgres&#xD;&#xA;sudo mkdir -p /var/sonarqube/{conf,data,logs,extensions}&#xD;&#xA;sudo chown -R 999:999 /var/sonarqube&#xD;&#xA;sudo mkdir -p /var/sonarqube/postgres&#xD;&#xA;# make folder for all Docker files in home&#xD;&#xA;mkdir ~/sonarqube&#xD;&#xA;cd sonarqube&#xD;&#xA;# create docker-compose.yml with following content&#xD;&#xA;version: &amp;#39;3.1&amp;#39;&#xD;&#xA;services:&#xD;&#xA;  db:&#xD;&#xA;    image: postgres:9.6-alpine&#xD;&#xA;    restart: unless-stopped&#xD;&#xA;    volumes:&#xD;&#xA;      - /var/sonarqube/postgres:/var/lib/postgresql/data&#xD;&#xA;    environment:&#xD;&#xA;     - POSTGRES_USER=sonar&#xD;&#xA;     - POSTGRES_PASSWORD=sonar&#xD;&#xA;&#xD;&#xA;  sonarqube:&#xD;&#xA;    image: sonarqube:6.7-community&#xD;&#xA;    ports:&#xD;&#xA;      - 9000:9000&#xD;&#xA;      - 9092:9092&#xD;&#xA;    restart: unless-stopped&#xD;&#xA;    volumes:&#xD;&#xA;      - /var/sonarqube/conf:/opt/sonarqube/conf&#xD;&#xA;      - /var/sonarqube/data:/opt/sonarqube/data&#xD;&#xA;      - /var/sonarqube/logs:/opt/sonarqube/logs&#xD;&#xA;      - /var/sonarqube/extensions:/opt/sonarqube/extensions&#xD;&#xA;    environment:&#xD;&#xA;      - SONARQUBE_HOME=/opt/sonarqube&#xD;&#xA;      - SONARQUBE_JDBC_USERNAME=sonar&#xD;&#xA;      - SONARQUBE_JDBC_PASSWORD=sonar&#xD;&#xA;      - SONARQUBE_JDBC_URL=jdbc:postgresql://db/sonar&#xD;&#xA;# launch &#xD;&#xA;docker-compose up -d&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;You can then access your SonarQube instance on http://&lt;code&gt;ServerIP&lt;/code&gt;:9000 with the credential &lt;code&gt;admin/admin&lt;/code&gt;.&lt;/p&gt;</description>
        </item><item>
            <title>Migrate SonarQube from MySQL to PostgreSQL</title>
            <link>https://www.nico-maas.de/posts/2019-04-27-migrate-sonarqube-from-mysql-to-postgresql/</link>
            <pubDate>Sat, 27 Apr 2019 12:45:33 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2019-04-27-migrate-sonarqube-from-mysql-to-postgresql/</guid>
            <description>&lt;p&gt;For checking the quality of my private programming code, I have been using the free edition of &lt;a class=&#34;link&#34; href=&#34;https://www.sonarqube.org/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;SonarQube&lt;/a&gt; for multiple years. It is actually a cool project with a massive flaw: They did allow to use MySQL as Database - but not MariaDB. This struggle kept me a bit at bay, as I parted with MySQL years ago - with this one exception.&lt;/p&gt;&#xA;&lt;p&gt;Some days ago I then stumbled upon the anouncement of SonarQube that did not fix this long-standing issue, but will be &lt;a class=&#34;link&#34; href=&#34;https://community.sonarsource.com/t/end-of-life-of-mysql-support/8667&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;parting completly from MySQL&lt;/a&gt;. So the only choice would be to migrate to Oracle, MS SQL or PostgreSQL.&lt;/p&gt;</description>
        </item><item>
            <title>[Docker] Upgrade Sonarqube from 5.6 to 6.2</title>
            <link>https://www.nico-maas.de/posts/2017-01-20-docker-upgrade-sonarqube-from-5-6-to-6-2/</link>
            <pubDate>Fri, 20 Jan 2017 21:57:36 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2017-01-20-docker-upgrade-sonarqube-from-5-6-to-6-2/</guid>
            <description>&lt;p&gt;I just updated Sonarqube from 5.6 (LTS) to 6.2. Before that, I upgraded all my plugins in Sonarqube itself and made an backup of my installation and database.&#xA;Then, I replaced image: &lt;code&gt;sonarqube:lts-alpine&lt;/code&gt; in my docker-compose.yaml with image: &lt;code&gt;sonarqube:6.2-alpine&lt;/code&gt;.&#xA;I did an docker-compose up and it started, however, I had some errors so it just kept on restarting.&#xA;Following &lt;a class=&#34;link&#34; href=&#34;https://stackoverflow.com/questions/37781951/elasticsearch-bulk-index-error-on-sonar-startup&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;this advice&lt;/a&gt; I then proceded to delete &lt;code&gt;$SONAR_HOME/data/es/&lt;/code&gt;. I then restarted Sonarqube, which worked. I then pointed my Webbrowser to the URL of my Sonarqube Instance and added an &lt;code&gt;/setup&lt;/code&gt; and allowed the Database Upgrade. After that, I had a working new Sonarqube instance :).&lt;/p&gt;</description>
        </item><item>
            <title>[Sonarqube] Use Sonarqube in IntelliJ / PhpStorm / etc.</title>
            <link>https://www.nico-maas.de/posts/2016-10-03-sonarqube-use-sonarqube-in-intellij-phpstorm-etc/</link>
            <pubDate>Mon, 03 Oct 2016 08:00:16 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2016-10-03-sonarqube-use-sonarqube-in-intellij-phpstorm-etc/</guid>
            <description>&lt;p&gt;Sonarqube is cool, as the generated results can not only be viewed via the web interface, but also via an plugin in IntelliJ or other Jetbrains IDEs. The installation is quite simple, you just need to download the latest plugin on this website: &lt;a class=&#34;link&#34; href=&#34;https://plugins.jetbrains.com/plugin/7238&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://plugins.jetbrains.com/plugin/7238&lt;/a&gt; and install it in the way described here: &lt;a class=&#34;link&#34; href=&#34;https://github.com/sonar-intellij-plugin/sonar-intellij-plugin&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://github.com/sonar-intellij-plugin/sonar-intellij-plugin&lt;/a&gt;. After that, you can easily hunt down and eliminate those errors :)!&lt;/p&gt;</description>
        </item><item>
            <title>[Docker] Sonarqube with Gogs/Drone to check software quality</title>
            <link>https://www.nico-maas.de/posts/2016-09-26-docker-sonarqube-with-gogsdrone-to-check-software-quality/</link>
            <pubDate>Mon, 26 Sep 2016 08:00:20 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2016-09-26-docker-sonarqube-with-gogsdrone-to-check-software-quality/</guid>
            <description>&lt;p&gt;Sonarqube is an really useful tool to check for different kind of errors in all kinds of programming languages. If you want to check out Sonarqube in a livedemo, just go over to &lt;a class=&#34;link&#34; href=&#34;https://sonarqube.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;https://sonarqube.com/&lt;/a&gt;. In the last two parts of my Docker series we created an &lt;a class=&#34;link&#34; href=&#34;https://www.nico-maas.de/posts/2016-01-21-docker-install-gogs-as-docker-container/&#34; &gt;gogs Git Repo&lt;/a&gt; as docker container and then went over to integrating gogs with &lt;a class=&#34;link&#34; href=&#34;https://www.nico-maas.de/posts/2016-09-19-docker-ci-with-drone-and-gogs/&#34; &gt;drone (Version 0.4)&lt;/a&gt;, an CI Build Server - also as Docker container. Today, we want to install Sonarqube as a tool to check upon our software quality, so that - as soon as we push an update to our gogs project, drone will execute an analysis using Sonarqube - which will give us information about different kind of errors and code quality.&lt;/p&gt;</description>
        </item></channel>
</rss>
