Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

How to install profiles into sonar with docker example #639

Merged
merged 2 commits into from
Nov 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,25 @@ Demo Sonarqube quality issues : https://www.hack23.com/sonar/project/issues?id=c
# Configuration of Quality profiles

The Cloudformation/Terraform rules can added as Quality profile you decided to use.


https://github.com/Hack23/sonar-cloudformation-plugin/releases

To install the plugin/profile login to you sonar instance download the jar from the releases page into $SONARQUBE_HOME/extensions/plugins making sure to remove any previous versions, then restart your sonarqube server.

Example of how to do this with a demo docker instance:

```
docker run -d --name sonarqube -p 9000:9000 sonarqube:latest
docker exec -it sonarqube /bin/bash
cd /opt/sonarqube/extensions/plugins
wget https://search.maven.org/remotecontent?filepath=com/hack23/sonar/sonar-cloudformation-plugin/3.0.10/sonar-cloudformation-plugin-3.0.10.jar --no-check-certificate

Exit the docker instance

docker restart sonarqube
```
Access your dev sonarqube at http://localhost:9000 and you should be able to see the installed profiles


# Howto

Expand Down