![]() Rename the SonarQube directory to remove the version number mv /opt/sonarqube Create SonarQube System User Account apt install zip unzip sonarqube-8.7.zip -d /opt/ You can as well get the download link from SonarQube binaries page and pull it using wget or curl command wget Install SonarQube on Ubuntu 20.04Įxtract SonarQube to some directory, e.g the /opt directory. As such, navigate to SonarQube downloads page and grab the SonarQube zip file. In this setup, we will be installing the community version. There are different editions of the SonarQube. Once all the prerequisites are met, proceed to install SonarQube on Ubuntu 20.04. ![]() Install them as follows apt install fontconfig-config libfreetype6 Install and Configure SonarQube on Ubuntu 20.04 If you see such an output, then seccomp filter is enabled CONFIG_SECCOMP=yĬONFIG_SECCOMP_FILTER=y Executive Report Fontsįontconfig and FreeType fonts are required for generating SonarQube executive reports. To check if seccomp is available on your kernel with: grep SECCOMP /boot/config-$(uname -r) Seccomp filter, required by Elasticsearch, is usually enabled by default on Ubuntu 20.04. Login as PostgreSQL superuser and Create SonarQube PostgreSQL Database and Database User sudo -Hiu postgres createuser sonaradmin createdb -O sonaradmin sonarqubedb psql ALTER USER sonaradmin WITH ENCRYPTED password 'changeme' \q exit Activate Secure Computing Filter Install PostgreSQL 12 on Ubuntu 20.04 by running the command below apt install postgresql postgresql-contrib In this tutorial, we will install and setup SonarQube on Ubuntu 20.04. SonarQube supports PostgreSQL (version 9.3-9.6, 10-12), Oracle (XE extension, 11G, 12C, 18C 19C) or MSSQL for Windows system. If you want to use OpenJDK, run the command below apt install default-jdk Install and Setup Database for SonarQube If you want to use JRE, run the command below to install it on Ubuntu 20.04 apt install default-jre Note that OpenJDK 11 or JRE 11 is the default version on default Ubuntu 20.04 main repos apt update ![]() Hence, run the command below to install Java 11 on Ubuntu 20.04 (You can choose to install either JRE or OpenJDK Java 11 can work for both SonarQube server and scanner. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |