SonarQube is an open source SAST tool. It scans the codebase for bugs, vulnerabilities, code smells, etc. It’s useful to avoid Technical Debt.
Installation instructions: https://docs.sonarqube.org/latest/setup/install-server/
docker run --rm \
-p 9000:9000 \
-v sonarqube_extensions:/opt/sonarqube/extensions \
<image_name>
# example for image_name: sonarqube:7.9.3-community
# check if it's running
docker logs sonarqube
Access http://localhost:9000
credentials: admin/admin
Note: in production it’s important to have the database in a different container than the one running sonarqube.
sonar-project.properties