Sign inSign up

maurosoft1973/alpine-net-sonarqube-scanner

By maurosoft1973

•Updated over 2 years ago

.NET Sonarqube Scanner Docker image running on Alpine Linux

Image
Developer tools
0

1.8K

maurosoft1973/alpine-net-sonarqube-scanner repository overview

⁠.NET Sonarqube Scanner Docker image running on Alpine Linux

Docker Automated build Docker Pulls Docker Stars

Alpine Version

This Docker image (maurosoft1973/alpine-net-sonarqube-scanner)⁠ is based on the minimal Alpine Linux⁠ with .NET Version v7.0.18⁠.

⁠Alpine Version 3.17.3 (Released Mar 29 2023)
⁠.NET Version 7.0.18 (Released 2024-04-09 00:00:00)

⁠Description

This image include the latest sonarqube scanner for .Net

⁠Architectures

  • :aarch64 - 64 bit ARM
  • :x86_64 - 64 bit Intel/AMD (x86_64/amd64)

⁠Tags

  • :latest latest branch based (Automatic Architecture Selection)
  • :aarch64 latest 64 bit ARM
  • :x86_64 latest 64 bit Intel/AMD
  • :test test branch based (Automatic Architecture Selection)
  • :test-aarch64 test 64 bit ARM
  • :test-x86_64 test 64 bit Intel/AMD
  • :7.0.18 7.0.18 branch based (Automatic Architecture Selection)
  • :7.0.18-aarch64 7.0.18 64 bit ARM
  • :7.0.18-x86_64 7.0.18 64 bit Intel/AMD
  • :7.0.18-3.17.3 7.0.18-3.17.3 branch based (Automatic Architecture Selection)
  • :7.0.18-3.17.3-aarch64 7.0.18-3.17.3 64 bit ARM
  • :7.0.18-3.17.3-x86_64 7.0.18-3.17.3 64 bit Intel/AMD

⁠Howto use this image?

This image creates containers that allow you to scan .net project inside container with Sonarqube.

⁠Environment Variables:

⁠Main Alpine .Net parameters:
  • LC_ALL: default locale (default en_GB.UTF-8)
  • TIMEZONE: default timezone (default Europe/Brussels)
  • SHELL_TERMINAL: shell container (default /bin/sh)

⁠Example of use

⁠1. Run container inside GitLab Pipeline for Test with Report and Coverage

This job use the image maurosoft1973/alpine-net-sonarqube-scanner for scan project and send report to Sonarqube

quality:
    stage: test
    image: maurosoft1973/alpine-net-sonarqube-scanner
    services:
        - name: mcr.microsoft.com/mssql/server:2017-latest
          alias: db
    variables:
        SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar"
        GIT_DEPTH: "0"
    allow_failure: true
    only:
        - master
        - merge_request
    needs: ["unit-test","integration-test"]
    cache:
        key: "${CI_JOB_NAME}"
        paths:
            - .sonar/cache
    script:
      - dotnet sonarscanner begin /k:"$SONAR_PROJECT" /d:sonar.login="$SONAR_TOKEN" /d:sonar.host.url="$SONAR_HOST_URL" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml
      - dotnet build --no-incremental
      - dotnet-coverage collect 'dotnet test' -f xml  -o 'coverage.xml'
      - dotnet sonarscanner end /d:sonar.login="$SONAR_TOKEN"


⁠Last Update 24.12.2025 21:04:41

Tag summary

Content type

Image

Digest

sha256:1532cb87d…

Size

222.5 MB

Last updated

over 2 years ago

docker pull maurosoft1973/alpine-net-sonarqube-scanner