Search code examples
azuredockersonarqubecontainers

Sonarqube container on Azure WebApp and SQLAzure


I try to install sonarqube container on an Azure WebApp.
It works fine as long as you use the H2 database. Unfortunately, this database is emptied each time the container restarts. Therefore, i'm trying to use SQLServer instead of H2.

Everything works fine when the container is hosted on my machine. But on the WebApp, i get an issue form the underlying ElasticSearch:
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

I'm not a Linux power user, but as far as i could read, it can only be changed on the host machine which i cannot tweak. I've tried to use different containers such as this one:
https://azure.microsoft.com/en-in/resources/templates/101-webapp-linux-sonarqube-azuresql/

I've alsofollowed this tutorial: https://www.natmarchand.fr/sonarqube-azure-webapp-containers/

Nothing works :(
Has anyone succeeded to install a Sonarqube container on Azure with SQL Server as database? Or has anyone solved the issue mentioned above? Thanks a lot for your feedbacks.


Solution

  • It's possible to set that parameter using configuration application settings, no need to create a new container.

    In the portal go to application settings and add a new application setting. The name will be SONAR_ES_BOOTSTRAP_CHECKS_DISABLE and the value will be true. This passes the variable to the container and allows it start.