Sonar Scanner as a container in AWS ECS FARGATE

Hello everyone, I am trying to use sonarqube and sonnar scanner in AWS ECS FARGATE. So far sonarqube is deployed and works good but the problem is a scanner. I was looking for documentation on scanner deployment into ECS but there is not much results. Has anyone tried deploying it this way? I’m looking for any docs or advices you can share.

  • Sonar Scanner 4.8
  • Deployed as a container image in AWS ECR

Hi,

Welcome to the community!

Perhaps the docs will help?

 
Ann

Hello,
I did look at the docs but it is not sufficient. I managed to rech sonarqube url but now I want to scan repo which is in the codecommit in AWS. I was not able to find any documentation that could help with that.

Hi,

Well, you’ll need to check the code out first. Typically you’d have a CI system orchestrating everything, but setting that up’s a bit beyond our scope here.

 
Ann

So there is absolutly no way of setting up sonarscanner to connect to remote repo withouth checking it out first?

Hi,

You need something else that will perform the checkout and kick off the analysis. SonarQube does not handle this for you.

 
HTH,
Ann