Skip to content

Terraform scripts to create azure virtual machine and bash script to configure as SonarQube server

License

Notifications You must be signed in to change notification settings

gvanderberg/tf_azure_sonarqube_vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SonarQube

Binaries and versions can be found at binaries.sonarsource.com.

Latin1_General_CS_AS
vi /opt/sonarqube/bin/linux-x86-64/sonar.sh
RUN_AS_USER=sonarqube
vi /opt/sonarqube/conf/sonar.properties
sonar.jdbc.username=sonarqube
sonar.jdbc.password=kamisama123
sonar.jdbc.url=jdbc:sqlserver://sqlserver-name.database.windows.net:1433;databaseName=sonarqube
sonar.web.javaAdditionalOpts=-server
sonar.web.host=0.0.0.0
sonar.path.data=/path/to/fast/io/volume/data
sonar.path.temp=/path/to/fast/io/volume/temp

Upgrade Procedure

Update the variable SONARQUBE_VERSION in the upgrade.sh file to the latest version. Before starting the sonarqube service you need to update the service unit configuration to use the new version number. You might also need to do a manual database migration after the service started by going to URL: https://{sonarqube}/setup.

sudo ./upgrade.sh
sudo systemctl stop sonarqube.service
sudo mv /opt/sonarqube /opt/sonarqube-{yyyyMMdd}
sudo mv /opt/sonarqube-{SONARQUBE_VERSION} /opt/sonarqube
sudo vi /etc/systemd/system/sonarqube.service
....
sudo systemctl daemon-reload
sudo systemctl start sonarqube.service

About

Terraform scripts to create azure virtual machine and bash script to configure as SonarQube server

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published