View on GitHub

docker-devbox

[DEV] Docker stacks to quickly setup a dev environment and test some tools.

Notes about SonarQube

Java

git clone https://github.com/IGNF/validator
cd validator
mvn clean package
mvn sonar:sonar -Dsonar.java.binaries=$PWD/**/target/classes \
    -Dsonar.host.url=http://localhost:9000 -Dsonar.login=$SONAR_TOKEN

sonar-scanner under docker

git clone https://github.com/mborne/remote-git
# send to sonarqube
docker run --rm \
    -v $PWD/remote-git:/project \
    -w=/project --network=devbox \
    nikhuber/sonar-scanner:latest sonar-scanner \
    -Dsonar.projectKey=remote-git \
    -Dsonar.language=php \
    -Dsonar.sources=/project/src \
    -Dsonar.host.url=http://sonarqube:9000   -Dsonar.login=$SONAR_TOKEN