├── .github └── workflows │ ├── release.yml │ └── test.yml ├── .gitignore ├── LICENSE ├── README.md ├── README.tpl.md ├── README_DOCKERHUB.md ├── README_DOCKERHUB.tpl.md ├── conf ├── sonar-lts.properties └── sonar.properties ├── current ├── Dockerfile └── full │ └── Dockerfile ├── dev ├── Dockerfile └── build.sh ├── docker-compose-lts.yml ├── docker-compose.yml ├── generate-readme.sh ├── lts-6.7 ├── Dockerfile └── full │ └── Dockerfile ├── lts-7.9 ├── Dockerfile └── full │ └── Dockerfile ├── lts ├── Dockerfile └── full │ └── Dockerfile ├── release-lts.sh ├── release.sh └── vars.json /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: Release 2 | on: 3 | push: 4 | tags: ["*"] 5 | jobs: 6 | release: 7 | name: Release 8 | runs-on: ubuntu-20.04 9 | environment: release 10 | steps: 11 | - uses: actions/checkout@v2 12 | - name: Docker login 13 | run: echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin 14 | env: 15 | DOCKER_USER: ${{secrets.DOCKER_USER}} 16 | DOCKER_PASS: ${{secrets.DOCKER_PASS}} 17 | - name: Release 18 | run: | 19 | export VERSION=`jq -r '.current.version' vars.json` 20 | ./release.sh 21 | release-lts: 22 | name: Release LTS 23 | runs-on: ubuntu-20.04 24 | environment: release-lts 25 | steps: 26 | - uses: actions/checkout@v2 27 | - name: Docker login 28 | run: echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin 29 | env: 30 | DOCKER_USER: ${{secrets.DOCKER_USER}} 31 | DOCKER_PASS: ${{secrets.DOCKER_PASS}} 32 | - name: Release LTS 33 | run: | 34 | export VERSION=`jq -r '.lts.version' vars.json` 35 | ./release-lts.sh 36 | -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- 1 | name: Test 2 | on: 3 | pull_request: 4 | jobs: 5 | test: 6 | name: Test 7 | runs-on: ubuntu-20.04 8 | steps: 9 | - uses: actions/checkout@v2 10 | - name: Docker build 11 | run: | 12 | export VERSION=`jq -r '.current.version' vars.json` 13 | docker build -t mwizner/sonarqube-scala-plugins:$VERSION current 14 | docker build -t mwizner/sonarqube-scala-plugins:$VERSION-full current/full 15 | - name: Docker build LTS 16 | run: | 17 | export VERSION_LTS=`jq -r '.lts.version' vars.json` 18 | docker build -t mwizner/sonarqube-scala-plugins:$VERSION_LTS lts 19 | docker build -t mwizner/sonarqube-scala-plugins:$VERSION_LTS-full lts/full 20 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .idea 3 | .metals 4 | .vscode 5 | *.jar 6 | *.orig 7 | logs 8 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright {yyyy} {name of copyright owner} 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # sonar-scala-docker 2 | 3 | [![GitHub version]()](https://github.com/mwz/sonarqube-scala-docker/releases) 4 | [![GitHub version lts]()](https://github.com/mwz/sonarqube-scala-docker/releases) 5 | [![GitHub version lts 7.9]()](https://github.com/mwz/sonarqube-scala-docker/releases) 6 | [![GitHub version lts 6.7]()](https://github.com/mwz/sonarqube-scala-docker/releases) 7 | [![Docker Pulls](https://img.shields.io/docker/pulls/mwizner/sonarqube-scala-plugins.svg)](https://hub.docker.com/r/mwizner/sonarqube-scala-plugins) 8 | 9 | Docker images and docker-compose recipes for out-of-the-box 10 | [SonarQube 9.4.0](https://www.sonarqube.org), 11 | [SonarQube 8.9 LTS](https://www.sonarqube.org/sonarqube-8-9-lts), 12 | [SonarQube 7.9 LTS](https://www.sonarqube.org/sonarqube-7-9-lts) and 13 | [SonarQube 6.7 LTS](https://www.sonarqube.org/sonarqube-6-7-lts) instance with 14 | support for [Scala](http://www.scala-lang.org), 15 | [Scoverage](https://github.com/scoverage/scalac-scoverage-plugin) (code coverage 16 | metrics) and [Scalastyle](http://www.scalastyle.org) + 17 | [Scapegoat](https://github.com/sksamuel/scapegoat) (static code analysis). 18 | :sunglasses: 19 | 20 | ## Usage 21 | 22 | To start SonarQube in a daemon mode, simply run: 23 | 24 | ```bash 25 | docker-compose up -d 26 | ``` 27 | 28 | or the following for the LTS version: 29 | 30 | ```bash 31 | docker-compose -f docker-compose-lts.yml up -d 32 | ``` 33 | 34 | Once docker pulls all the required images and starts up the containers, the 35 | application should become available on [http://localhost](http://localhost). The 36 | default SonarQube login details for the Administrator account are `admin:admin`. 37 | 38 | You can also use a standalone docker image which contains SonarQube server with 39 | bundled sonar-scala plugin, 40 | [`mwizner/sonarqube-scala-plugins:6.0.0-full`](https://hub.docker.com/r/mwizner/sonarqube-scala-plugins)(or 41 | `mwizner/sonarqube-scala-plugins:latest-full`) and 42 | [`mwizner/sonarqube-scala-plugins:5.8.0-full`](https://hub.docker.com/r/mwizner/sonarqube-scala-plugins) 43 | (or `mwizner/sonarqube-scala-plugins:latest-lts-full`) for the current LTS 44 | version. Alternatively, we also provide an image for the old SonarQube 7.9 LTS 45 | version - 46 | [`mwizner/sonarqube-scala-plugins:4.2.0-full`](https://hub.docker.com/r/mwizner/sonarqube-scala-plugins) 47 | and SonarQube 6.7 LTS version - 48 | [`mwizner/sonarqube-scala-plugins:2.12.0-full`](https://hub.docker.com/r/mwizner/sonarqube-scala-plugins) 49 | 50 | To start the container issue the following command: 51 | _See the version compatibility matrix [below](#compatibility-matrix) to 52 | determine which version you should use._ 53 | 54 | ```bash 55 | docker run -d \ 56 | --name sonarqube-scala-plugins-full \ 57 | -p 80:9000 \ 58 | -e SONARQUBE_JDBC_USERNAME=sonar \ 59 | -e SONARQUBE_JDBC_PASSWORD=sonar \ 60 | -e SONARQUBE_JDBC_URL=jdbc:postgresql://localhost/sonar \ 61 | mwizner/sonarqube-scala-plugins:6.0.0-full 62 | ``` 63 | 64 | Please note that if you don't specify the `SONARQUBE_JDBC_URL` variable, 65 | SonarQube will use an embedded H2 database, which is not recommended in 66 | production, but if you don't have access to an existing database or you just 67 | want to try the image, you can use the following command: 68 | 69 | ```bash 70 | docker run -d \ 71 | --name sonarqube-scala-plugins-full \ 72 | -p 80:9000 \ 73 | mwizner/sonarqube-scala-plugins:6.0.0-full 74 | ``` 75 | 76 | ## Dependencies 77 | 78 | - [SonarQube 9.4.0](https://hub.docker.com/_/sonarqube) or 79 | [SonarQube 8.9 LTS](https://hub.docker.com/_/sonarqube) or 80 | [SonarQube 7.9 LTS](https://hub.docker.com/_/sonarqube) or 81 | [SonarQube 6.7 LTS](https://hub.docker.com/_/sonarqube) 82 | - [PostgreSQL 12/13](https://hub.docker.com/_/postgres) 83 | - [mwz/sonar-scala](https://github.com/mwz/sonar-scala) - provides support for 84 | scalastyle, scoverage and scapegoat 85 | 86 | _(versions before `2.7.0` used 87 | [arthepsy/sonar-scala-extra](https://github.com/arthepsy/sonar-scala-extra) for 88 | scapegoat support)_ 89 | 90 | ## Compatibility Matrix 91 | 92 | 93 | |Version | SonarQube | sonar-scala | 94 | |--------|-----------|-------------| 95 | [6.0.0](https://github.com/mwz/sonarqube-scala-docker/releases/tag/6.0.0) | 9.4.0 [documentation](https://docs.sonarqube.org/9.4), [changelog](https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=17167) | [9.0.0](https://github.com/mwz/sonar-scala/releases/tag/v9.0.0) 96 | [5.8.0](https://github.com/mwz/sonarqube-scala-docker/releases/tag/5.8.0) | 8.9.4 LTS [documentation](https://docs.sonarqube.org/8.9), [changelog](https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=17027) | [8.9.0](https://github.com/mwz/sonar-scala/releases/tag/v8.9.0) 97 | [4.2.0](https://github.com/mwz/sonarqube-scala-docker/releases/tag/4.2.0) | 7.9.1 LTS [documentation](https://docs.sonarqube.org/7.9), [changelog](https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=15029) | [8.9.0](https://github.com/mwz/sonar-scala/releases/tag/v7.9.0) 98 | [2.12.0](https://github.com/mwz/sonarqube-scala-docker/releases/tag/2.12.0) | 6.7.7 LTS [documentation](https://docs.sonarqube.org/display/SONARQUBE67/Documentation), [changelog](https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14865) | [6.8.0](https://github.com/mwz/sonar-scala/releases/tag/v6.8.0) 99 | 100 | 101 |
102 | Other versions 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | 137 | 138 | 139 | 140 | 141 | 142 | 143 | 144 | 145 | 146 | 147 | 148 | 149 | 150 | 151 | 152 | 153 | 154 | 155 | 156 | 157 | 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 196 | 197 | 198 | 199 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | 227 | 228 | 229 | 230 | 231 | 232 | 233 | 234 | 235 | 236 | 237 | 238 | 239 | 240 | 241 | 242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | 273 | 274 | 275 | 276 | 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 |
VersionSonarQubesonar-scalasonar-scala-extra
5.7.08.7.1 documentation, changelog8.7.0
5.6.08.5.1 documentation, changelog8.6.0
5.5.08.4.2 documentation, changelog8.5.0
5.4.08.3.1 documentation, changelog8.4.0
5.3.08.3.1 documentation, changelog8.3.0
5.2.08.2 documentation, changelog8.2.0
5.1.08.1 documentation, changelog8.1.0
5.0.08.1 documentation, changelog8.0.0
3.7.07.8 documentation, changelog7.6.0
3.6.07.7 documentation, changelog7.5.0
3.5.07.6 documentation, changelog7.4.0
3.4.07.4 documentation, changelog7.3.1
3.3.07.4 documentation, changelog7.3.0
3.2.17.4 documentation, changelog7.2.0
3.2.07.4 documentation, changelog7.2.0
3.1.07.4 documentation, changelog7.1.0
3.0.07.3 documentation, changelog7.0.0
4.2.07.9.1 LTS documentation, changelog7.9.0
4.1.07.9.1 LTS documentation, changelog7.8.0
4.0.07.9.1 LTS documentation, changelog7.7.0
2.11.06.7.6 LTS documentation, changelog6.8.0
2.10.06.7.6 LTS documentation, changelog6.7.0
2.9.06.7.5 LTS documentation, changelog6.6.0
2.8.06.7.5 LTS documentation, changelog6.5.1
2.7.06.7.4 LTS documentation, changelog6.5.0
2.6.06.7.4 LTS documentation, changelog6.4.01.3.0
2.5.06.7.3 LTS documentation, changelog6.4.01.3.0
2.4.06.7.3 LTS documentation, changelog6.3.01.3.0
2.3.06.7.3 LTS documentation, changelog6.2.01.3.0
2.2.16.7.3 LTS documentation, changelog6.1.01.3.0
2.2.06.7.2 LTS documentation, changelog6.1.01.3.0
2.1.06.7.1 LTS documentation, changelog6.0.01.3.0
303 |
304 |
305 | 306 | _Please note, that starting from version `2.7.0`, the images no longer contain 307 | the [sonar-scala-extra](https://github.com/arthepsy/sonar-scala-extra) plugin as 308 | sonar-scala provides Scapegoat support from version `6.5.0` onwards._ 309 | 310 | ## Recommendations 311 | 312 | [sbt-sonar](https://github.com/mwz/sbt-sonar) is an sbt plugin which provides a 313 | way to automate analysis of Scala projects with SonarQube. 314 | 315 | ## Changelog 316 | 317 |
318 | Expand to see the changelog. 319 |
    320 |
  • 5.8.0 - Upgraded sonar-scala to 8.9.0 & SonarQube to 8.9.4.
  • 321 |
  • 5.7.0 - Upgraded sonar-scala to 8.7.0 & SonarQube to 8.7.1.
  • 322 |
  • 5.6.0 - Upgraded sonar-scala to 8.6.0 & SonarQube to 8.5.1.
  • 323 |
  • 5.5.0 - Upgraded sonar-scala to 8.5.0 & SonarQube to 8.4.
  • 324 |
  • 5.4.0 - Upgraded sonar-scala to 8.4.0.
  • 325 |
  • 5.3.0 - Upgraded sonar-scala to 8.3.0 & SonarQube to 8.3.
  • 326 |
  • 5.2.0 - Upgraded sonar-scala to 8.2.0 & SonarQube to 8.2.
  • 327 |
  • 5.1.0 - Upgraded sonar-scala to 8.1.0.
  • 328 |
  • 5.0.0 - Upgraded sonar-scala to 8.0.0 & SonarQube to 8.1.
  • 329 |
  • 4.2.0 - Upgraded sonar-scala to 7.9.0.
  • 330 |
  • 4.1.0 - Upgraded sonar-scala to 7.8.0.
  • 331 |
  • 4.0.0 - Upgraded sonar-scala to 7.7.0 & SonarQube to 7.9.1 LTS.
  • 332 |
  • 3.7.0 - Upgraded sonar-scala to 7.6.0 & SonarQube to 7.8.
  • 333 |
  • 3.6.0 - Upgraded sonar-scala to 7.5.0 & SonarQube to 7.7.
  • 334 |
  • 3.5.0 - Upgraded sonar-scala to 7.4.0 & SonarQube to 7.6.
  • 335 |
  • 3.4.0 - Upgraded sonar-scala to 7.3.1.
  • 336 |
  • 3.3.0 - Upgraded sonar-scala to 7.3.0.
  • 337 |
  • 3.2.1 - Fixed file system permissions.
  • 338 |
  • 3.2.0 - Upgraded sonar-scala to 7.2.0.
  • 339 |
  • 3.1.0 - Upgraded sonar-scala to 7.1.0 & SonarQube to 7.4.
  • 340 |
  • 3.0.0 - Upgraded sonar-scala to 7.0.0 & SonarQube to 7.3.
  • 341 |
  • 2.12.0 - Upgraded SonarQube to 6.7.7 LTS.
  • 342 |
  • 2.11.0 - Upgraded sonar-scala to 6.8.0.
  • 343 |
  • 2.10.0 - Upgraded sonar-scala to 6.7.0 & SonarQube to 6.7.6.
  • 344 |
  • 2.9.0 - Upgraded sonar-scala to 6.6.0.
  • 345 |
  • 2.8.0 - Upgraded sonar-scala to 6.5.1 & SonarQube to 6.7.5.
  • 346 |
  • 2.7.0 - Upgraded sonar-scala to 6.5.0, which brings support for scapegoat.
  • 347 |
  • 2.6.0 - Upgraded SonarQube to 6.7.4.
  • 348 |
  • 2.5.0 - Upgraded sonar-scala to 6.4.0.
  • 349 |
  • 2.4.0 - Upgraded sonar-scala to 6.3.0.
  • 350 |
  • 2.3.0 - Upgraded sonar-scala to 6.2.0.
  • 351 |
  • 2.2.1 - Upgraded SonarQube to 6.7.3 LTS.
  • 352 |
  • 2.2.0 - Upgraded sonar-scala to 6.1.0 & SonarQube to 6.7.2 LTS.
  • 353 |
  • 2.1.0 - Published docker image with Scala plugins to dockerhub 354 | [mwizner/sonarqube-scala-plugins](https://hub.docker.com/r/mwizner/sonarqube-scala-plugins).
  • 355 |
  • 2.0.0 - SonarQube 6.7.1 LTS.
  • 356 |
  • 1.0.0 - SonarQube 5.6.7 LTS.
  • 357 |
358 |
359 | 360 | ## License 361 | 362 | The project is licensed under the Apache License v2. See the 363 | [LICENSE file](LICENSE) for more details. 364 | -------------------------------------------------------------------------------- /README.tpl.md: -------------------------------------------------------------------------------- 1 | # sonar-scala-docker 2 | 3 | [![GitHub version]()](https://github.com/mwz/sonarqube-scala-docker/releases) 4 | [![GitHub version lts]()](https://github.com/mwz/sonarqube-scala-docker/releases) 5 | [![GitHub version lts 7.9]()](https://github.com/mwz/sonarqube-scala-docker/releases) 6 | [![GitHub version lts 6.7]()](https://github.com/mwz/sonarqube-scala-docker/releases) 7 | [![Docker Pulls](https://img.shields.io/docker/pulls/mwizner/sonarqube-scala-plugins.svg)](https://hub.docker.com/r/mwizner/sonarqube-scala-plugins) 8 | 9 | Docker images and docker-compose recipes for out-of-the-box 10 | [SonarQube {{current.sonar}}](https://www.sonarqube.org), 11 | [SonarQube 8.9 LTS](https://www.sonarqube.org/sonarqube-8-9-lts), 12 | [SonarQube 7.9 LTS](https://www.sonarqube.org/sonarqube-7-9-lts) and 13 | [SonarQube 6.7 LTS](https://www.sonarqube.org/sonarqube-6-7-lts) instance with 14 | support for [Scala](http://www.scala-lang.org), 15 | [Scoverage](https://github.com/scoverage/scalac-scoverage-plugin) (code coverage 16 | metrics) and [Scalastyle](http://www.scalastyle.org) + 17 | [Scapegoat](https://github.com/sksamuel/scapegoat) (static code analysis). 18 | :sunglasses: 19 | 20 | ## Usage 21 | 22 | To start SonarQube in a daemon mode, simply run: 23 | 24 | ```bash 25 | docker-compose up -d 26 | ``` 27 | 28 | or the following for the LTS version: 29 | 30 | ```bash 31 | docker-compose -f docker-compose-lts.yml up -d 32 | ``` 33 | 34 | Once docker pulls all the required images and starts up the containers, the 35 | application should become available on [http://localhost](http://localhost). The 36 | default SonarQube login details for the Administrator account are `admin:admin`. 37 | 38 | You can also use a standalone docker image which contains SonarQube server with 39 | bundled sonar-scala plugin, 40 | [`mwizner/sonarqube-scala-plugins:{{current.version}}-full`](https://hub.docker.com/r/mwizner/sonarqube-scala-plugins)(or 41 | `mwizner/sonarqube-scala-plugins:latest-full`) and 42 | [`mwizner/sonarqube-scala-plugins:{{lts.version}}-full`](https://hub.docker.com/r/mwizner/sonarqube-scala-plugins) 43 | (or `mwizner/sonarqube-scala-plugins:latest-lts-full`) for the current LTS 44 | version. Alternatively, we also provide an image for the old SonarQube 7.9 LTS 45 | version - 46 | [`mwizner/sonarqube-scala-plugins:{{lts79.version}}-full`](https://hub.docker.com/r/mwizner/sonarqube-scala-plugins) 47 | and SonarQube 6.7 LTS version - 48 | [`mwizner/sonarqube-scala-plugins:{{lts67.version}}-full`](https://hub.docker.com/r/mwizner/sonarqube-scala-plugins) 49 | 50 | To start the container issue the following command: 51 | _See the version compatibility matrix [below](#compatibility-matrix) to 52 | determine which version you should use._ 53 | 54 | ```bash 55 | docker run -d \ 56 | --name sonarqube-scala-plugins-full \ 57 | -p 80:9000 \ 58 | -e SONARQUBE_JDBC_USERNAME=sonar \ 59 | -e SONARQUBE_JDBC_PASSWORD=sonar \ 60 | -e SONARQUBE_JDBC_URL=jdbc:postgresql://localhost/sonar \ 61 | mwizner/sonarqube-scala-plugins:{{current.version}}-full 62 | ``` 63 | 64 | Please note that if you don't specify the `SONARQUBE_JDBC_URL` variable, 65 | SonarQube will use an embedded H2 database, which is not recommended in 66 | production, but if you don't have access to an existing database or you just 67 | want to try the image, you can use the following command: 68 | 69 | ```bash 70 | docker run -d \ 71 | --name sonarqube-scala-plugins-full \ 72 | -p 80:9000 \ 73 | mwizner/sonarqube-scala-plugins:{{current.version}}-full 74 | ``` 75 | 76 | ## Dependencies 77 | 78 | - [SonarQube {{current.sonar}}](https://hub.docker.com/_/sonarqube) or 79 | [SonarQube 8.9 LTS](https://hub.docker.com/_/sonarqube) or 80 | [SonarQube 7.9 LTS](https://hub.docker.com/_/sonarqube) or 81 | [SonarQube 6.7 LTS](https://hub.docker.com/_/sonarqube) 82 | - [PostgreSQL 12/13](https://hub.docker.com/_/postgres) 83 | - [mwz/sonar-scala](https://github.com/mwz/sonar-scala) - provides support for 84 | scalastyle, scoverage and scapegoat 85 | 86 | _(versions before `2.7.0` used 87 | [arthepsy/sonar-scala-extra](https://github.com/arthepsy/sonar-scala-extra) for 88 | scapegoat support)_ 89 | 90 | ## Compatibility Matrix 91 | 92 | 93 | |Version | SonarQube | sonar-scala | 94 | |--------|-----------|-------------| 95 | [{{current.version}}](https://github.com/mwz/sonarqube-scala-docker/releases/tag/{{current.version}}) | {{current.sonar}} [documentation]({{{current.sonarDocs}}}), [changelog]({{{current.sonarChangelog}}}) | [{{current.sonarScala}}](https://github.com/mwz/sonar-scala/releases/tag/v{{current.sonarScala}}) 96 | [{{lts.version}}](https://github.com/mwz/sonarqube-scala-docker/releases/tag/{{lts.version}}) | {{lts.sonar}} [documentation]({{{lts.sonarDocs}}}), [changelog]({{{lts.sonarChangelog}}}) | [{{lts.sonarScala}}](https://github.com/mwz/sonar-scala/releases/tag/v{{lts.sonarScala}}) 97 | [{{lts79.version}}](https://github.com/mwz/sonarqube-scala-docker/releases/tag/{{lts79.version}}) | {{lts79.sonar}} [documentation]({{{lts79.sonarDocs}}}), [changelog]({{{lts79.sonarChangelog}}}) | [{{lts.sonarScala}}](https://github.com/mwz/sonar-scala/releases/tag/v{{lts79.sonarScala}}) 98 | [{{lts67.version}}](https://github.com/mwz/sonarqube-scala-docker/releases/tag/{{lts67.version}}) | {{lts67.sonar}} [documentation]({{{lts67.sonarDocs}}}), [changelog]({{{lts67.sonarChangelog}}}) | [{{lts67.sonarScala}}](https://github.com/mwz/sonar-scala/releases/tag/v{{lts67.sonarScala}}) 99 | 100 | 101 |
102 | Other versions 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | {{#versions.current}} 111 | 112 | 113 | 114 | 115 | 116 | 117 | {{/versions.current}} 118 | {{#versions.lts}} 119 | 120 | 121 | 122 | 123 | 124 | 125 | {{/versions.lts}} 126 |
VersionSonarQubesonar-scalasonar-scala-extra
{{version}}{{sonar}} documentation, changelog{{sonarScala}}
{{version}}{{sonar}} documentation, changelog{{sonarScala}}{{#sonarScalaExtra}}{{sonarScalaExtra}}{{/sonarScalaExtra}}
127 |
128 |
129 | 130 | _Please note, that starting from version `2.7.0`, the images no longer contain 131 | the [sonar-scala-extra](https://github.com/arthepsy/sonar-scala-extra) plugin as 132 | sonar-scala provides Scapegoat support from version `6.5.0` onwards._ 133 | 134 | ## Recommendations 135 | 136 | [sbt-sonar](https://github.com/mwz/sbt-sonar) is an sbt plugin which provides a 137 | way to automate analysis of Scala projects with SonarQube. 138 | 139 | ## Changelog 140 | 141 |
142 | Expand to see the changelog. 143 |
    144 |
  • 5.8.0 - Upgraded sonar-scala to 8.9.0 & SonarQube to 8.9.4.
  • 145 |
  • 5.7.0 - Upgraded sonar-scala to 8.7.0 & SonarQube to 8.7.1.
  • 146 |
  • 5.6.0 - Upgraded sonar-scala to 8.6.0 & SonarQube to 8.5.1.
  • 147 |
  • 5.5.0 - Upgraded sonar-scala to 8.5.0 & SonarQube to 8.4.
  • 148 |
  • 5.4.0 - Upgraded sonar-scala to 8.4.0.
  • 149 |
  • 5.3.0 - Upgraded sonar-scala to 8.3.0 & SonarQube to 8.3.
  • 150 |
  • 5.2.0 - Upgraded sonar-scala to 8.2.0 & SonarQube to 8.2.
  • 151 |
  • 5.1.0 - Upgraded sonar-scala to 8.1.0.
  • 152 |
  • 5.0.0 - Upgraded sonar-scala to 8.0.0 & SonarQube to 8.1.
  • 153 |
  • 4.2.0 - Upgraded sonar-scala to 7.9.0.
  • 154 |
  • 4.1.0 - Upgraded sonar-scala to 7.8.0.
  • 155 |
  • 4.0.0 - Upgraded sonar-scala to 7.7.0 & SonarQube to 7.9.1 LTS.
  • 156 |
  • 3.7.0 - Upgraded sonar-scala to 7.6.0 & SonarQube to 7.8.
  • 157 |
  • 3.6.0 - Upgraded sonar-scala to 7.5.0 & SonarQube to 7.7.
  • 158 |
  • 3.5.0 - Upgraded sonar-scala to 7.4.0 & SonarQube to 7.6.
  • 159 |
  • 3.4.0 - Upgraded sonar-scala to 7.3.1.
  • 160 |
  • 3.3.0 - Upgraded sonar-scala to 7.3.0.
  • 161 |
  • 3.2.1 - Fixed file system permissions.
  • 162 |
  • 3.2.0 - Upgraded sonar-scala to 7.2.0.
  • 163 |
  • 3.1.0 - Upgraded sonar-scala to 7.1.0 & SonarQube to 7.4.
  • 164 |
  • 3.0.0 - Upgraded sonar-scala to 7.0.0 & SonarQube to 7.3.
  • 165 |
  • 2.12.0 - Upgraded SonarQube to 6.7.7 LTS.
  • 166 |
  • 2.11.0 - Upgraded sonar-scala to 6.8.0.
  • 167 |
  • 2.10.0 - Upgraded sonar-scala to 6.7.0 & SonarQube to 6.7.6.
  • 168 |
  • 2.9.0 - Upgraded sonar-scala to 6.6.0.
  • 169 |
  • 2.8.0 - Upgraded sonar-scala to 6.5.1 & SonarQube to 6.7.5.
  • 170 |
  • 2.7.0 - Upgraded sonar-scala to 6.5.0, which brings support for scapegoat.
  • 171 |
  • 2.6.0 - Upgraded SonarQube to 6.7.4.
  • 172 |
  • 2.5.0 - Upgraded sonar-scala to 6.4.0.
  • 173 |
  • 2.4.0 - Upgraded sonar-scala to 6.3.0.
  • 174 |
  • 2.3.0 - Upgraded sonar-scala to 6.2.0.
  • 175 |
  • 2.2.1 - Upgraded SonarQube to 6.7.3 LTS.
  • 176 |
  • 2.2.0 - Upgraded sonar-scala to 6.1.0 & SonarQube to 6.7.2 LTS.
  • 177 |
  • 2.1.0 - Published docker image with Scala plugins to dockerhub 178 | [mwizner/sonarqube-scala-plugins](https://hub.docker.com/r/mwizner/sonarqube-scala-plugins).
  • 179 |
  • 2.0.0 - SonarQube 6.7.1 LTS.
  • 180 |
  • 1.0.0 - SonarQube 5.6.7 LTS.
  • 181 |
182 |
183 | 184 | ## License 185 | 186 | The project is licensed under the Apache License v2. See the 187 | [LICENSE file](LICENSE) for more details. 188 | -------------------------------------------------------------------------------- /README_DOCKERHUB.md: -------------------------------------------------------------------------------- 1 | Docker images with out-of-the-box 2 | [SonarQube 9.4.0](https://www.sonarqube.org), 3 | [SonarQube 8.9 LTS](https://www.sonarqube.org/sonarqube-8-9-lts), 4 | [SonarQube 7.9 LTS](https://www.sonarqube.org/sonarqube-7-9-lts) and 5 | [SonarQube 6.7 LTS](https://www.sonarqube.org/sonarqube-6-7-lts) instance with 6 | support for **[Scala](http://www.scala-lang.org)**, 7 | **[Scoverage](https://github.com/scoverage/scalac-scoverage-plugin)** (code 8 | coverage metrics) and **[Scalastyle](http://www.scalastyle.org)** + 9 | **[Scapegoat](https://github.com/sksamuel/scapegoat)** (static code analysis). 10 | 11 | ## Available versions 12 | 13 | There are two types of images available: images with 14 | [sonar-scala](https://github.com/mwz/sonar-scala) plugin, which can be mounted 15 | as a volume into a SonarQube container and images which bundle sonar-scala 16 | plugin with SonarQube server (suffixed with `-full`). 17 | 18 | Starting from version `2.7.0`, the images no longer contain the 19 | [sonar-scala-extra](https://github.com/arthepsy/sonar-scala-extra) plugin as 20 | sonar-scala provides Scapegoat support from version `6.5.0` onwards. 21 | 22 | - `6.0.0`, `latest` 23 | [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/6.0.0/Dockerfile), 24 | `6.0.0-full`, `latest-full` 25 | [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/6.0.0-full/Dockerfile), 26 | [Release 6.0.0](https://github.com/mwz/sonar-scala-docker/releases/tag/6.0.0) 27 | - `5.8.0`, `latest-lts` (8.9 LTS) 28 | [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/5.8.0/Dockerfile), 29 | `5.8.0-full`, `latest-lts-full` (8.9 LTS) 30 | [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/5.8.0-full/Dockerfile), 31 | [Release 5.8.0](https://github.com/mwz/sonar-scala-docker/releases/tag/5.8.0) 32 | - `4.2.0`, `latest-lts` (7.9 LTS) 33 | [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/4.2.0/Dockerfile), 34 | `4.2.0-full`, `latest-lts-full` (7.9 LTS) 35 | [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/4.2.0-full/Dockerfile), 36 | [Release 4.2.0](https://github.com/mwz/sonar-scala-docker/releases/tag/4.2.0) 37 | - `2.12.0` (6.7 LTS) 38 | [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/2.12.0/Dockerfile), 39 | `2.12.0-full` (6.7 LTS) 40 | [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/2.12.0-full/Dockerfile), 41 | [Release 2.12.0](https://github.com/mwz/sonar-scala-docker/releases/tag/2.12.0) 42 | 43 | For older versions please check the 44 | [releases](https://github.com/mwz/sonar-scala-docker/releases) page on Github. 45 | 46 | ## What's included 47 | 48 | | Version | SonarQube | sonar-scala | 49 | | ------------------------ | ----------------- | ---------------------- | 50 | | 6.0.0 | | 9.0.0 | 51 | | 6.0.0-full | 9.4.0 | 9.0.0 | 52 | | 5.8.0 | | 8.9.0 | 53 | | 5.8.0-full | 8.9.4 LTS | 8.9.0 | 54 | | 4.2.0 | | 7.9.0 | 55 | | 4.2.0-full | 7.9.1 LTS | 7.9.0 | 56 | | 2.12.0 | | 6.8.0 | 57 | | 2.12.0-full | 6.7.7 LTS | 6.8.0 | 58 | 59 | ## Usage 60 | 61 | To use one of the volume images, mount it as a volume to your existing SonarQube 62 | container using e.g. `docker-compose`: 63 | 64 | ``` 65 | version: "2" 66 | 67 | services: 68 | sonarqube: 69 | image: sonarqube:9.4.0-community 70 | ports: 71 | - "80:9000" 72 | networks: 73 | - sonarnet 74 | volumes_from: 75 | - plugins 76 | 77 | plugins: 78 | image: mwizner/sonarqube-scala-plugins:6.0.0 79 | volumes: 80 | - sonarqube_plugins:/opt/sonarqube/extensions/plugins 81 | command: /bin/true 82 | 83 | networks: 84 | sonarnet: 85 | driver: bridge 86 | 87 | volumes: 88 | sonarqube_plugins: 89 | ``` 90 | 91 | You can find the full recipe 92 | [here](https://github.com/mwz/sonar-scala-docker/blob/master/docker-compose.yml) 93 | and 94 | [here](https://github.com/mwz/sonar-scala-docker/blob/master/docker-compose-lts.yml) 95 | (for the LTS version). 96 | 97 | To use the `full` image, run the following `docker` command: 98 | 99 | ```bash 100 | docker run -d \ 101 | --name sonarqube-scala-plugins-full \ 102 | -p 80:9000 \ 103 | -e SONARQUBE_JDBC_USERNAME=sonar \ 104 | -e SONARQUBE_JDBC_PASSWORD=sonar \ 105 | -e SONARQUBE_JDBC_URL=jdbc:postgresql://localhost/sonar \ 106 | mwizner/sonarqube-scala-plugins:6.0.0-full 107 | ``` 108 | 109 | Please note that if you don't specify the `SONARQUBE_JDBC_URL` variable, 110 | SonarQube will use an embedded H2 database, which is not recommended in 111 | production, but if you don't have access to an existing database or you just 112 | want to try the image, you can use the following command: 113 | 114 | ```bash 115 | docker run -d \ 116 | --name sonarqube-scala-plugins-full \ 117 | -p 80:9000 \ 118 | mwizner/sonarqube-scala-plugins:6.0.0-full 119 | ``` 120 | 121 | ## Repository 122 | 123 | This project is open-sourced and can be found on 124 | [Github](https://github.com/mwz/sonar-scala-docker). 125 | 126 | sonar-scala documentation can be found on 127 | [sonar-scala.com](https://sonar-scala.com). 128 | -------------------------------------------------------------------------------- /README_DOCKERHUB.tpl.md: -------------------------------------------------------------------------------- 1 | Docker images with out-of-the-box 2 | [SonarQube {{current.sonar}}](https://www.sonarqube.org), 3 | [SonarQube 8.9 LTS](https://www.sonarqube.org/sonarqube-8-9-lts), 4 | [SonarQube 7.9 LTS](https://www.sonarqube.org/sonarqube-7-9-lts) and 5 | [SonarQube 6.7 LTS](https://www.sonarqube.org/sonarqube-6-7-lts) instance with 6 | support for **[Scala](http://www.scala-lang.org)**, 7 | **[Scoverage](https://github.com/scoverage/scalac-scoverage-plugin)** (code 8 | coverage metrics) and **[Scalastyle](http://www.scalastyle.org)** + 9 | **[Scapegoat](https://github.com/sksamuel/scapegoat)** (static code analysis). 10 | 11 | ## Available versions 12 | 13 | There are two types of images available: images with 14 | [sonar-scala](https://github.com/mwz/sonar-scala) plugin, which can be mounted 15 | as a volume into a SonarQube container and images which bundle sonar-scala 16 | plugin with SonarQube server (suffixed with `-full`). 17 | 18 | Starting from version `2.7.0`, the images no longer contain the 19 | [sonar-scala-extra](https://github.com/arthepsy/sonar-scala-extra) plugin as 20 | sonar-scala provides Scapegoat support from version `6.5.0` onwards. 21 | 22 | - `{{current.version}}`, `latest` 23 | [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/{{current.version}}/Dockerfile), 24 | `{{current.version}}-full`, `latest-full` 25 | [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/{{current.version}}-full/Dockerfile), 26 | [Release {{current.version}}](https://github.com/mwz/sonar-scala-docker/releases/tag/{{current.version}}) 27 | - `{{lts.version}}`, `latest-lts` (8.9 LTS) 28 | [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/{{lts.version}}/Dockerfile), 29 | `{{lts.version}}-full`, `latest-lts-full` (8.9 LTS) 30 | [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/{{lts.version}}-full/Dockerfile), 31 | [Release {{lts.version}}](https://github.com/mwz/sonar-scala-docker/releases/tag/{{lts.version}}) 32 | - `{{lts79.version}}`, `latest-lts` (7.9 LTS) 33 | [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/{{lts79.version}}/Dockerfile), 34 | `{{lts79.version}}-full`, `latest-lts-full` (7.9 LTS) 35 | [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/{{lts79.version}}-full/Dockerfile), 36 | [Release {{lts79.version}}](https://github.com/mwz/sonar-scala-docker/releases/tag/{{lts79.version}}) 37 | - `{{lts67.version}}` (6.7 LTS) 38 | [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/{{lts67.version}}/Dockerfile), 39 | `{{lts67.version}}-full` (6.7 LTS) 40 | [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/{{lts67.version}}-full/Dockerfile), 41 | [Release {{lts67.version}}](https://github.com/mwz/sonar-scala-docker/releases/tag/{{lts67.version}}) 42 | 43 | For older versions please check the 44 | [releases](https://github.com/mwz/sonar-scala-docker/releases) page on Github. 45 | 46 | ## What's included 47 | 48 | | Version | SonarQube | sonar-scala | 49 | | ------------------------ | ----------------- | ---------------------- | 50 | | {{current.version}} | | {{current.sonarScala}} | 51 | | {{current.version}}-full | {{current.sonar}} | {{current.sonarScala}} | 52 | | {{lts.version}} | | {{lts.sonarScala}} | 53 | | {{lts.version}}-full | {{lts.sonar}} | {{lts.sonarScala}} | 54 | | {{lts79.version}} | | {{lts79.sonarScala}} | 55 | | {{lts79.version}}-full | {{lts79.sonar}} | {{lts79.sonarScala}} | 56 | | {{lts67.version}} | | {{lts67.sonarScala}} | 57 | | {{lts67.version}}-full | {{lts67.sonar}} | {{lts67.sonarScala}} | 58 | 59 | ## Usage 60 | 61 | To use one of the volume images, mount it as a volume to your existing SonarQube 62 | container using e.g. `docker-compose`: 63 | 64 | ``` 65 | version: "2" 66 | 67 | services: 68 | sonarqube: 69 | image: sonarqube:{{current.sonar}}-community 70 | ports: 71 | - "80:9000" 72 | networks: 73 | - sonarnet 74 | volumes_from: 75 | - plugins 76 | 77 | plugins: 78 | image: mwizner/sonarqube-scala-plugins:{{current.version}} 79 | volumes: 80 | - sonarqube_plugins:/opt/sonarqube/extensions/plugins 81 | command: /bin/true 82 | 83 | networks: 84 | sonarnet: 85 | driver: bridge 86 | 87 | volumes: 88 | sonarqube_plugins: 89 | ``` 90 | 91 | You can find the full recipe 92 | [here](https://github.com/mwz/sonar-scala-docker/blob/master/docker-compose.yml) 93 | and 94 | [here](https://github.com/mwz/sonar-scala-docker/blob/master/docker-compose-lts.yml) 95 | (for the LTS version). 96 | 97 | To use the `full` image, run the following `docker` command: 98 | 99 | ```bash 100 | docker run -d \ 101 | --name sonarqube-scala-plugins-full \ 102 | -p 80:9000 \ 103 | -e SONARQUBE_JDBC_USERNAME=sonar \ 104 | -e SONARQUBE_JDBC_PASSWORD=sonar \ 105 | -e SONARQUBE_JDBC_URL=jdbc:postgresql://localhost/sonar \ 106 | mwizner/sonarqube-scala-plugins:{{current.version}}-full 107 | ``` 108 | 109 | Please note that if you don't specify the `SONARQUBE_JDBC_URL` variable, 110 | SonarQube will use an embedded H2 database, which is not recommended in 111 | production, but if you don't have access to an existing database or you just 112 | want to try the image, you can use the following command: 113 | 114 | ```bash 115 | docker run -d \ 116 | --name sonarqube-scala-plugins-full \ 117 | -p 80:9000 \ 118 | mwizner/sonarqube-scala-plugins:{{current.version}}-full 119 | ``` 120 | 121 | ## Repository 122 | 123 | This project is open-sourced and can be found on 124 | [Github](https://github.com/mwz/sonar-scala-docker). 125 | 126 | sonar-scala documentation can be found on 127 | [sonar-scala.com](https://sonar-scala.com). 128 | -------------------------------------------------------------------------------- /conf/sonar-lts.properties: -------------------------------------------------------------------------------- 1 | # Property values can: 2 | # - be overridden by environment variables. The name of the corresponding environment variable is the 3 | # upper-cased name of the property where all the dot ('.') and dash ('-') characters are replaced by 4 | # underscores ('_'). For example, to override 'sonar.web.systemPasscode' use 'SONAR_WEB_SYSTEMPASSCODE'. 5 | # - be encrypted. See https://redirect.sonarsource.com/doc/settings-encryption.html 6 | 7 | #-------------------------------------------------------------------------------------------------- 8 | # DATABASE 9 | # 10 | # IMPORTANT: 11 | # - The embedded H2 database is used by default. It is recommended for tests but not for 12 | # production use. Supported databases are Oracle, PostgreSQL and Microsoft SQLServer. 13 | # - Changes to database connection URL (sonar.jdbc.url) can affect SonarSource licensed products. 14 | 15 | # User credentials. 16 | # Permissions to create tables, indices and triggers must be granted to JDBC user. 17 | # The schema must be created first. 18 | #sonar.jdbc.username= 19 | #sonar.jdbc.password= 20 | 21 | #----- Embedded Database (default) 22 | # H2 embedded database server listening port, defaults to 9092 23 | #sonar.embeddedDatabase.port=9092 24 | 25 | #----- Oracle 12c/18c/19c 26 | # The Oracle JDBC driver must be copied into the directory extensions/jdbc-driver/oracle/. 27 | # Only the thin client is supported, and we recommend using the latest Oracle JDBC driver. See 28 | # https://jira.sonarsource.com/browse/SONAR-9758 for more details. 29 | # If you need to set the schema, please refer to http://jira.sonarsource.com/browse/SONAR-5000 30 | #sonar.jdbc.url=jdbc:oracle:thin:@localhost:1521/XE 31 | 32 | #----- PostgreSQL 9.3 or greater 33 | # By default the schema named "public" is used. It can be overridden with the parameter "currentSchema". 34 | #sonar.jdbc.url=jdbc:postgresql://localhost/sonarqube?currentSchema=my_schema 35 | 36 | #----- Microsoft SQLServer 2014/2016/2017/2019 and SQL Azure 37 | # A database named sonar must exist and its collation must be case-sensitive (CS) and accent-sensitive (AS) 38 | # Use the following connection string if you want to use integrated security with Microsoft Sql Server 39 | # Do not set sonar.jdbc.username or sonar.jdbc.password property if you are using Integrated Security 40 | # For Integrated Security to work, you have to download the Microsoft SQL JDBC Driver 9.2.0 package from 41 | # https://docs.microsoft.com/en-us/sql/connect/jdbc/release-notes-for-the-jdbc-driver?view=sql-server-ver15#92 42 | # and copy mssql-jdbc_auth-9.2.0.x64.dll to your path. 43 | #sonar.jdbc.url=jdbc:sqlserver://localhost;databaseName=sonar;integratedSecurity=true 44 | 45 | # Use the following connection string if you want to use SQL Auth while connecting to MS Sql Server. 46 | # Set the sonar.jdbc.username and sonar.jdbc.password appropriately. 47 | #sonar.jdbc.url=jdbc:sqlserver://localhost;databaseName=sonar 48 | 49 | #----- Connection pool settings 50 | # The maximum number of active connections that can be allocated 51 | # at the same time, or negative for no limit. 52 | # The recommended value is 1.2 * max sizes of HTTP pools. For example if HTTP ports are 53 | # enabled with default sizes (50, see property sonar.web.http.maxThreads) 54 | # then sonar.jdbc.maxActive should be 1.2 * 50 = 60. 55 | #sonar.jdbc.maxActive=60 56 | 57 | # The maximum number of connections that can remain idle in the 58 | # pool, without extra ones being released, or negative for no limit. 59 | #sonar.jdbc.maxIdle=5 60 | 61 | # The minimum number of connections that can remain idle in the pool, 62 | # without extra ones being created, or zero to create none. 63 | #sonar.jdbc.minIdle=2 64 | 65 | # The maximum number of milliseconds that the pool will wait (when there 66 | # are no available connections) for a connection to be returned before 67 | # throwing an exception, or <= 0 to wait indefinitely. 68 | #sonar.jdbc.maxWait=5000 69 | 70 | #sonar.jdbc.minEvictableIdleTimeMillis=600000 71 | #sonar.jdbc.timeBetweenEvictionRunsMillis=30000 72 | 73 | #-------------------------------------------------------------------------------------------------- 74 | # WEB SERVER 75 | # Web server is executed in a dedicated Java process. By default heap size is 512MB. 76 | # Use the following property to customize JVM options. 77 | # Recommendations: 78 | # 79 | # The HotSpot Server VM is recommended. The property -server should be added if server mode 80 | # is not enabled by default on your environment: 81 | # http://docs.oracle.com/javase/8/docs/technotes/guides/vm/server-class.html 82 | # 83 | # Startup can be long if entropy source is short of entropy. Adding 84 | # -Djava.security.egd=file:/dev/./urandom is an option to resolve the problem. 85 | # See https://wiki.apache.org/tomcat/HowTo/FasterStartUp#Entropy_Source 86 | # 87 | #sonar.web.javaOpts=-Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError 88 | 89 | # Same as previous property, but allows to not repeat all other settings like -Xmx 90 | #sonar.web.javaAdditionalOpts= 91 | 92 | # Binding IP address. For servers with more than one IP address, this property specifies which 93 | # address will be used for listening on the specified ports. 94 | # By default, ports will be used on all IP addresses associated with the server. 95 | #sonar.web.host=0.0.0.0 96 | 97 | # Web context. When set, it must start with forward slash (for example /sonarqube). 98 | # The default value is root context (empty value). 99 | #sonar.web.context= 100 | # TCP port for incoming HTTP connections. Default value is 9000. 101 | #sonar.web.port=9000 102 | 103 | # The maximum number of connections that the server will accept and process at any given time. 104 | # When this number has been reached, the server will not accept any more connections until 105 | # the number of connections falls below this value. The operating system may still accept connections 106 | # based on the sonar.web.connections.acceptCount property. The default value is 50. 107 | #sonar.web.http.maxThreads=50 108 | 109 | # The minimum number of threads always kept running. The default value is 5. 110 | #sonar.web.http.minThreads=5 111 | 112 | # The maximum queue length for incoming connection requests when all possible request processing 113 | # threads are in use. Any requests received when the queue is full will be refused. 114 | # The default value is 25. 115 | #sonar.web.http.acceptCount=25 116 | 117 | # By default users are logged out and sessions closed when server is restarted. 118 | # If you prefer keeping user sessions open, a secret should be defined. Value is 119 | # HS256 key encoded with base64. It must be unique for each installation of SonarQube. 120 | # Example of command-line: 121 | # echo -n "type_what_you_want" | openssl dgst -sha256 -hmac "key" -binary | base64 122 | #sonar.auth.jwtBase64Hs256Secret= 123 | 124 | # The inactivity timeout duration of user sessions, in minutes. After the configured 125 | # period of time, the user is logged out. 126 | # The default value is set to 3 days (4320 minutes). 127 | # It must be set between 5 minutes and 3 months. 128 | # Value must be strictly positive. 129 | #sonar.web.sessionTimeoutInMinutes=4320 130 | 131 | # A passcode can be defined to access some web services from monitoring 132 | # tools without having to use the credentials of a system administrator. 133 | # Check the Web API documentation to know which web services are supporting this authentication mode. 134 | # The passcode should be provided in HTTP requests with the header "X-Sonar-Passcode". 135 | # By default feature is disabled. 136 | #sonar.web.systemPasscode= 137 | 138 | #-------------------------------------------------------------------------------------------------- 139 | # SSO AUTHENTICATION 140 | 141 | # Enable authentication using HTTP headers 142 | #sonar.web.sso.enable=false 143 | 144 | # Name of the header to get the user login. 145 | # Only alphanumeric, '.' and '@' characters are allowed 146 | #sonar.web.sso.loginHeader=X-Forwarded-Login 147 | 148 | # Name of the header to get the user name 149 | #sonar.web.sso.nameHeader=X-Forwarded-Name 150 | 151 | # Name of the header to get the user email (optional) 152 | #sonar.web.sso.emailHeader=X-Forwarded-Email 153 | 154 | # Name of the header to get the list of user groups, separated by comma (optional). 155 | # If the sonar.sso.groupsHeader is set, the user will belong to those groups if groups exist in SonarQube. 156 | # If none of the provided groups exists in SonarQube, the user will only belong to the default group. 157 | # Note that the default group will always be set. 158 | #sonar.web.sso.groupsHeader=X-Forwarded-Groups 159 | 160 | # Interval used to know when to refresh name, email and groups. 161 | # During this interval, if for instance the name of the user is changed in the header, it will only be updated after X minutes. 162 | #sonar.web.sso.refreshIntervalInMinutes=5 163 | 164 | #-------------------------------------------------------------------------------------------------- 165 | # LDAP CONFIGURATION 166 | 167 | # Enable the LDAP feature 168 | # sonar.security.realm=LDAP 169 | 170 | # Set to true when connecting to a LDAP server using a case-insensitive setup. 171 | # sonar.authenticator.downcase=true 172 | 173 | # URL of the LDAP server. Note that if you are using ldaps, then you should install the server certificate into the Java truststore. 174 | # ldap.url=ldap://localhost:10389 175 | 176 | # Bind DN is the username of an LDAP user to connect (or bind) with. Leave this blank for anonymous access to the LDAP directory (optional) 177 | # ldap.bindDn=cn=sonar,ou=users,o=mycompany 178 | 179 | # Bind Password is the password of the user to connect with. Leave this blank for anonymous access to the LDAP directory (optional) 180 | # ldap.bindPassword=secret 181 | 182 | # Possible values: simple | CRAM-MD5 | DIGEST-MD5 | GSSAPI See http://java.sun.com/products/jndi/tutorial/ldap/security/auth.html (default: simple) 183 | # ldap.authentication=simple 184 | 185 | # See : 186 | # * http://java.sun.com/products/jndi/tutorial/ldap/security/digest.html 187 | # * http://java.sun.com/products/jndi/tutorial/ldap/security/crammd5.html 188 | # (optional) 189 | # ldap.realm=example.org 190 | 191 | # Context factory class (optional) 192 | # ldap.contextFactoryClass=com.sun.jndi.ldap.LdapCtxFactory 193 | 194 | # Enable usage of StartTLS (default : false) 195 | # ldap.StartTLS=true 196 | 197 | # Follow or not referrals. See http://docs.oracle.com/javase/jndi/tutorial/ldap/referral/jndi.html (default: true) 198 | # ldap.followReferrals=false 199 | 200 | # USER MAPPING 201 | 202 | # Distinguished Name (DN) of the root node in LDAP from which to search for users (mandatory) 203 | # ldap.user.baseDn=cn=users,dc=example,dc=org 204 | 205 | # LDAP user request. (default: (&(objectClass=inetOrgPerson)(uid={login})) ) 206 | # ldap.user.request=(&(objectClass=user)(sAMAccountName={login})) 207 | 208 | # Attribute in LDAP defining the user’s real name. (default: cn) 209 | # ldap.user.realNameAttribute=name 210 | 211 | # Attribute in LDAP defining the user’s email. (default: mail) 212 | # ldap.user.emailAttribute=email 213 | 214 | # GROUP MAPPING 215 | 216 | # Distinguished Name (DN) of the root node in LDAP from which to search for groups. (optional, default: empty) 217 | # ldap.group.baseDn=cn=groups,dc=example,dc=org 218 | 219 | # LDAP group request (default: (&(objectClass=groupOfUniqueNames)(uniqueMember={dn})) ) 220 | # ldap.group.request=(&(objectClass=group)(member={dn})) 221 | 222 | # Property used to specifiy the attribute to be used for returning the list of user groups in the compatibility mode. (default: cn) 223 | # ldap.group.idAttribute=sAMAccountName 224 | 225 | #-------------------------------------------------------------------------------------------------- 226 | # COMPUTE ENGINE 227 | # The Compute Engine is responsible for processing background tasks. 228 | # Compute Engine is executed in a dedicated Java process. Default heap size is 512MB. 229 | # Use the following property to customize JVM options. 230 | # Recommendations: 231 | # 232 | # The HotSpot Server VM is recommended. The property -server should be added if server mode 233 | # is not enabled by default on your environment: 234 | # http://docs.oracle.com/javase/8/docs/technotes/guides/vm/server-class.html 235 | # 236 | #sonar.ce.javaOpts=-Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError 237 | 238 | # Same as previous property, but allows to not repeat all other settings like -Xmx 239 | #sonar.ce.javaAdditionalOpts= 240 | 241 | #-------------------------------------------------------------------------------------------------- 242 | # ELASTICSEARCH 243 | # Elasticsearch is used to facilitate fast and accurate information retrieval. 244 | # It is executed in a dedicated Java process. Default maximum heap size is 512MB. 245 | # It is recommended to also set MaxDirectMemorySize (-XX:MaxDirectMemorySize) and set it to half the maximum heap size. 246 | # 247 | # -------------------------------------------------- 248 | # Word of caution for Linux users on 64bits systems 249 | # -------------------------------------------------- 250 | # Please ensure Virtual Memory on your system is correctly configured for Elasticsearch to run properly 251 | # (see https://www.elastic.co/guide/en/elasticsearch/reference/5.5/vm-max-map-count.html for details). 252 | # 253 | # When SonarQube runs standalone, a warning such as the following may appear in logs/es.log: 254 | # "max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]" 255 | # When SonarQube runs as a cluster, however, Elasticsearch will refuse to start. 256 | # 257 | 258 | # JVM options of Elasticsearch process 259 | #sonar.search.javaOpts=-Xmx512m -Xms512m -XX:MaxDirectMemorySize=256m -XX:+HeapDumpOnOutOfMemoryError 260 | 261 | # Same as previous property, but allows to not repeat all other settings like -Xmx 262 | #sonar.search.javaAdditionalOpts= 263 | 264 | # Elasticsearch port for incoming HTTP connections. Default is 9001. Use 0 to get a free port. 265 | # As a security precaution, should be blocked by a firewall and not exposed to the Internet. 266 | #sonar.search.port=9001 267 | 268 | # Elasticsearch TCP transport port that is bound to loopback address. When nothing is set, a random port will be chosen. 269 | # As a security precaution, your OS configuration should not expose this port for external access. 270 | #sonar.es.port= 271 | 272 | # Elasticsearch host. The search server will bind this address and the search client will connect to it. 273 | # Default is loopback address. 274 | # As a security precaution, should NOT be set to a publicly available address. 275 | #sonar.search.host= 276 | 277 | #-------------------------------------------------------------------------------------------------- 278 | # UPDATE CENTER 279 | 280 | # Update Center requires an internet connection to request https://update.sonarsource.org 281 | # It is enabled by default. 282 | #sonar.updatecenter.activate=true 283 | 284 | # HTTP proxy (default none) 285 | #http.proxyHost= 286 | #http.proxyPort= 287 | # HTTPS proxy (defaults are values of http.proxyHost and http.proxyPort) 288 | #https.proxyHost= 289 | #https.proxyPort= 290 | 291 | # NT domain name if NTLM proxy is used 292 | #http.auth.ntlm.domain= 293 | 294 | # SOCKS proxy (default none) 295 | #socksProxyHost= 296 | #socksProxyPort= 297 | 298 | # Proxy authentication (used for HTTP, HTTPS and SOCKS proxies) 299 | #http.proxyUser= 300 | #http.proxyPassword= 301 | 302 | # Proxy exceptions: list of hosts that can be accessed without going through the proxy 303 | # separated by the '|' character, wildcard character '*' can be used for pattern matching 304 | # used for HTTP and HTTPS (default none) 305 | # (note: localhost and its literal notations (127.0.0.1, ...) are always excluded) 306 | #http.nonProxyHosts= 307 | 308 | #-------------------------------------------------------------------------------------------------- 309 | # LOGGING 310 | 311 | # SonarQube produces logs in 4 logs files located in the same directory (see property sonar.path.logs below), 312 | # one per process: 313 | # Main process (aka. App) logs in sonar.log 314 | # Web Server (aka. Web) logs in web.log 315 | # Compute Engine (aka. CE) logs in ce.log 316 | # Elasticsearch (aka. ES) logs in es.log 317 | # 318 | # Depending on the startup, all 4 files follow the same rolling policy (see sonar.log.rollingPolicy and sonar.log.maxFiles) but it applies 319 | # individually (eg. if sonar.log.maxFiles=4, there can be at most 4 of each files, ie. 16 files in total). 320 | # If the SonarQube wrapper is used (for example, with the provided start.sh script), the sonar.log rotation policy needs to be set in the wrapper.conf 321 | # 322 | # All 4 files have logs in the same format: 323 | # 1 2 3 4 5 6 324 | # |-----------------| |---| |-|--------------------||------------------------------| |------------------------------------------------------------------------------------------------------------------------------| 325 | # 2016.11.16 16:47:00 INFO ce[AVht0dNXFcyiYejytc3m][o.s.s.c.t.CeWorkerCallableImpl] Executed task | project=org.sonarqube:example-java-maven | type=REPORT | id=AVht0dNXFcyiYejytc3m | submitter=admin | time=1699ms 326 | # 327 | # 1: timestamp. Format is YYYY.MM.DD HH:MM:SS 328 | # YYYY: year on 4 digits 329 | # MM: month on 2 digits 330 | # DD: day on 2 digits 331 | # HH: hour of day on 2 digits in 24 hours format 332 | # MM: minutes on 2 digits 333 | # SS: seconds on 2 digits 334 | # 2: log level. 335 | # Possible values (in order of descending criticality): ERROR, WARN, INFO, DEBUG and TRACE 336 | # 3: process identifier. Possible values: app (main), web (Web Server), ce (Compute Engine) and es (Elasticsearch) 337 | # 4: SQ thread identifier. Can be empty. 338 | # In the Web Server, if present, it will be the HTTP request ID. 339 | # In the Compute Engine, if present, it will be the task ID. 340 | # 5: logger name. Usually a class canonical name. 341 | # Package names are truncated to keep the whole field to 20 characters max 342 | # 6: log payload. Content of this field does not follow any specific format, can vary in length and include line returns. 343 | # Some logs, however, will follow the convention to provide data in payload in the format " | key=value" 344 | # Especially, log of profiled pieces of code will end with " | time=XXXXms". 345 | 346 | # Global level of logs (applies to all 4 processes). 347 | # Supported values are INFO (default), DEBUG and TRACE 348 | #sonar.log.level=INFO 349 | 350 | # Level of logs of each process can be controlled individually with their respective properties. 351 | # When specified, they overwrite the level defined at global level. 352 | # Supported values are INFO, DEBUG and TRACE 353 | #sonar.log.level.app=INFO 354 | #sonar.log.level.web=INFO 355 | #sonar.log.level.ce=INFO 356 | #sonar.log.level.es=INFO 357 | 358 | # Path to log files. Can be absolute or relative to installation directory. 359 | # Default is /logs 360 | #sonar.path.logs=logs 361 | 362 | # Rolling policy of log files 363 | # - based on time if value starts with "time:", for example by day ("time:yyyy-MM-dd") 364 | # or by month ("time:yyyy-MM") 365 | # - based on size if value starts with "size:", for example "size:10MB" 366 | # - disabled if value is "none". That needs logs to be managed by an external system like logrotate. 367 | #sonar.log.rollingPolicy=time:yyyy-MM-dd 368 | 369 | # Maximum number of files to keep if a rolling policy is enabled. 370 | # - maximum value is 20 on size rolling policy 371 | # - unlimited on time rolling policy. Set to zero to disable old file purging. 372 | #sonar.log.maxFiles=7 373 | 374 | # Access log is the list of all the HTTP requests received by server. If enabled, it is stored 375 | # in the file {sonar.path.logs}/access.log. This file follows the same rolling policy as other log file 376 | # (see sonar.log.rollingPolicy and sonar.log.maxFiles). 377 | #sonar.web.accessLogs.enable=true 378 | 379 | # Format of access log. It is ignored if sonar.web.accessLogs.enable=false. Possible values are: 380 | # - "common" is the Common Log Format, shortcut to: %h %l %u %user %date "%r" %s %b 381 | # - "combined" is another format widely recognized, shortcut to: %h %l %u [%t] "%r" %s %b "%i{Referer}" "%i{User-Agent}" 382 | # - else a custom pattern. See http://logback.qos.ch/manual/layouts.html#AccessPatternLayout. 383 | # The login of authenticated user is not implemented with "%u" but with "%reqAttribute{LOGIN}" (since version 6.1). 384 | # The value displayed for anonymous users is "-". 385 | # The SonarQube's HTTP request ID can be added to the pattern with "%reqAttribute{ID}" (since version 6.2). 386 | # If SonarQube is behind a reverse proxy, then the following value allows to display the correct remote IP address: 387 | #sonar.web.accessLogs.pattern=%i{X-Forwarded-For} %l %u [%t] "%r" %s %b "%i{Referer}" "%i{User-Agent}" "%reqAttribute{ID}" 388 | # Default value (which was "combined" before version 6.2) is equivalent to "combined + SQ HTTP request ID": 389 | #sonar.web.accessLogs.pattern=%h %l %u [%t] "%r" %s %b "%i{Referer}" "%i{User-Agent}" "%reqAttribute{ID}" 390 | 391 | #-------------------------------------------------------------------------------------------------- 392 | # OTHERS 393 | 394 | # Delay in seconds between processing of notification queue. Default is 60 seconds. 395 | #sonar.notifications.delay=60 396 | 397 | # Paths to persistent data files (embedded database and search index) and temporary files. 398 | # Can be absolute or relative to installation directory. 399 | # Defaults are respectively /data and /temp 400 | #sonar.path.data=data 401 | #sonar.path.temp=temp 402 | 403 | # Telemetry - Share anonymous SonarQube statistics 404 | # By sharing anonymous SonarQube statistics, you help us understand how SonarQube is used so we can improve the product to work even better for you. 405 | # We don't collect source code or IP addresses. And we don't share the data with anyone else. 406 | # To see an example of the data shared: login as a global administrator, call the WS api/system/info and check the Statistics field. 407 | sonar.telemetry.enable=false 408 | -------------------------------------------------------------------------------- /conf/sonar.properties: -------------------------------------------------------------------------------- 1 | # Property values can: 2 | # - be overridden by environment variables. The name of the corresponding environment variable is the 3 | # upper-cased name of the property where all the dot ('.') and dash ('-') characters are replaced by 4 | # underscores ('_'). For example, to override 'sonar.web.systemPasscode' use 'SONAR_WEB_SYSTEMPASSCODE'. 5 | # - be encrypted. See https://redirect.sonarsource.com/doc/settings-encryption.html 6 | 7 | #-------------------------------------------------------------------------------------------------- 8 | # DATABASE 9 | # 10 | # IMPORTANT: 11 | # - The embedded H2 database is used by default. It is recommended for tests but not for 12 | # production use. Supported databases are Oracle, PostgreSQL and Microsoft SQLServer. 13 | # - Changes to database connection URL (sonar.jdbc.url) can affect SonarSource licensed products. 14 | 15 | # User credentials. 16 | # Permissions to create tables, indices and triggers must be granted to JDBC user. 17 | # The schema must be created first. 18 | #sonar.jdbc.username= 19 | #sonar.jdbc.password= 20 | 21 | #----- Embedded Database (default) 22 | # H2 embedded database server listening port, defaults to 9092 23 | #sonar.embeddedDatabase.port=9092 24 | 25 | #----- Oracle 12c/18c/19c 26 | # The Oracle JDBC driver must be copied into the directory extensions/jdbc-driver/oracle/. 27 | # Only the thin client is supported, and we recommend using the latest Oracle JDBC driver. See 28 | # https://jira.sonarsource.com/browse/SONAR-9758 for more details. 29 | # If you need to set the schema, please refer to http://jira.sonarsource.com/browse/SONAR-5000 30 | #sonar.jdbc.url=jdbc:oracle:thin:@localhost:1521/XE 31 | 32 | #----- PostgreSQL 9.6 or greater 33 | # By default the schema named "public" is used. It can be overridden with the parameter "currentSchema". 34 | #sonar.jdbc.url=jdbc:postgresql://localhost/sonarqube?currentSchema=my_schema 35 | 36 | #----- Microsoft SQLServer 2014/2016/2017/2019 and SQL Azure 37 | # A database named sonar must exist and its collation must be case-sensitive (CS) and accent-sensitive (AS) 38 | # Use the following connection string if you want to use integrated security with Microsoft Sql Server 39 | # Do not set sonar.jdbc.username or sonar.jdbc.password property if you are using Integrated Security 40 | # For Integrated Security to work, you have to download the Microsoft SQL JDBC Driver 9.4.1 package from 41 | # https://docs.microsoft.com/en-us/sql/connect/jdbc/release-notes-for-the-jdbc-driver?view=sql-server-ver15#94 42 | # and copy mssql-jdbc_auth-9.4.1.x64.dll to your path. 43 | #sonar.jdbc.url=jdbc:sqlserver://localhost;databaseName=sonar;integratedSecurity=true 44 | 45 | # Use the following connection string if you want to use SQL Auth while connecting to MS Sql Server. 46 | # Set the sonar.jdbc.username and sonar.jdbc.password appropriately. 47 | #sonar.jdbc.url=jdbc:sqlserver://localhost;databaseName=sonar 48 | 49 | #----- Connection pool settings 50 | # The maximum number of active connections that can be allocated 51 | # at the same time, or negative for no limit. 52 | # The recommended value is 1.2 * max sizes of HTTP pools. For example if HTTP ports are 53 | # enabled with default sizes (50, see property sonar.web.http.maxThreads) 54 | # then sonar.jdbc.maxActive should be 1.2 * 50 = 60. 55 | #sonar.jdbc.maxActive=60 56 | 57 | # The maximum number of connections that can remain idle in the 58 | # pool, without extra ones being released, or negative for no limit. 59 | #sonar.jdbc.maxIdle=5 60 | 61 | # The minimum number of connections that can remain idle in the pool, 62 | # without extra ones being created, or zero to create none. 63 | #sonar.jdbc.minIdle=2 64 | 65 | # The maximum number of milliseconds that the pool will wait (when there 66 | # are no available connections) for a connection to be returned before 67 | # throwing an exception, or <= 0 to wait indefinitely. 68 | #sonar.jdbc.maxWait=5000 69 | 70 | #sonar.jdbc.minEvictableIdleTimeMillis=600000 71 | #sonar.jdbc.timeBetweenEvictionRunsMillis=30000 72 | 73 | #-------------------------------------------------------------------------------------------------- 74 | # WEB SERVER 75 | # Web server is executed in a dedicated Java process. By default heap size is 512MB. 76 | # Use the following property to customize JVM options. 77 | # Recommendations: 78 | # 79 | # The HotSpot Server VM is recommended. The property -server should be added if server mode 80 | # is not enabled by default on your environment: 81 | # http://docs.oracle.com/javase/8/docs/technotes/guides/vm/server-class.html 82 | # 83 | # Startup can be long if entropy source is short of entropy. Adding 84 | # -Djava.security.egd=file:/dev/./urandom is an option to resolve the problem. 85 | # See https://wiki.apache.org/tomcat/HowTo/FasterStartUp#Entropy_Source 86 | # 87 | #sonar.web.javaOpts=-Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError 88 | 89 | # Same as previous property, but allows to not repeat all other settings like -Xmx 90 | #sonar.web.javaAdditionalOpts= 91 | 92 | # Binding IP address. For servers with more than one IP address, this property specifies which 93 | # address will be used for listening on the specified ports. 94 | # By default, ports will be used on all IP addresses associated with the server. 95 | #sonar.web.host=0.0.0.0 96 | 97 | # Web context. When set, it must start with forward slash (for example /sonarqube). 98 | # The default value is root context (empty value). 99 | #sonar.web.context= 100 | # TCP port for incoming HTTP connections. Default value is 9000. 101 | #sonar.web.port=9000 102 | 103 | # The maximum number of connections that the server will accept and process at any given time. 104 | # When this number has been reached, the server will not accept any more connections until 105 | # the number of connections falls below this value. The operating system may still accept connections 106 | # based on the sonar.web.connections.acceptCount property. The default value is 50. 107 | #sonar.web.http.maxThreads=50 108 | 109 | # The minimum number of threads always kept running. The default value is 5. 110 | #sonar.web.http.minThreads=5 111 | 112 | # The maximum queue length for incoming connection requests when all possible request processing 113 | # threads are in use. Any requests received when the queue is full will be refused. 114 | # The default value is 25. 115 | #sonar.web.http.acceptCount=25 116 | 117 | # The number of milliseconds this Connector will wait for another HTTP request before closing the 118 | # connection. The default value is to use the value that has been set for the connectionTimeout 119 | # attribute. Use a value of -1 to indicate no (i.e. infinite) timeout. 120 | # The default value is 60000 (ms). 121 | #sonar.web.http.keepAliveTimeout=60000 122 | 123 | # By default users are logged out and sessions closed when server is restarted. 124 | # If you prefer keeping user sessions open, a secret should be defined. Value is 125 | # HS256 key encoded with base64. It must be unique for each installation of SonarQube. 126 | # Example of command-line: 127 | # echo -n "type_what_you_want" | openssl dgst -sha256 -hmac "key" -binary | base64 128 | #sonar.auth.jwtBase64Hs256Secret= 129 | 130 | # The inactivity timeout duration of user sessions, in minutes. After the configured 131 | # period of time, the user is logged out. 132 | # The default value is set to 3 days (4320 minutes). 133 | # It must be set between 6 minutes and 3 months (129600 minutes). 134 | # Value must be strictly positive. 135 | #sonar.web.sessionTimeoutInMinutes=4320 136 | 137 | # A passcode can be defined to access some web services from monitoring 138 | # tools without having to use the credentials of a system administrator. 139 | # Check the Web API documentation to know which web services are supporting this authentication mode. 140 | # The passcode should be provided in HTTP requests with the header "X-Sonar-Passcode". 141 | # By default feature is disabled. 142 | #sonar.web.systemPasscode= 143 | 144 | #-------------------------------------------------------------------------------------------------- 145 | # SSO AUTHENTICATION 146 | 147 | # Enable authentication using HTTP headers 148 | #sonar.web.sso.enable=false 149 | 150 | # Name of the header to get the user login. 151 | # Only alphanumeric, '.' and '@' characters are allowed 152 | #sonar.web.sso.loginHeader=X-Forwarded-Login 153 | 154 | # Name of the header to get the user name 155 | #sonar.web.sso.nameHeader=X-Forwarded-Name 156 | 157 | # Name of the header to get the user email (optional) 158 | #sonar.web.sso.emailHeader=X-Forwarded-Email 159 | 160 | # Name of the header to get the list of user groups, separated by comma (optional). 161 | # If the sonar.sso.groupsHeader is set, the user will belong to those groups if groups exist in SonarQube. 162 | # If none of the provided groups exists in SonarQube, the user will only belong to the default group. 163 | # Note that the default group will always be set. 164 | #sonar.web.sso.groupsHeader=X-Forwarded-Groups 165 | 166 | # Interval used to know when to refresh name, email and groups. 167 | # During this interval, if for instance the name of the user is changed in the header, it will only be updated after X minutes. 168 | #sonar.web.sso.refreshIntervalInMinutes=5 169 | 170 | #-------------------------------------------------------------------------------------------------- 171 | # LDAP CONFIGURATION 172 | 173 | # Enable the LDAP feature 174 | # sonar.security.realm=LDAP 175 | 176 | # Set to true when connecting to a LDAP server using a case-insensitive setup. 177 | # sonar.authenticator.downcase=true 178 | 179 | # URL of the LDAP server. Note that if you are using ldaps, then you should install the server certificate into the Java truststore. 180 | # ldap.url=ldap://localhost:10389 181 | 182 | # Bind DN is the username of an LDAP user to connect (or bind) with. Leave this blank for anonymous access to the LDAP directory (optional) 183 | # ldap.bindDn=cn=sonar,ou=users,o=mycompany 184 | 185 | # Bind Password is the password of the user to connect with. Leave this blank for anonymous access to the LDAP directory (optional) 186 | # ldap.bindPassword=secret 187 | 188 | # Possible values: simple | CRAM-MD5 | DIGEST-MD5 | GSSAPI See http://java.sun.com/products/jndi/tutorial/ldap/security/auth.html (default: simple) 189 | # ldap.authentication=simple 190 | 191 | # See : 192 | # * http://java.sun.com/products/jndi/tutorial/ldap/security/digest.html 193 | # * http://java.sun.com/products/jndi/tutorial/ldap/security/crammd5.html 194 | # (optional) 195 | # ldap.realm=example.org 196 | 197 | # Context factory class (optional) 198 | # ldap.contextFactoryClass=com.sun.jndi.ldap.LdapCtxFactory 199 | 200 | # Enable usage of StartTLS (default : false) 201 | # ldap.StartTLS=true 202 | 203 | # Follow or not referrals. See http://docs.oracle.com/javase/jndi/tutorial/ldap/referral/jndi.html (default: true) 204 | # ldap.followReferrals=false 205 | 206 | # USER MAPPING 207 | 208 | # Distinguished Name (DN) of the root node in LDAP from which to search for users (mandatory) 209 | # ldap.user.baseDn=cn=users,dc=example,dc=org 210 | 211 | # LDAP user request. (default: (&(objectClass=inetOrgPerson)(uid={login})) ) 212 | # ldap.user.request=(&(objectClass=user)(sAMAccountName={login})) 213 | 214 | # Attribute in LDAP defining the user’s real name. (default: cn) 215 | # ldap.user.realNameAttribute=name 216 | 217 | # Attribute in LDAP defining the user’s email. (default: mail) 218 | # ldap.user.emailAttribute=email 219 | 220 | # GROUP MAPPING 221 | 222 | # Distinguished Name (DN) of the root node in LDAP from which to search for groups. (optional, default: empty) 223 | # ldap.group.baseDn=cn=groups,dc=example,dc=org 224 | 225 | # LDAP group request (default: (&(objectClass=groupOfUniqueNames)(uniqueMember={dn})) ) 226 | # ldap.group.request=(&(objectClass=group)(member={dn})) 227 | 228 | # Property used to specifiy the attribute to be used for returning the list of user groups in the compatibility mode. (default: cn) 229 | # ldap.group.idAttribute=sAMAccountName 230 | 231 | #-------------------------------------------------------------------------------------------------- 232 | # COMPUTE ENGINE 233 | # The Compute Engine is responsible for processing background tasks. 234 | # Compute Engine is executed in a dedicated Java process. Default heap size is 512MB. 235 | # Use the following property to customize JVM options. 236 | # Recommendations: 237 | # 238 | # The HotSpot Server VM is recommended. The property -server should be added if server mode 239 | # is not enabled by default on your environment: 240 | # http://docs.oracle.com/javase/8/docs/technotes/guides/vm/server-class.html 241 | # 242 | #sonar.ce.javaOpts=-Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError 243 | 244 | # Same as previous property, but allows to not repeat all other settings like -Xmx 245 | #sonar.ce.javaAdditionalOpts= 246 | 247 | #-------------------------------------------------------------------------------------------------- 248 | # ELASTICSEARCH 249 | # Elasticsearch is used to facilitate fast and accurate information retrieval. 250 | # It is executed in a dedicated Java process. Default maximum heap size is 512MB. 251 | # It is recommended to also set MaxDirectMemorySize (-XX:MaxDirectMemorySize) and set it to half the maximum heap size. 252 | # 253 | # -------------------------------------------------- 254 | # Word of caution for Linux users on 64bits systems 255 | # -------------------------------------------------- 256 | # Please ensure Virtual Memory on your system is correctly configured for Elasticsearch to run properly 257 | # (see https://www.elastic.co/guide/en/elasticsearch/reference/5.5/vm-max-map-count.html for details). 258 | # 259 | # When SonarQube runs standalone, a warning such as the following may appear in logs/es.log: 260 | # "max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]" 261 | # When SonarQube runs as a cluster, however, Elasticsearch will refuse to start. 262 | # 263 | 264 | # JVM options of Elasticsearch process 265 | #sonar.search.javaOpts=-Xmx512m -Xms512m -XX:MaxDirectMemorySize=256m -XX:+HeapDumpOnOutOfMemoryError 266 | 267 | # Same as previous property, but allows to not repeat all other settings like -Xmx 268 | #sonar.search.javaAdditionalOpts= 269 | 270 | # Elasticsearch port for incoming HTTP connections. Default is 9001. Use 0 to get a free port. 271 | # As a security precaution, should be blocked by a firewall and not exposed to the Internet. 272 | #sonar.search.port=9001 273 | 274 | # Elasticsearch TCP transport port that is bound to loopback address. When nothing is set, a random port will be chosen. 275 | # As a security precaution, your OS configuration should not expose this port for external access. 276 | #sonar.es.port= 277 | 278 | # Elasticsearch host. The search server will bind this address and the search client will connect to it. 279 | # Default is loopback address. 280 | # As a security precaution, should NOT be set to a publicly available address. 281 | #sonar.search.host= 282 | 283 | #-------------------------------------------------------------------------------------------------- 284 | # UPDATE CENTER 285 | 286 | # Update Center requires an internet connection to request https://update.sonarsource.org 287 | # It is enabled by default. 288 | #sonar.updatecenter.activate=true 289 | 290 | # HTTP proxy (default none) 291 | #http.proxyHost= 292 | #http.proxyPort= 293 | # HTTPS proxy (defaults are values of http.proxyHost and http.proxyPort) 294 | #https.proxyHost= 295 | #https.proxyPort= 296 | 297 | # NT domain name if NTLM proxy is used 298 | #http.auth.ntlm.domain= 299 | 300 | # SOCKS proxy (default none) 301 | #socksProxyHost= 302 | #socksProxyPort= 303 | 304 | # Proxy authentication (used for HTTP, HTTPS and SOCKS proxies) 305 | #http.proxyUser= 306 | #http.proxyPassword= 307 | 308 | # Proxy exceptions: list of hosts that can be accessed without going through the proxy 309 | # separated by the '|' character, wildcard character '*' can be used for pattern matching 310 | # used for HTTP and HTTPS (default none) 311 | # (note: localhost and its literal notations (127.0.0.1, ...) are always excluded) 312 | #http.nonProxyHosts= 313 | 314 | #-------------------------------------------------------------------------------------------------- 315 | # LOGGING 316 | 317 | # SonarQube produces logs in 4 logs files located in the same directory (see property sonar.path.logs below), 318 | # one per process: 319 | # Main process (aka. App) logs in sonar.log 320 | # Web Server (aka. Web) logs in web.log 321 | # Compute Engine (aka. CE) logs in ce.log 322 | # Elasticsearch (aka. ES) logs in es.log 323 | # 324 | # Depending on the startup, all 4 files follow the same rolling policy (see sonar.log.rollingPolicy and sonar.log.maxFiles) but it applies 325 | # individually (eg. if sonar.log.maxFiles=4, there can be at most 4 of each files, ie. 16 files in total). 326 | # If the SonarQube wrapper is used (for example, with the provided start.sh script), the sonar.log rotation policy needs to be set in the wrapper.conf 327 | # 328 | # All 4 files have logs in the same format: 329 | # 1 2 3 4 5 6 330 | # |-----------------| |---| |-|--------------------||------------------------------| |------------------------------------------------------------------------------------------------------------------------------| 331 | # 2016.11.16 16:47:00 INFO ce[AVht0dNXFcyiYejytc3m][o.s.s.c.t.CeWorkerCallableImpl] Executed task | project=org.sonarqube:example-java-maven | type=REPORT | id=AVht0dNXFcyiYejytc3m | submitter=admin | time=1699ms 332 | # 333 | # 1: timestamp. Format is YYYY.MM.DD HH:MM:SS 334 | # YYYY: year on 4 digits 335 | # MM: month on 2 digits 336 | # DD: day on 2 digits 337 | # HH: hour of day on 2 digits in 24 hours format 338 | # MM: minutes on 2 digits 339 | # SS: seconds on 2 digits 340 | # 2: log level. 341 | # Possible values (in order of descending criticality): ERROR, WARN, INFO, DEBUG and TRACE 342 | # 3: process identifier. Possible values: app (main), web (Web Server), ce (Compute Engine) and es (Elasticsearch) 343 | # 4: SQ thread identifier. Can be empty. 344 | # In the Web Server, if present, it will be the HTTP request ID. 345 | # In the Compute Engine, if present, it will be the task ID. 346 | # 5: logger name. Usually a class canonical name. 347 | # Package names are truncated to keep the whole field to 20 characters max 348 | # 6: log payload. Content of this field does not follow any specific format, can vary in length and include line returns. 349 | # Some logs, however, will follow the convention to provide data in payload in the format " | key=value" 350 | # Especially, log of profiled pieces of code will end with " | time=XXXXms". 351 | 352 | # Global level of logs (applies to all 4 processes). 353 | # Supported values are INFO (default), DEBUG and TRACE 354 | #sonar.log.level=INFO 355 | 356 | # Level of logs of each process can be controlled individually with their respective properties. 357 | # When specified, they overwrite the level defined at global level. 358 | # Supported values are INFO, DEBUG and TRACE 359 | #sonar.log.level.app=INFO 360 | #sonar.log.level.web=INFO 361 | #sonar.log.level.ce=INFO 362 | #sonar.log.level.es=INFO 363 | 364 | # Path to log files. Can be absolute or relative to installation directory. 365 | # Default is /logs 366 | #sonar.path.logs=logs 367 | 368 | # Rolling policy of log files 369 | # - based on time if value starts with "time:", for example by day ("time:yyyy-MM-dd") 370 | # or by month ("time:yyyy-MM") 371 | # - based on size if value starts with "size:", for example "size:10MB" 372 | # - disabled if value is "none". That needs logs to be managed by an external system like logrotate. 373 | #sonar.log.rollingPolicy=time:yyyy-MM-dd 374 | 375 | # Maximum number of files to keep if a rolling policy is enabled. 376 | # - maximum value is 20 on size rolling policy 377 | # - unlimited on time rolling policy. Set to zero to disable old file purging. 378 | #sonar.log.maxFiles=7 379 | 380 | # Access log is the list of all the HTTP requests received by server. If enabled, it is stored 381 | # in the file {sonar.path.logs}/access.log. This file follows the same rolling policy as other log file 382 | # (see sonar.log.rollingPolicy and sonar.log.maxFiles). 383 | #sonar.web.accessLogs.enable=true 384 | 385 | # Format of access log. It is ignored if sonar.web.accessLogs.enable=false. Possible values are: 386 | # - "common" is the Common Log Format, shortcut to: %h %l %u %user %date "%r" %s %b 387 | # - "combined" is another format widely recognized, shortcut to: %h %l %u [%t] "%r" %s %b "%i{Referer}" "%i{User-Agent}" 388 | # - else a custom pattern. See http://logback.qos.ch/manual/layouts.html#AccessPatternLayout. 389 | # The login of authenticated user is not implemented with "%u" but with "%reqAttribute{LOGIN}" (since version 6.1). 390 | # The value displayed for anonymous users is "-". 391 | # The SonarQube's HTTP request ID can be added to the pattern with "%reqAttribute{ID}" (since version 6.2). 392 | # If SonarQube is behind a reverse proxy, then the following value allows to display the correct remote IP address: 393 | #sonar.web.accessLogs.pattern=%i{X-Forwarded-For} %l %u [%t] "%r" %s %b "%i{Referer}" "%i{User-Agent}" "%reqAttribute{ID}" 394 | # Default value (which was "combined" before version 6.2) is equivalent to "combined + SQ HTTP request ID": 395 | #sonar.web.accessLogs.pattern=%h %l %u [%t] "%r" %s %b "%i{Referer}" "%i{User-Agent}" "%reqAttribute{ID}" 396 | 397 | #-------------------------------------------------------------------------------------------------- 398 | # OTHERS 399 | 400 | # Delay in seconds between processing of notification queue. Default is 60 seconds. 401 | #sonar.notifications.delay=60 402 | 403 | # Paths to persistent data files (embedded database and search index) and temporary files. 404 | # Can be absolute or relative to installation directory. 405 | # Defaults are respectively /data and /temp 406 | #sonar.path.data=data 407 | #sonar.path.temp=temp 408 | 409 | # Telemetry - Share anonymous SonarQube statistics 410 | # By sharing anonymous SonarQube statistics, you help us understand how SonarQube is used so we can improve the product to work even better for you. 411 | # We don't collect source code or IP addresses. And we don't share the data with anyone else. 412 | # To see an example of the data shared: login as a global administrator, call the WS api/system/info and check the Statistics field. 413 | sonar.telemetry.enable=false 414 | -------------------------------------------------------------------------------- /current/Dockerfile: -------------------------------------------------------------------------------- 1 | # Minideb image with bundled sonar-scala (https://github.com/mwz/sonar-scala), 2 | # which can be mounted as a volume into a SonarQube container. 3 | 4 | FROM bitnami/minideb:stretch 5 | RUN install_packages curl ca-certificates 6 | 7 | ENV SONAR_SCALA_VERSION 9.0.0 8 | ENV SQ_EXTENSIONS_DIR "/opt/sonarqube/extensions" 9 | 10 | RUN groupadd -g 1000 -r sonarqube && useradd -r -g sonarqube sonarqube 11 | RUN curl --create-dirs -L -o "${SQ_EXTENSIONS_DIR}/plugins/sonar-scala-plugin-${SONAR_SCALA_VERSION}.jar" \ 12 | "https://s01.oss.sonatype.org/content/repositories/releases/com/sonar-scala/sonar-scala_2.13/${SONAR_SCALA_VERSION}/sonar-scala_2.13-${SONAR_SCALA_VERSION}-assembly.jar" && \ 13 | chown -R sonarqube:sonarqube /opt/sonarqube && \ 14 | chmod 777 $SQ_EXTENSIONS_DIR/plugins/* 15 | -------------------------------------------------------------------------------- /current/full/Dockerfile: -------------------------------------------------------------------------------- 1 | # SonarQube 9.4 image with bundled sonar-scala (https://github.com/mwz/sonar-scala). 2 | 3 | FROM sonarqube:9.4.0-community 4 | 5 | ENV SONAR_SCALA_VERSION 9.0.0 6 | 7 | RUN rm $SONARQUBE_HOME/lib/extensions/sonar-scala* && \ 8 | wget -O "${SQ_EXTENSIONS_DIR}/plugins/sonar-scala-plugin-${SONAR_SCALA_VERSION}.jar" \ 9 | "https://s01.oss.sonatype.org/content/repositories/releases/com/sonar-scala/sonar-scala_2.13/${SONAR_SCALA_VERSION}/sonar-scala_2.13-${SONAR_SCALA_VERSION}-assembly.jar" && \ 10 | chown sonarqube:sonarqube $SQ_EXTENSIONS_DIR/plugins/sonar-scala-plugin-* && \ 11 | chmod 777 $SQ_EXTENSIONS_DIR/plugins/sonar-scala-plugin-* 12 | 13 | WORKDIR $SONARQUBE_HOME 14 | ENTRYPOINT ["./bin/run.sh"] 15 | -------------------------------------------------------------------------------- /dev/Dockerfile: -------------------------------------------------------------------------------- 1 | # Minideb image with bundled sonar-scala plugin (https://github.com/mwz/sonar-scala), 2 | # which can be mounted as a volume into a SonarQube container. 3 | # This image is intended to be used for local development purposes. 4 | 5 | FROM bitnami/minideb:stretch 6 | 7 | ARG SONAR_SCALA_VERSION 8 | 9 | RUN groupadd -g 1000 -r sonarqube && useradd -r -g sonarqube sonarqube 10 | ADD --chown=sonarqube:sonarqube sonar-scala_2.13-assembly.jar /opt/sonarqube/extensions/plugins/sonar-scala_2.13-assembly.jar 11 | WORKDIR /opt/sonarqube/extensions/plugins 12 | -------------------------------------------------------------------------------- /dev/build.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -eu 3 | 4 | export SONAR_SCALA_VERSION=8.9.0+5-1ab816ae-SNAPSHOT 5 | cp ~/.ivy2/local/com.sonar-scala/sonar-scala_2.13/${SONAR_SCALA_VERSION}/jars/sonar-scala_2.13-assembly.jar . 6 | docker build -t mwizner/sonarqube-scala-plugins:dev --build-arg SONAR_SCALA_VERSION=${SONAR_SCALA_VERSION} . 7 | -------------------------------------------------------------------------------- /docker-compose-lts.yml: -------------------------------------------------------------------------------- 1 | version: "2" 2 | 3 | services: 4 | sonarqube: 5 | image: sonarqube:8.9.4-community # lts 6 | ports: 7 | - "80:9000" 8 | networks: 9 | - sonarnet 10 | environment: 11 | - SONARQUBE_JDBC_USERNAME=sonar 12 | - SONARQUBE_JDBC_PASSWORD=sonar 13 | - SONARQUBE_JDBC_URL=jdbc:postgresql://db:5432/sonar 14 | volumes: 15 | - ./conf/sonar.properties:/opt/sonarqube/conf/sonar.properties 16 | - ./logs:/opt/sonarqube/logs 17 | - sonarqube_data:/opt/sonarqube/data 18 | - sonarqube_bundled-plugins:/opt/sonarqube/lib/bundled-plugins 19 | volumes_from: 20 | - plugins 21 | depends_on: 22 | - db 23 | entrypoint: ["bash", "-c", "rm lib/extensions/sonar-scala*; bin/run.sh"] 24 | db: 25 | image: postgres:12.9-alpine 26 | networks: 27 | - sonarnet 28 | environment: 29 | - POSTGRES_USER=sonar 30 | - POSTGRES_PASSWORD=sonar 31 | volumes: 32 | - postgresql:/var/lib/postgresql 33 | - postgresql_data:/var/lib/postgresql/data 34 | plugins: 35 | image: mwizner/sonarqube-scala-plugins:5.8.0 36 | volumes: 37 | - sonarqube_plugins:/opt/sonarqube/extensions/plugins 38 | command: /bin/true 39 | 40 | networks: 41 | sonarnet: 42 | driver: bridge 43 | 44 | volumes: 45 | sonarqube_data: 46 | sonarqube_bundled-plugins: 47 | sonarqube_plugins: 48 | postgresql: 49 | postgresql_data: 50 | -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: "2" 2 | 3 | services: 4 | sonarqube: 5 | image: sonarqube:9.4.0-community 6 | ports: 7 | - "80:9000" 8 | networks: 9 | - sonarnet 10 | environment: 11 | - SONARQUBE_JDBC_USERNAME=sonar 12 | - SONARQUBE_JDBC_PASSWORD=sonar 13 | - SONARQUBE_JDBC_URL=jdbc:postgresql://db:5432/sonar 14 | volumes: 15 | - ./conf/sonar.properties:/opt/sonarqube/conf/sonar.properties 16 | - ./logs:/opt/sonarqube/logs 17 | - sonarqube_data:/opt/sonarqube/data 18 | - sonarqube_bundled-plugins:/opt/sonarqube/lib/bundled-plugins 19 | volumes_from: 20 | - plugins 21 | depends_on: 22 | - db 23 | entrypoint: ["bash", "-c", "rm lib/extensions/sonar-scala*; bin/run.sh"] 24 | db: 25 | image: postgres:13-alpine 26 | networks: 27 | - sonarnet 28 | environment: 29 | - POSTGRES_USER=sonar 30 | - POSTGRES_PASSWORD=sonar 31 | volumes: 32 | - postgresql:/var/lib/postgresql 33 | - postgresql_data:/var/lib/postgresql/data 34 | plugins: 35 | image: mwizner/sonarqube-scala-plugins:latest 36 | volumes: 37 | - sonarqube_plugins:/opt/sonarqube/extensions/plugins 38 | command: /bin/true 39 | 40 | networks: 41 | sonarnet: 42 | driver: bridge 43 | 44 | volumes: 45 | sonarqube_data: 46 | sonarqube_bundled-plugins: 47 | sonarqube_plugins: 48 | postgresql: 49 | postgresql_data: 50 | -------------------------------------------------------------------------------- /generate-readme.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -e 3 | 4 | mustache vars.json README.tpl.md > README.md 5 | mustache vars.json README_DOCKERHUB.tpl.md > README_DOCKERHUB.md 6 | -------------------------------------------------------------------------------- /lts-6.7/Dockerfile: -------------------------------------------------------------------------------- 1 | # Minideb image with bundled sonar-scala 6.8.0 (https://github.com/mwz/sonar-scala), 2 | # which can be mounted as a volume into a SonarQube container. 3 | 4 | FROM bitnami/minideb:stretch 5 | RUN install_packages curl ca-certificates 6 | 7 | ENV SONAR_SCALA_VERSION 6.8.0 8 | 9 | RUN groupadd -r sonarqube && useradd -r -g sonarqube sonarqube 10 | WORKDIR /opt/sonarqube/extensions/plugins 11 | RUN curl -L -o "sonar-scala-plugin-${SONAR_SCALA_VERSION}.jar" \ 12 | "https://dl.bintray.com/mwz/maven/com/github/mwz/sonar-scala_2.12/${SONAR_SCALA_VERSION}/sonar-scala_2.12-${SONAR_SCALA_VERSION}-assembly.jar" 13 | RUN chown -R sonarqube:sonarqube /opt/sonarqube 14 | -------------------------------------------------------------------------------- /lts-6.7/full/Dockerfile: -------------------------------------------------------------------------------- 1 | # SonarQube 6.7.7 LTS image with bundled sonar-scala 6.8.0 (https://github.com/mwz/sonar-scala). 2 | 3 | FROM sonarqube:6.7.7-community 4 | 5 | ENV SONAR_SCALA_VERSION 6.8.0 6 | 7 | WORKDIR /opt/sonarqube/extensions/plugins 8 | RUN wget -O "sonar-scala-plugin-${SONAR_SCALA_VERSION}.jar" \ 9 | "https://dl.bintray.com/mwz/maven/com/github/mwz/sonar-scala_2.12/${SONAR_SCALA_VERSION}/sonar-scala_2.12-${SONAR_SCALA_VERSION}-assembly.jar" 10 | 11 | WORKDIR $SONARQUBE_HOME 12 | ENTRYPOINT ["./bin/run.sh"] 13 | -------------------------------------------------------------------------------- /lts-7.9/Dockerfile: -------------------------------------------------------------------------------- 1 | # Minideb image with bundled sonar-scala (https://github.com/mwz/sonar-scala), 2 | # which can be mounted as a volume into a SonarQube container. 3 | 4 | FROM bitnami/minideb:stretch 5 | RUN install_packages curl ca-certificates 6 | 7 | ENV SONAR_SCALA_VERSION 7.9.0 8 | 9 | RUN groupadd -r sonarqube && useradd -r -g sonarqube sonarqube 10 | WORKDIR /opt/sonarqube/extensions/plugins 11 | RUN curl -L -o "sonar-scala-plugin-${SONAR_SCALA_VERSION}.jar" \ 12 | "https://dl.bintray.com/mwz/maven/com/github/mwz/sonar-scala_2.12/${SONAR_SCALA_VERSION}/sonar-scala_2.12-${SONAR_SCALA_VERSION}-assembly.jar" 13 | RUN chown -R sonarqube:sonarqube /opt/sonarqube 14 | -------------------------------------------------------------------------------- /lts-7.9/full/Dockerfile: -------------------------------------------------------------------------------- 1 | # SonarQube image with bundled sonar-scala (https://github.com/mwz/sonar-scala). 2 | 3 | FROM sonarqube:7.9.1-community 4 | 5 | ENV SONAR_SCALA_VERSION 7.9.0 6 | 7 | WORKDIR /opt/sonarqube/extensions/plugins 8 | RUN rm sonar-scala-plugin-* && curl -L -o "sonar-scala-plugin-${SONAR_SCALA_VERSION}.jar" \ 9 | "https://dl.bintray.com/mwz/maven/com/github/mwz/sonar-scala_2.12/${SONAR_SCALA_VERSION}/sonar-scala_2.12-${SONAR_SCALA_VERSION}-assembly.jar" 10 | 11 | WORKDIR $SONARQUBE_HOME 12 | ENTRYPOINT ["./bin/run.sh"] 13 | -------------------------------------------------------------------------------- /lts/Dockerfile: -------------------------------------------------------------------------------- 1 | # Minideb image with bundled sonar-scala (https://github.com/mwz/sonar-scala), 2 | # which can be mounted as a volume into a SonarQube container. 3 | 4 | FROM bitnami/minideb:stretch 5 | RUN install_packages curl ca-certificates 6 | 7 | ENV SONAR_SCALA_VERSION 8.9.0 8 | ENV SQ_EXTENSIONS_DIR "/opt/sonarqube/extensions" 9 | 10 | RUN groupadd -g 1000 -r sonarqube && useradd -r -g sonarqube sonarqube 11 | RUN curl --create-dirs -L -o "${SQ_EXTENSIONS_DIR}/plugins/sonar-scala-plugin-${SONAR_SCALA_VERSION}.jar" \ 12 | "https://s01.oss.sonatype.org/content/repositories/releases/com/sonar-scala/sonar-scala_2.13/${SONAR_SCALA_VERSION}/sonar-scala_2.13-${SONAR_SCALA_VERSION}-assembly.jar" && \ 13 | chown -R sonarqube:sonarqube /opt/sonarqube && \ 14 | chmod 777 $SQ_EXTENSIONS_DIR/plugins/* 15 | -------------------------------------------------------------------------------- /lts/full/Dockerfile: -------------------------------------------------------------------------------- 1 | # SonarQube 8.9 LTS image with bundled sonar-scala (https://github.com/mwz/sonar-scala). 2 | 3 | FROM sonarqube:8.9.4-community 4 | 5 | ENV SONAR_SCALA_VERSION 8.9.0 6 | 7 | RUN rm $SONARQUBE_HOME/lib/extensions/sonar-scala* && \ 8 | wget -O "${SQ_EXTENSIONS_DIR}/plugins/sonar-scala-plugin-${SONAR_SCALA_VERSION}.jar" \ 9 | "https://s01.oss.sonatype.org/content/repositories/releases/com/sonar-scala/sonar-scala_2.13/${SONAR_SCALA_VERSION}/sonar-scala_2.13-${SONAR_SCALA_VERSION}-assembly.jar" && \ 10 | chown sonarqube:sonarqube $SQ_EXTENSIONS_DIR/plugins/sonar-scala-plugin-* && \ 11 | chmod 777 $SQ_EXTENSIONS_DIR/plugins/sonar-scala-plugin-* 12 | 13 | WORKDIR $SONARQUBE_HOME 14 | ENTRYPOINT ["./bin/run.sh"] 15 | -------------------------------------------------------------------------------- /release-lts.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -eu 3 | 4 | # Build 5 | docker build \ 6 | -t mwizner/sonarqube-scala-plugins:$VERSION \ 7 | -t mwizner/sonarqube-scala-plugins:latest-lts \ 8 | lts 9 | docker build \ 10 | -t mwizner/sonarqube-scala-plugins:$VERSION-full \ 11 | -t mwizner/sonarqube-scala-plugins:latest-lts-full \ 12 | lts/full 13 | 14 | # Push 15 | docker push mwizner/sonarqube-scala-plugins:$VERSION 16 | docker push mwizner/sonarqube-scala-plugins:latest-lts 17 | docker push mwizner/sonarqube-scala-plugins:$VERSION-full 18 | docker push mwizner/sonarqube-scala-plugins:latest-lts-full 19 | -------------------------------------------------------------------------------- /release.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | set -eu 3 | 4 | # Build 5 | docker build \ 6 | -t mwizner/sonarqube-scala-plugins:$VERSION \ 7 | -t mwizner/sonarqube-scala-plugins:latest \ 8 | current 9 | docker build \ 10 | -t mwizner/sonarqube-scala-plugins:$VERSION-full \ 11 | -t mwizner/sonarqube-scala-plugins:latest-full \ 12 | current/full 13 | 14 | # Push 15 | docker push mwizner/sonarqube-scala-plugins:$VERSION 16 | docker push mwizner/sonarqube-scala-plugins:latest 17 | docker push mwizner/sonarqube-scala-plugins:$VERSION-full 18 | docker push mwizner/sonarqube-scala-plugins:latest-full 19 | -------------------------------------------------------------------------------- /vars.json: -------------------------------------------------------------------------------- 1 | { 2 | "current": { 3 | "version": "6.0.0", 4 | "sonar": "9.4.0", 5 | "sonarDocs": "https://docs.sonarqube.org/9.4", 6 | "sonarChangelog": "https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=17167", 7 | "sonarScala": "9.0.0" 8 | }, 9 | "lts": { 10 | "version": "5.8.0", 11 | "sonar": "8.9.4 LTS", 12 | "sonarDocs": "https://docs.sonarqube.org/8.9", 13 | "sonarChangelog": "https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=17027", 14 | "sonarScala": "8.9.0" 15 | }, 16 | "lts79": { 17 | "version": "4.2.0", 18 | "sonar": "7.9.1 LTS", 19 | "sonarDocs": "https://docs.sonarqube.org/7.9", 20 | "sonarChangelog": "https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=15029", 21 | "sonarScala": "7.9.0" 22 | }, 23 | "lts67": { 24 | "version": "2.12.0", 25 | "sonar": "6.7.7 LTS", 26 | "sonarDocs": "https://docs.sonarqube.org/display/SONARQUBE67/Documentation", 27 | "sonarChangelog": "https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14865", 28 | "sonarScala": "6.8.0" 29 | }, 30 | "versions": { 31 | "current": [ 32 | { 33 | "version": "5.7.0", 34 | "sonar": "8.7.1", 35 | "sonarDocs": "https://docs.sonarqube.org/8.7", 36 | "sonarChangelog": "https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=16540", 37 | "sonarScala": "8.7.0" 38 | }, 39 | { 40 | "version": "5.6.0", 41 | "sonar": "8.5.1", 42 | "sonarDocs": "https://docs.sonarqube.org/8.5", 43 | "sonarChangelog": "https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=16342", 44 | "sonarScala": "8.6.0" 45 | }, 46 | { 47 | "version": "5.5.0", 48 | "sonar": "8.4.2", 49 | "sonarDocs": "https://docs.sonarqube.org/8.4", 50 | "sonarChangelog": "https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=15833", 51 | "sonarScala": "8.5.0" 52 | }, 53 | { 54 | "version": "5.4.0", 55 | "sonar": "8.3.1", 56 | "sonarDocs": "https://docs.sonarqube.org/8.3", 57 | "sonarChangelog": "https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=15640", 58 | "sonarScala": "8.4.0" 59 | }, 60 | { 61 | "version": "5.3.0", 62 | "sonar": "8.3.1", 63 | "sonarDocs": "https://docs.sonarqube.org/8.3", 64 | "sonarChangelog": "https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=15640", 65 | "sonarScala": "8.3.0" 66 | }, 67 | { 68 | "version": "5.2.0", 69 | "sonar": "8.2", 70 | "sonarDocs": "https://docs.sonarqube.org/8.2", 71 | "sonarChangelog": "https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=15301", 72 | "sonarScala": "8.2.0" 73 | }, 74 | { 75 | "version": "5.1.0", 76 | "sonar": "8.1", 77 | "sonarDocs": "https://docs.sonarqube.org/8.1", 78 | "sonarChangelog": "https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=15243", 79 | "sonarScala": "8.1.0" 80 | }, 81 | { 82 | "version": "5.0.0", 83 | "sonar": "8.1", 84 | "sonarDocs": "https://docs.sonarqube.org/8.1", 85 | "sonarChangelog": "https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=15243", 86 | "sonarScala": "8.0.0" 87 | }, 88 | { 89 | "version": "3.7.0", 90 | "sonar": "7.8", 91 | "sonarDocs": "https://docs.sonarqube.org/7.8", 92 | "sonarChangelog": "https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14939", 93 | "sonarScala": "7.6.0" 94 | }, 95 | { 96 | "version": "3.6.0", 97 | "sonar": "7.7", 98 | "sonarDocs": "https://docs.sonarqube.org/7.7", 99 | "sonarChangelog": "https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14848", 100 | "sonarScala": "7.5.0" 101 | }, 102 | { 103 | "version": "3.5.0", 104 | "sonar": "7.6", 105 | "sonarDocs": "https://docs.sonarqube.org/7.6", 106 | "sonarChangelog": "https://jira.sonarsource.com/secure/ReleaseNote.jspa?version=14753&projectId=10930", 107 | "sonarScala": "7.4.0" 108 | }, 109 | { 110 | "version": "3.4.0", 111 | "sonar": "7.4", 112 | "sonarDocs": "https://docs.sonarqube.org/7.4", 113 | "sonarChangelog": "https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14549", 114 | "sonarScala": "7.3.1" 115 | }, 116 | { 117 | "version": "3.3.0", 118 | "sonar": "7.4", 119 | "sonarDocs": "https://docs.sonarqube.org/7.4", 120 | "sonarChangelog": "https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14549", 121 | "sonarScala": "7.3.0" 122 | }, 123 | { 124 | "version": "3.2.1", 125 | "sonar": "7.4", 126 | "sonarDocs": "https://docs.sonarqube.org/7.4", 127 | "sonarChangelog": "https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14549", 128 | "sonarScala": "7.2.0" 129 | }, 130 | { 131 | "version": "3.2.0", 132 | "sonar": "7.4", 133 | "sonarDocs": "https://docs.sonarqube.org/7.4", 134 | "sonarChangelog": "https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14549", 135 | "sonarScala": "7.2.0" 136 | }, 137 | { 138 | "version": "3.1.0", 139 | "sonar": "7.4", 140 | "sonarDocs": "https://docs.sonarqube.org/7.4", 141 | "sonarChangelog": "https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14549", 142 | "sonarScala": "7.1.0" 143 | }, 144 | { 145 | "version": "3.0.0", 146 | "sonar": "7.3", 147 | "sonarDocs": "https://docs.sonarqube.org/display/SONARQUBE73/Documentation", 148 | "sonarChangelog": "https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14464", 149 | "sonarScala": "7.0.0" 150 | } 151 | ], 152 | "lts": [ 153 | { 154 | "version": "4.2.0", 155 | "sonar": "7.9.1 LTS", 156 | "sonarDocs": "https://docs.sonarqube.org/7.9", 157 | "sonarChangelog": "https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=15029", 158 | "sonarScala": "7.9.0" 159 | }, 160 | { 161 | "version": "4.1.0", 162 | "sonar": "7.9.1 LTS", 163 | "sonarDocs": "https://docs.sonarqube.org/7.9", 164 | "sonarChangelog": "https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=15029", 165 | "sonarScala": "7.8.0" 166 | }, 167 | { 168 | "version": "4.0.0", 169 | "sonar": "7.9.1 LTS", 170 | "sonarDocs": "https://docs.sonarqube.org/7.9", 171 | "sonarChangelog": "https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=15029", 172 | "sonarScala": "7.7.0" 173 | }, 174 | { 175 | "version": "2.11.0", 176 | "sonar": "6.7.6 LTS", 177 | "sonarDocs": "https://docs.sonarqube.org/display/SONARQUBE67/Documentation", 178 | "sonarChangelog": "https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=13972", 179 | "sonarScala": "6.8.0" 180 | }, 181 | { 182 | "version": "2.10.0", 183 | "sonar": "6.7.6 LTS", 184 | "sonarDocs": "https://docs.sonarqube.org/display/SONARQUBE67/Documentation", 185 | "sonarChangelog": "https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=13972", 186 | "sonarScala": "6.7.0" 187 | }, 188 | { 189 | "version": "2.9.0", 190 | "sonar": "6.7.5 LTS", 191 | "sonarDocs": "https://docs.sonarqube.org/display/SONARQUBE67/Documentation", 192 | "sonarChangelog": "https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14467", 193 | "sonarScala": "6.6.0" 194 | }, 195 | { 196 | "version": "2.8.0", 197 | "sonar": "6.7.5 LTS", 198 | "sonarDocs": "https://docs.sonarqube.org/display/SONARQUBE67/Documentation", 199 | "sonarChangelog": "https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14467", 200 | "sonarScala": "6.5.1" 201 | }, 202 | { 203 | "version": "2.7.0", 204 | "sonar": "6.7.4 LTS", 205 | "sonarDocs": "https://docs.sonarqube.org/display/SONARQUBE67/Documentation", 206 | "sonarChangelog": "https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14377", 207 | "sonarScala": "6.5.0" 208 | }, 209 | { 210 | "version": "2.6.0", 211 | "sonar": "6.7.4 LTS", 212 | "sonarDocs": "https://docs.sonarqube.org/display/SONARQUBE67/Documentation", 213 | "sonarChangelog": "https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14377", 214 | "sonarScala": "6.4.0", 215 | "sonarScalaExtra": "1.3.0" 216 | }, 217 | { 218 | "version": "2.5.0", 219 | "sonar": "6.7.3 LTS", 220 | "sonarDocs": "https://docs.sonarqube.org/display/SONARQUBE67/Documentation", 221 | "sonarChangelog": "https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14264", 222 | "sonarScala": "6.4.0", 223 | "sonarScalaExtra": "1.3.0" 224 | }, 225 | { 226 | "version": "2.4.0", 227 | "sonar": "6.7.3 LTS", 228 | "sonarDocs": "https://docs.sonarqube.org/display/SONARQUBE67/Documentation", 229 | "sonarChangelog": "https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14264", 230 | "sonarScala": "6.3.0", 231 | "sonarScalaExtra": "1.3.0" 232 | }, 233 | { 234 | "version": "2.3.0", 235 | "sonar": "6.7.3 LTS", 236 | "sonarDocs": "https://docs.sonarqube.org/display/SONARQUBE67/Documentation", 237 | "sonarChangelog": "https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14264", 238 | "sonarScala": "6.2.0", 239 | "sonarScalaExtra": "1.3.0" 240 | }, 241 | { 242 | "version": "2.2.1", 243 | "sonar": "6.7.3 LTS", 244 | "sonarDocs": "https://docs.sonarqube.org/display/SONARQUBE67/Documentation", 245 | "sonarChangelog": "https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14264", 246 | "sonarScala": "6.1.0", 247 | "sonarScalaExtra": "1.3.0" 248 | }, 249 | { 250 | "version": "2.2.0", 251 | "sonar": "6.7.2 LTS", 252 | "sonarDocs": "https://docs.sonarqube.org/display/SONARQUBE67/Documentation", 253 | "sonarChangelog": "https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14191", 254 | "sonarScala": "6.1.0", 255 | "sonarScalaExtra": "1.3.0" 256 | }, 257 | { 258 | "version": "2.1.0", 259 | "sonar": "6.7.1 LTS", 260 | "sonarDocs": "https://docs.sonarqube.org/display/SONARQUBE67/Documentation", 261 | "sonarChangelog": "https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14137", 262 | "sonarScala": "6.0.0", 263 | "sonarScalaExtra": "1.3.0" 264 | } 265 | ] 266 | } 267 | } 268 | --------------------------------------------------------------------------------