How to connect Azure DevOps and SonarQube in a local container?

SonarQube is installed in a docker which is a private network and Azure DevOps for code repo. How to integrate both?

Hello @Anandharaj
and welcome to the SonarSource Community!
Can you clarify what you mean with a private network used for docker? Do you mean that no service run on your docker infrastructure is reachable from the network your Azure Devops is deployed in?

Best.
Sylvain

Hi Sylvain,

What I mean by private network is inside the organization with systems with private IP address. I hope this clarifies your question.

Regards,

Anandharaj

image001.jpg

Hi @Anandharaj
and you are on Azure Devops Services (Microsoft cloud offering) and not on Azure Devops Server I guess, is that correct?
Where are your build agents located, in Microsoft cloud as well?

Best.
Sylvain

Hi Sylvain,

We use Azure DevOps Server.

Regards,

Anandharaj

Ok, so reaching sonarqube should not be that difficult, your Azure build agents will have access to the addresses set on your docker infrastructure, won’t they?
SonarQube service is reachable on the docker host with the port you have exposed for him.
The docker run commands provided as examples with SonarQube documentation is exposing the service on port 9000.

Does it answer your question?
Best
Sylvain