I am trying to build sonarqube image version 8.7.0 community using Dockerfile along with two files (run.sh, sonar.sh)
(docker-sonarqube/8/community at 7e2c6a2bf55a250c332f8e4bacf0a1fe87264ebf · SonarSource/docker-sonarqube · GitHub) through Azure DevOps pipeline on Azure App service for Webapp Container. I am pushing the image first to Azure Container Registry then Azure app service pulls the image from ACR.
As part of Azure Infrastructure, I have created all resources like Azure App Service, Azure SQL Server and Azure SQL Database.
I have these followings azure app settings:
-
sonar.jdbc.password: password
-
sonar.jdbc.username: username
-
sonar.jdbc.url: jdbc:sqlserver://sonarqube-elastic-sql.database.windows.net:1433;database=sonar;user=username@sonarqube-elastic-sql;password=password;encrypt=true;trustServerCertificate=false;hostNameInCertificate=*.database.windows.net;loginTimeout=30;
-
sonar.web.javaAdditionalOpts: -Djava.security.egd=file:/dev/./urandom
-
WEBSITES_PORT: 9000
-
WEBSITES_CONTAINER_START_TIME_LIMIT: 520
Sonarqube webapp is working find but when I looked at Adminsitration>System: then found below:
:-Database = H2
- URL = jdbc:h2:tcp://127.0.0.1:9092/sonar
- Driver = H2 JDBC Driver
Also, I am attaching my dockerfile and run.sh and sonar.sh files
Please note: I have also includedDockerfile (1).txt (7.2 KB) init_container.txt (2.2 KB) sonar.txt (108 Bytes) SSH part in the attached dockerfile.
But it seems neither SSH nor SQL Databse is working.
Please let me know if you need more information.
Thank you