Running Sonarcube in docker and Execute Tests against it
Sonarcube is a measurement tool for running static codeanalysis
I prefer to run the sonarqube on docker. Because it’s a clean install and portable runtime environment.
To create a network named mynet
we use the following script:
docker network create mynet
Now it’s time to create the postgres database instance named postgres
for this I use the following docker command:
docker run --name sonar-postgres -e POSTGRES_USER =sonar -e…