Must-share information (formatted with Markdown):
- which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
Sonarqube 9.0.2 /sonar-scanner-cli-184.108.40.20647
- what are you trying to achieve
We currently have repos in the company that are developed in several languages like Python , go , typescript.
we have build docker image per languages for running sonarqube-scanner but i guess this is hard to mantain updated since we have to keep updated each docker image changing language version.
example a docker image for python that we have built is below , and the same for other two languages but changing the docker image for nodejs etc:
cat >>Dockerfile <<END_DOCKER
RUN python3.7 -m pip install --upgrade pip tox --no-cache-dir
RUN apt-get update && apt-get install shellcheck && apt-get clean
RUN curl https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-220.127.116.1147-linux.zip > sonarqube.zip
&& unzip sonarqube.zip
&& rm sonarqube.zip
ENV SONARQUBE_HOME sonar-scanner-18.104.22.16847-linux
RUN mkdir /home/build
what I am would like to know if there is some docker image that is agnostic to the language , that allow us to have just one image that works for all repos.
- what have you tried so far to achieve this
it was described above answer