How to Install SonarQube in Azure Linux VM | Setup SonarQube with Docker Compose in Linux VM
ฝัง
- เผยแพร่เมื่อ 14 ต.ค. 2024
- www.coachdevop...
Pre-requisites:
Instance should have at least 4 GB RAM. Make sure port 9000 is opened as port 9000 is default port for SonarQube.
Make sure below is taken care off.
Login to instance where you will be installing SonarQube, perform the below command:
sudo vi /etc/sysctl.conf
Add the following lines to the bottom of that file:
vm.max_map_count=262144
fs.file-max=65536
Install Docker-compose
Create docker-compose.yml
sudo docker-compose up -d
Make sure SonarQube is up and running by checking the logs
Thanks. Very easy to follow. Clean and direct to the point :)
Glad you liked it!
Thank you !! Easy and clear teaching.
Glad it was helpful!
Amazing. Great tutorial with a clear explanation. Keep it up man you got yourself a sub.
Thank you so much!
Great Presentation! Thank you very much!
Now a question: What if I have SonarQube older version already installed?
How would you suggest to go about the upgrade as opposed to the clean install?
The description on their site is not very clear to me and a video on this topic would be very helpful.
The setup is Azure, Sonar VM for app and a Azure PAS PostgreSQL
Trying to avoid many manual steps.
What would you say?
i know it is not that straight forward, refer this page.. sonarqube.ow2.org/documentation/setup/upgrading/
@@DevOpsCoach Thanks a lot and though I have seen this page, is it possible just to install it fresh, the latest and greatest and then upgrade the database separately and somehow preserve the existing data?
i'm also looking for that please use azure vm, azure pas postgre sql to run ansible role
Nice video It useful for me and please suggest me how to integrate Sql server DB existing DB projects
Thank you soo much
You welcome
how to mount SonarQube volumes.
check the docker compose yaml given in the web page.
www.coachdevops.com/2023/02/how-to-setup-sonarqube-on-vm-in-azure.html
volumes:
- sonarqube_data:/opt/sonarqube/data
- sonarqube_extensions:/opt/sonarqube/extensions
- sonarqube_logs:/opt/sonarqube/logs