Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 587 Bytes

README.md

File metadata and controls

15 lines (9 loc) · 587 Bytes

docker-sonar-scanner-example

usage example of docker-sonar-scanner

This tutorial is meant for when you don't have a Contiouns Integration plataform, your IT administrator is an asshole and you need to quick scan your project with sonar locally on your computer.

  1. Create a Dockerfile with this inside in the same folder of your project:

FROM mercuriete/sonar-scanner:onbuild

  1. Have a look into the docker-compose.yml

  2. start a sonar instance somehow.

  3. start the sonar-scanner container. This container tries to scan the code and then it connects to sonar to write report.