I am trying to run the “sonarqube:community” latest image in an Azure App Service (container). Eventually I will need to run the Enterprise image, but for testing the Community image will do.
The problem I run into is that SonarQube expects index data to be persisted in
/opt/sonarqube/data, while the persistent storage within App Service is mounted to
/home. This causes project data to be reloaded (Elastic Search re-index) on every restart or scale up operation.
I’ve come across several posts where an additional layer is added to the sonarqube images to fix this with symlinks.
While this workaround is possible to implement, it means keeping track of the upstream entry point and updating locally as required.
I was hoping there would be a more elegant solution to change the Home/Data/Temp Dirs?
Thanks in advance.