Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit ac4902e

Browse files
franbhmwz
andauthored
Upgrade SonarQube to 8.4 & sonar-scala to 8.5.0 (#28)
Co-authored-by: Michael Wizner <[email protected]>
1 parent 98d205d commit ac4902e

File tree

9 files changed

+51
-48
lines changed

9 files changed

+51
-48
lines changed

README.md

+15-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# sonar-scala-docker
22

3-
[![GitHub version](<https://img.shields.io/badge/release_(for_SonarQube_8.3.1)-v5.4.0-blue.svg>)](https://github.com/mwz/sonarqube-scala-docker/releases)
3+
[![GitHub version](<https://img.shields.io/badge/release_(for_SonarQube_8.4.2)-v5.5.0-blue.svg>)](https://github.com/mwz/sonarqube-scala-docker/releases)
44
[![GitHub version lts](<https://img.shields.io/badge/release_(for_SonarQube_LTS_7.9)-v4.2.0-blue.svg>)](https://github.com/mwz/sonarqube-scala-docker/releases)
55
[![GitHub version lts 6.7](<https://img.shields.io/badge/release_(for_SonarQube_LTS_6.7)-v2.12.0-blue.svg>)](https://github.com/mwz/sonarqube-scala-docker/releases)
66
[![Docker Pulls](https://img.shields.io/docker/pulls/mwizner/sonarqube-scala-plugins.svg)](https://hub.docker.com/r/mwizner/sonarqube-scala-plugins)
77

88
Docker images and docker-compose recipes for out-of-the-box
99
[SonarQube 6.7 LTS](https://www.sonarqube.org/sonarqube-6-7-lts),
1010
[SonarQube 7.9 LTS](https://www.sonarqube.org/sonarqube-7-9-lts) and
11-
[SonarQube 8.3.1](https://www.sonarqube.org) instance with support
11+
[SonarQube 8.4.2](https://www.sonarqube.org) instance with support
1212
for [Scala](http://www.scala-lang.org),
1313
[Scoverage](https://github.com/scoverage/scalac-scoverage-plugin) (code coverage
1414
metrics) and [Scalastyle](http://www.scalastyle.org) +
@@ -35,7 +35,7 @@ default SonarQube login details for the Administrator account are `admin:admin`.
3535

3636
You can also use a standalone docker image which contains SonarQube server with
3737
bundled sonar-scala plugin,
38-
[`mwizner/sonarqube-scala-plugins:5.4.0-full`](https://hub.docker.com/r/mwizner/sonarqube-scala-plugins)(or
38+
[`mwizner/sonarqube-scala-plugins:5.5.0-full`](https://hub.docker.com/r/mwizner/sonarqube-scala-plugins)(or
3939
`mwizner/sonarqube-scala-plugins:latest-full`) and
4040
[`mwizner/sonarqube-scala-plugins:4.2.0-full`](https://hub.docker.com/r/mwizner/sonarqube-scala-plugins)
4141
(or `mwizner/sonarqube-scala-plugins:latest-lts-full`) for the current LTS
@@ -54,7 +54,7 @@ docker run -d \
5454
-e SONARQUBE_JDBC_USERNAME=sonar \
5555
-e SONARQUBE_JDBC_PASSWORD=sonar \
5656
-e SONARQUBE_JDBC_URL=jdbc:postgresql://localhost/sonar \
57-
mwizner/sonarqube-scala-plugins:5.4.0-full
57+
mwizner/sonarqube-scala-plugins:5.5.0-full
5858
```
5959

6060
Please note that if you don't specify the `SONARQUBE_JDBC_URL` variable,
@@ -66,15 +66,15 @@ want to try the image, you can use the following command:
6666
docker run -d \
6767
--name sonarqube-scala-plugins-full \
6868
-p 80:9000 \
69-
mwizner/sonarqube-scala-plugins:5.4.0-full
69+
mwizner/sonarqube-scala-plugins:5.5.0-full
7070
```
7171

7272
## Dependencies
7373

7474
- [SonarQube 6.7 LTS](https://hub.docker.com/_/sonarqube) /
7575
[SonarQube 7.9 LTS](https://hub.docker.com/_/sonarqube) /
76-
[SonarQube 8.3.1](https://hub.docker.com/_/sonarqube)
77-
- [PostgreSQL 11](https://hub.docker.com/_/postgres)
76+
[SonarQube 8.4.2](https://hub.docker.com/_/sonarqube)
77+
- [PostgreSQL 12](https://hub.docker.com/_/postgres)
7878
- [mwz/sonar-scala](https://github.com/mwz/sonar-scala) - provides support for
7979
scalastyle, scoverage and scapegoat
8080

@@ -87,7 +87,7 @@ scapegoat support)_
8787
<!-- prettier-ignore-start -->
8888
|Version | SonarQube | sonar-scala |
8989
|--------|-----------|-------------|
90-
[5.4.0](https://github.com/mwz/sonarqube-scala-docker/releases/tag/5.4.0) | 8.3.1 [documentation](https://docs.sonarqube.org/8.3), [changelog](https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=15640) | [8.4.0](https://github.com/mwz/sonar-scala/releases/tag/v8.4.0)
90+
[5.5.0](https://github.com/mwz/sonarqube-scala-docker/releases/tag/5.5.0) | 8.4.2 [documentation](https://docs.sonarqube.org/8.4), [changelog](https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=15833) | [8.5.0](https://github.com/mwz/sonar-scala/releases/tag/v8.5.0)
9191
[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) | [7.9.0](https://github.com/mwz/sonar-scala/releases/tag/v7.9.0)
9292
[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)
9393
<!-- prettier-ignore-end -->
@@ -101,6 +101,12 @@ scapegoat support)_
101101
<td><b>sonar-scala</b></td>
102102
<td><b>sonar-scala-extra</b></td>
103103
</tr>
104+
<tr>
105+
<td><a href="https://github.com/mwz/sonarqube-scala-docker/releases/tag/5.4.0">5.4.0</a></td>
106+
<td>8.3.1 <a href="https://docs.sonarqube.org/8.3">documentation</a>, <a href="https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=15640">changelog</a></td>
107+
<td><a href="https://github.com/mwz/sonar-scala/releases/tag/v8.4.0">8.4.0</td>
108+
<td></td>
109+
</tr>
104110
<tr>
105111
<td><a href="https://github.com/mwz/sonarqube-scala-docker/releases/tag/5.3.0">5.3.0</a></td>
106112
<td>8.3.1 <a href="https://docs.sonarqube.org/8.3">documentation</a>, <a href="https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=15640">changelog</a></td>
@@ -287,6 +293,7 @@ way to automate analysis of Scala projects with SonarQube.
287293
<details>
288294
<summary>Expand to see the changelog.</summary>
289295
<ul>
296+
<li><strong>5.5.0</strong> - Upgraded sonar-scala to 8.5.0 & SonarQube to 8.4.</li>
290297
<li><strong>5.4.0</strong> - Upgraded sonar-scala to 8.4.0.</li>
291298
<li><strong>5.3.0</strong> - Upgraded sonar-scala to 8.3.0 & SonarQube to 8.3.</li>
292299
<li><strong>5.2.0</strong> - Upgraded sonar-scala to 8.2.0 & SonarQube to 8.2.</li>

README.tpl.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ docker run -d \
7474
- [SonarQube 6.7 LTS](https://hub.docker.com/_/sonarqube) /
7575
[SonarQube 7.9 LTS](https://hub.docker.com/_/sonarqube) /
7676
[SonarQube {{current.sonar}}](https://hub.docker.com/_/sonarqube)
77-
- [PostgreSQL 11](https://hub.docker.com/_/postgres)
77+
- [PostgreSQL 12](https://hub.docker.com/_/postgres)
7878
- [mwz/sonar-scala](https://github.com/mwz/sonar-scala) - provides support for
7979
scalastyle, scoverage and scapegoat
8080

@@ -135,6 +135,7 @@ way to automate analysis of Scala projects with SonarQube.
135135
<details>
136136
<summary>Expand to see the changelog.</summary>
137137
<ul>
138+
<li><strong>5.5.0</strong> - Upgraded sonar-scala to 8.5.0 & SonarQube to 8.4.</li>
138139
<li><strong>5.4.0</strong> - Upgraded sonar-scala to 8.4.0.</li>
139140
<li><strong>5.3.0</strong> - Upgraded sonar-scala to 8.3.0 & SonarQube to 8.3.</li>
140141
<li><strong>5.2.0</strong> - Upgraded sonar-scala to 8.2.0 & SonarQube to 8.2.</li>

README_DOCKERHUB.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Docker images with out-of-the-box
22
[SonarQube 6.7 LTS](https://www.sonarqube.org/sonarqube-6-7-lts),
33
[SonarQube 7.9 LTS](https://www.sonarqube.org/sonarqube-7-9-lts) and
4-
[SonarQube 8.3.1](https://www.sonarqube.org) instance with support
4+
[SonarQube 8.4.2](https://www.sonarqube.org) instance with support
55
for **[Scala](http://www.scala-lang.org)**,
66
**[Scoverage](https://github.com/scoverage/scalac-scoverage-plugin)** (code
77
coverage metrics) and **[Scalastyle](http://www.scalastyle.org)** +
@@ -18,11 +18,11 @@ Starting from version `2.7.0`, the images no longer contain the
1818
[sonar-scala-extra](https://github.com/arthepsy/sonar-scala-extra) plugin as
1919
sonar-scala provides Scapegoat support from version `6.5.0` onwards.
2020

21-
- `5.4.0`, `latest`
22-
[Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/5.4.0/Dockerfile),
23-
`5.4.0-full`, `latest-full`
24-
[Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/5.4.0-full/Dockerfile),
25-
[Release 5.4.0](https://github.com/mwz/sonar-scala-docker/releases/tag/5.4.0)
21+
- `5.5.0`, `latest`
22+
[Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/5.5.0/Dockerfile),
23+
`5.5.0-full`, `latest-full`
24+
[Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/5.5.0-full/Dockerfile),
25+
[Release 5.5.0](https://github.com/mwz/sonar-scala-docker/releases/tag/5.5.0)
2626
- `4.2.0`, `latest-lts` (7.9 LTS)
2727
[Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/4.2.0/Dockerfile),
2828
`4.2.0-full`, `latest-lts-full` (7.9 LTS)
@@ -41,8 +41,8 @@ For older versions please check the
4141

4242
| Version | SonarQube | sonar-scala |
4343
| ------------------------ | ----------------- | ---------------------- |
44-
| 5.4.0 | | 8.4.0 |
45-
| 5.4.0-full | 8.3.1 | 8.4.0 |
44+
| 5.5.0 | | 8.5.0 |
45+
| 5.5.0-full | 8.4.2 | 8.5.0 |
4646
| 4.2.0 | | 7.9.0 |
4747
| 4.2.0-full | 7.9.1 LTS | 7.9.0 |
4848
| 2.12.0 | | 6.8.0 |
@@ -58,7 +58,7 @@ version: "2"
5858
5959
services:
6060
sonarqube:
61-
image: sonarqube:8.3.1-community
61+
image: sonarqube:8.4.2-community
6262
ports:
6363
- "80:9000"
6464
networks:
@@ -67,7 +67,7 @@ services:
6767
- plugins
6868
6969
plugins:
70-
image: mwizner/sonarqube-scala-plugins:5.4.0
70+
image: mwizner/sonarqube-scala-plugins:5.5.0
7171
volumes:
7272
- sonarqube_plugins:/opt/sonarqube/extensions/plugins
7373
command: /bin/true
@@ -95,7 +95,7 @@ docker run -d \
9595
-e SONARQUBE_JDBC_USERNAME=sonar \
9696
-e SONARQUBE_JDBC_PASSWORD=sonar \
9797
-e SONARQUBE_JDBC_URL=jdbc:postgresql://localhost/sonar \
98-
mwizner/sonarqube-scala-plugins:5.4.0-full
98+
mwizner/sonarqube-scala-plugins:5.5.0-full
9999
```
100100

101101
Please note that if you don't specify the `SONARQUBE_JDBC_URL` variable,
@@ -107,7 +107,7 @@ want to try the image, you can use the following command:
107107
docker run -d \
108108
--name sonarqube-scala-plugins-full \
109109
-p 80:9000 \
110-
mwizner/sonarqube-scala-plugins:5.4.0-full
110+
mwizner/sonarqube-scala-plugins:5.5.0-full
111111
```
112112

113113
## Repository

conf/sonar.properties

+3-15
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,17 @@
2222
# H2 embedded database server listening port, defaults to 9092
2323
#sonar.embeddedDatabase.port=9092
2424

25-
2625
#----- Oracle 11g/12c/18c/19c
2726
# The Oracle JDBC driver must be copied into the directory extensions/jdbc-driver/oracle/.
2827
# Only the thin client is supported, and we recommend using the latest Oracle JDBC driver. See
2928
# https://jira.sonarsource.com/browse/SONAR-9758 for more details.
3029
# If you need to set the schema, please refer to http://jira.sonarsource.com/browse/SONAR-5000
3130
#sonar.jdbc.url=jdbc:oracle:thin:@localhost:1521/XE
3231

33-
3432
#----- PostgreSQL 9.3 or greater
3533
# By default the schema named "public" is used. It can be overridden with the parameter "currentSchema".
3634
#sonar.jdbc.url=jdbc:postgresql://localhost/sonarqube?currentSchema=my_schema
3735

38-
3936
#----- Microsoft SQLServer 2014/2016/2017 and SQL Azure
4037
# A database named sonar must exist and its collation must be case-sensitive (CS) and accent-sensitive (AS)
4138
# Use the following connection string if you want to use integrated security with Microsoft Sql Server
@@ -50,7 +47,6 @@
5047
# Set the sonar.jdbc.username and sonar.jdbc.password appropriately.
5148
#sonar.jdbc.url=jdbc:sqlserver://localhost;databaseName=sonar
5249

53-
5450
#----- Connection pool settings
5551
# The maximum number of active connections that can be allocated
5652
# at the same time, or negative for no limit.
@@ -75,8 +71,6 @@
7571
#sonar.jdbc.minEvictableIdleTimeMillis=600000
7672
#sonar.jdbc.timeBetweenEvictionRunsMillis=30000
7773

78-
79-
8074
#--------------------------------------------------------------------------------------------------
8175
# WEB SERVER
8276
# Web server is executed in a dedicated Java process. By default heap size is 512MB.
@@ -107,7 +101,6 @@
107101
# TCP port for incoming HTTP connections. Default value is 9000.
108102
#sonar.web.port=9000
109103

110-
111104
# The maximum number of connections that the server will accept and process at any given time.
112105
# When this number has been reached, the server will not accept any more connections until
113106
# the number of connections falls below this value. The operating system may still accept connections
@@ -131,8 +124,9 @@
131124

132125
# The inactivity timeout duration of user sessions, in minutes. After the configured
133126
# period of time, the user is logged out.
134-
# The default value is set to 3 days (4320 minutes)
135-
# and cannot be greater than 3 months. Value must be strictly positive.
127+
# The default value is set to 3 days (4320 minutes).
128+
# It must be set between 5 minutes and 3 months.
129+
# Value must be strictly positive.
136130
#sonar.web.sessionTimeoutInMinutes=4320
137131

138132
# A passcode can be defined to access some web services from monitoring
@@ -142,7 +136,6 @@
142136
# By default feature is disabled.
143137
#sonar.web.systemPasscode=
144138

145-
146139
#--------------------------------------------------------------------------------------------------
147140
# SSO AUTHENTICATION
148141

@@ -246,7 +239,6 @@
246239
# Same as previous property, but allows to not repeat all other settings like -Xmx
247240
#sonar.ce.javaAdditionalOpts=
248241

249-
250242
#--------------------------------------------------------------------------------------------------
251243
# ELASTICSEARCH
252244
# Elasticsearch is used to facilitate fast and accurate information retrieval.
@@ -278,7 +270,6 @@
278270
# As a security precaution, should NOT be set to a publicly available address.
279271
#sonar.search.host=
280272

281-
282273
#--------------------------------------------------------------------------------------------------
283274
# UPDATE CENTER
284275

@@ -310,7 +301,6 @@
310301
# (note: localhost and its literal notations (127.0.0.1, ...) are always excluded)
311302
#http.nonProxyHosts=
312303

313-
314304
#--------------------------------------------------------------------------------------------------
315305
# LOGGING
316306

@@ -393,7 +383,6 @@
393383
# Default value (which was "combined" before version 6.2) is equivalent to "combined + SQ HTTP request ID":
394384
#sonar.web.accessLogs.pattern=%h %l %u [%t] "%r" %s %b "%i{Referer}" "%i{User-Agent}" "%reqAttribute{ID}"
395385

396-
397386
#--------------------------------------------------------------------------------------------------
398387
# OTHERS
399388

@@ -412,7 +401,6 @@
412401
# To see an example of the data shared: login as a global administrator, call the WS api/system/info and check the Statistics field.
413402
sonar.telemetry.enable=false
414403

415-
416404
#--------------------------------------------------------------------------------------------------
417405
# DEVELOPMENT - only for developers
418406
# The following properties MUST NOT be used in production environments.

current/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
FROM bitnami/minideb:stretch
55
RUN install_packages curl ca-certificates
66

7-
ENV SONAR_SCALA_VERSION 8.4.0
7+
ENV SONAR_SCALA_VERSION 8.5.0
88
ENV GIT_PLUGIN_VERSION 1.11.1.2008
99
ENV SQ_EXTENSIONS_DIR "/opt/sonarqube/extensions"
1010

current/full/Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# SonarQube 8.3 image with bundled sonar-scala (https://github.com/mwz/sonar-scala).
1+
# SonarQube 8.4 image with bundled sonar-scala (https://github.com/mwz/sonar-scala).
22

3-
FROM sonarqube:8.3.1-community
3+
FROM sonarqube:8.4.2-community
44

5-
ENV SONAR_SCALA_VERSION 8.4.0
5+
ENV SONAR_SCALA_VERSION 8.5.0
66

77
RUN rm $SQ_EXTENSIONS_DIR/plugins/sonar-scala-plugin-* && \
88
wget -O "${SQ_EXTENSIONS_DIR}/plugins/sonar-scala-plugin-${SONAR_SCALA_VERSION}.jar" \

dev/build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
set -eu
33

4-
export SONAR_SCALA_VERSION=8.4.0-SNAPSHOT
4+
export SONAR_SCALA_VERSION=8.6.0-SNAPSHOT
55
cp ~/.ivy2/local/com.github.mwz/sonar-scala_2.13/${SONAR_SCALA_VERSION}/jars/sonar-scala_2.13-assembly.jar .
66
docker build -t mwizner/sonarqube-scala-plugins:dev --build-arg SONAR_SCALA_VERSION=${SONAR_SCALA_VERSION} .

docker-compose.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: "2"
22

33
services:
44
sonarqube:
5-
image: sonarqube:8.3.1-community
5+
image: sonarqube:8.4.2-community
66
ports:
77
- "80:9000"
88
networks:
@@ -21,7 +21,7 @@ services:
2121
depends_on:
2222
- db
2323
db:
24-
image: postgres:11.7-alpine
24+
image: postgres:12.4-alpine
2525
networks:
2626
- sonarnet
2727
environment:

vars.json

+12-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"current": {
3-
"version": "5.4.0",
4-
"sonar": "8.3.1",
5-
"sonarDocs": "https://docs.sonarqube.org/8.3",
6-
"sonarChangelog": "https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=15640",
7-
"sonarScala": "8.4.0"
3+
"version": "5.5.0",
4+
"sonar": "8.4.2",
5+
"sonarDocs": "https://docs.sonarqube.org/8.4",
6+
"sonarChangelog": "https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=15833",
7+
"sonarScala": "8.5.0"
88
},
99
"lts": {
1010
"version": "4.2.0",
@@ -22,6 +22,13 @@
2222
},
2323
"versions": {
2424
"current": [
25+
{
26+
"version": "5.4.0",
27+
"sonar": "8.3.1",
28+
"sonarDocs": "https://docs.sonarqube.org/8.3",
29+
"sonarChangelog": "https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=15640",
30+
"sonarScala": "8.4.0"
31+
},
2532
{
2633
"version": "5.3.0",
2734
"sonar": "8.3.1",

0 commit comments

Comments
 (0)