In some environments, it may make more sense to prepare a custom image containing your configuration. A Dockerfile to achieve this may be as simple as:. A SonarQube instance will stop gracefully, waiting for any tasks in progress to finish. Waiting for in-progress tasks to finish can take a large amount of time which the docker does not expect by default when stopping. To avoid having the SonarQube instance killed by the Docker daemon after 10 seconds, it is best to configure a timeout to stop the container with --stop-timeout.
For example:. The administration guide can be found here. As with all Docker images, these likely also contain other software which may be under other licenses such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained. As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
This is configured in sonar-project. You can configure more parameters. See Analysis Parameters for details. The following sections offer advanced configuration options when running the SonarScanner with Docker. Click the headings to expand the instructions. You can run the Docker image as a non-root user using the --user option.
For example, to run as the current user:. When running the container as a non-root user you have to make sure the user has read and write access to the directories you are mounting like your source code or scanner cache directory , otherwise you may encounter permission-related problems.
To prevent SonarScanner from re-downloading language analyzers each time you run a scan, you can mount a directory where the scanner stores the downloads so that the downloads are reused between scanner runs.
On some CI systems, you also need to add this directory to your CI cache configuration. To do this, follow these steps:. Alternatively, you can create your own container that includes the modified cacerts file. Create a Dockerfile with the following contents:. Then, assuming both the cacerts and Dockerfile are in the current directory, create the new image with a command such as:.
Java heap space error or java. In Windows environments, avoid the double-quotes, since they get misinterpreted and combine the two parameters into a single one. Unsupported major. No protobuf files will be loaded for this project. Scanner CLI is not able to analyze. NET projects. Please, use the SonarScanner for. If you are running the SonarScanner for. NET, ensure that you are not hitting a known limitation. Long Term Support version , wrapping-up all the great features of 8.
This LTS is the most secure yet! We're constantly shipping new versions since ! If you really need historical packages you'll find them below, however definitely consider upgrading to the latest and greatest. Show all versions. Oct - Long Term Support version , wrapping-up all the great features of 8. July - Former LTS, wrapping-up all the great features of 7. January 28, - Drop of modules, simplification of Quality Gates, taint detection in collections. October 29, - Ruby and open-sourced VB.
NET analysis, import of issues from 3rd-party Roslyn analyzers. February 2, - Live update of project measures and quality gate status, read-only built-in "Sonar way" quality gate. November 8, - Former LTS, wrapping-up all the great features of 6. October 20, - New Measures page, "Edit Quality Profile" permission, enhanced "Projects Management" page, notification for failed background tasks, authentication for Webhooks.
August 3, - Show leak on Projects space, understand the history of a project, read-only built-in quality profiles with highlighting on "Sonar way" ones, onboarding for new users. October 13, - Redesign of the Settings domain, improvements on the project home page, first steps towards clustering. June 3, - Former LTS, wrapping-up all the great features of 5.
January 3, - New project homepage, cross-project duplication, access tokens. September 29, - Former LTS, wrapping-up all the great features of 4.
September 26, - Management of rule templates and custom rules, new Component Viewer, improved multi-language support, built-in Web Service API page. July 31, - Quality Gate concept replacing Alert concept. Technical Debt UX integration. March 26, - Multi-language support, tags for rules, new visual measure filter representations.
0コメント