From 10a2ed60879c38ed3c0c69e0500ef5910f33f605 Mon Sep 17 00:00:00 2001 From: Sebastiaan de Schaetzen Date: Wed, 4 Sep 2024 14:54:19 +0200 Subject: [PATCH] Add sonar scanner --- Dockerfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 319e4ce..ef2ece2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,4 +19,12 @@ LABEL org.opencontainers.image.created="${IMAGE_CREATED}" \ org.opencontainers.image.description="Docker images used by act_runner to run workflows." RUN apt-get update && \ - apt-get -y install gnupg2 + apt-get -y install gnupg2 openjdk-21-jre-headless + +RUN wget -O sonar.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-6.1.0.4477.zip && \ + unzip sonar.zip && \ + mkdir /sonar && \ + mv sonar-scanner-*/* /sonar && \ + rm -r sonar-scanner-* sonar.zip + +ENV PATH="$PATH:/sonar/bin"