Sign inSign up

magnobiet/sonar-scanner

By magnobiet

•Updated over 6 years ago

🐋 SonarQube Scanner Docker image

Image
0

365

magnobiet/sonar-scanner repository overview

⁠🐳 SonarQube Scanner CLI

SonarQube Scanner Docker image

⁠Build

docker build . -t magnobiet/sonar-scanner:latest

⁠Run

⁠SonarQube server
docker run -d --name sonarqube -p 9000:9000 sonarqube
⁠SonarQube Scanner
docker run --rm --mount type=bind,source="$(pwd)",target=/project-root --workdir /project-root magnobiet/sonar-scanner:latest sonar-scanner

⁠Setup

⁠.bash_functions
function __sonar_scanner() {

  docker run --rm \
    --mount type=bind,source="$(pwd)",target=/project-root \
    --workdir /project-root \
    magnobiet/sonar-scanner:latest \
    sonar-scanner

}
⁠.bash_aliases
alias sonar-scanner='__sonar_scanner'

⁠License

This project is licensed under the MIT License⁠. Copyright © Magno Biét

Tag summary

Content type

Image

Digest

Size

120.3 MB

Last updated

over 6 years ago

docker pull magnobiet/sonar-scanner