Advanced setup
Advanced setup when installing SonarQube Server from the Docker image.
Last updated
Was this helpful?
Advanced setup when installing SonarQube Server from the Docker image.
In our official Docker images, you can find the systems truststore in <JAVA_HOME>/lib/security/cacerts. In order to add new certificates here as well you can:
Bind mount an existing truststore containing your certificates to <JAVA_HOME>/lib/security/cacerts.
docker run -d --name sonarqube -v /path/to/your/cacerts.truststore:/opt/java/openjdk/lib/security/cacerts:ro -p 9000:9000 sonarqube Import your CA certificate the same way as in the zip installation but inside the container.
When reporting Quality Gate status to DevOps platforms, SonarQube uses a DNS cache time to live policy of 30 seconds. If necessary, you can change this setting in your JVM:
echo "networkaddress.cache.ttl=5" >> "${JAVA_HOME}/conf/security/java.security" Please be aware that low values increase the risk of DNS spoofing attacks.
By default, the scripts will use the Java executable available in the PATH. If multiple versions of Java are installed on your server, you may need to explicitly define which version is used.
It is possible to overwrite the default Java executable by setting the environmental variable SONAR_JAVA_PATH.
Configuring network security features:
Last updated
Was this helpful?
Was this helpful?
export SONAR_JAVA_PATH="path/to/java_home/bin/java"setx SONAR_JAVA_PATH "C:\Program Files\java_home\bin\java.exe"
