Sign inSign up

aloknecessary/sonar-dotnet-v9.0

By aloknecessary

β€’Updated 21 days ago

Custom image with .NET SDK 9, JDK 17, and dotnet-sonar scanner preinstalled

Image
Security
API management
Developer tools
1

10K+

aloknecessary/sonar-dotnet-v9.0 repository overview

⁠SonarQube .NET Analyzer Image

A production-ready, multi-architecture Docker image for running SonarQube analysis on .NET projects, preloaded with all required tooling to eliminate repetitive setup in CI pipelines.

This image is designed for GitHub Actions (container jobs) and self-hosted runners, providing faster, deterministic Sonar analysis with minimal workflow complexity.


⁠What’s Included

  • .NET SDK 9.0
  • OpenJDK 17 (required for SonarQube)
  • dotnet-sonarscanner 5.15.0
  • Non-root default user (UID 1001) to avoid permission issues
  • OCI-compliant metadata labels
  • Multi-architecture support

⁠Why Use This Image?

Typical Sonar workflows repeatedly:

  • Install Java
  • Install SonarScanner
  • Fix root-owned workspace permissions

This image bakes all of that in, resulting in:

  • Faster pipeline execution
  • Deterministic builds
  • Cleaner GitHub Actions YAML
  • No post-job chown / chmod workarounds

⁠Supported Architectures

ArchitectureSupported
amd64βœ…
arm64βœ…

Built using Docker Buildx and published as a single multi-platform manifest.


β πŸ“¦ Source & Maintenance

  • Source repository: GitHub⁠
  • Built and maintained by aloknecessary
  • Based on the official Microsoft Dotnet Docker images

β πŸ“„ License

This project is distributed under the MIT License.

The image also contains software from Microsoft, the OpenJDK project, and SonarSource. Each component remains subject to its own license and notices.

Refer to the upstream projects for detailed license information.

⁠Workspace Permissions

The image runs as the non-root sonar user (UID 1001). A mounted workspace may have ownership or permission settings that prevent writes.

If your runner has this issue, explicitly run the container as root:

docker run --rm --user 0 \
  -v "$PWD:/workspace" \
  -w /workspace \
  aloknecessary/sonar-dotnet-v9.0:latest

For a GitHub Actions container job:

container:
  image: aloknecessary/sonar-dotnet-v9.0:latest
  options: --user 0

Tag summary

Content type

Image

Digest

sha256:3d6a94dbc…

Size

542.9 MB

Last updated

21 days ago

docker pull aloknecessary/sonar-dotnet-v9.0