Dockerized SonarQube for mobile projects and CI+CD pipelines - Android (Java, Kotlin), iOS (Swift)
This repository contains the Dockerfile of the dpal/docker-sonarqube-mobile-ci image, built on official SonarQube image, extended with plugins recommended for native mobile apps.
- sonarqube-community-branch-plugin
- sonar-checkstyle
- sonar-pmd
- sonar-findbugs
- sonar-detekt
- sonar-swift
- sonar-yaml
- mutation-analysis-plugin
Note: sonar-android plugin is no longer supported, requires sonarqube 7.1. Default Kotlin plugin is used instead.
Note: sonar-kotlin is bundled from sonarqube version 8.5, but detekt plugins is still need to be installed
- SonarScanner
- Android/iOS project to analyze
- Install prerequisites of Backelite/sonar-swift
docker pull dpal/docker-sonarqube-mobile-ci:latest
docker build -t dpal/docker-sonarqube-mobile-ci github.com/paldom/docker-sonarqube-mobile-ci
Here's an example how to run this docker container:
docker run -d --name sonarqube -p 9000:9000 dpal/docker-sonarqube-mobile-ci
For advanced usage and more details see official guide.