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

Commit 5c3deed

Browse files
authored
Upgrade SonarQube to 8.5.1 & sonar-scala to 8.6.0 (#30)
1 parent 51b89dd commit 5c3deed

File tree

8 files changed

+48
-35
lines changed

8 files changed

+48
-35
lines changed

README.md

Lines changed: 14 additions & 7 deletions
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.4.2)-v5.5.0-blue.svg>)](https://github.com/mwz/sonarqube-scala-docker/releases)
3+
[![GitHub version](<https://img.shields.io/badge/release_(for_SonarQube_8.5.1)-v5.6.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.4.2](https://www.sonarqube.org) instance with support
11+
[SonarQube 8.5.1](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.5.0-full`](https://hub.docker.com/r/mwizner/sonarqube-scala-plugins)(or
38+
[`mwizner/sonarqube-scala-plugins:5.6.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.5.0-full
57+
mwizner/sonarqube-scala-plugins:5.6.0-full
5858
```
5959

6060
Please note that if you don't specify the `SONARQUBE_JDBC_URL` variable,
@@ -66,14 +66,14 @@ 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.5.0-full
69+
mwizner/sonarqube-scala-plugins:5.6.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.4.2](https://hub.docker.com/_/sonarqube)
76+
[SonarQube 8.5.1](https://hub.docker.com/_/sonarqube)
7777
- [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
@@ -87,7 +87,7 @@ scapegoat support)_
8787
<!-- prettier-ignore-start -->
8888
|Version | SonarQube | sonar-scala |
8989
|--------|-----------|-------------|
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)
90+
[5.6.0](https://github.com/mwz/sonarqube-scala-docker/releases/tag/5.6.0) | 8.5.1 [documentation](https://docs.sonarqube.org/8.5), [changelog](https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=16342) | [8.6.0](https://github.com/mwz/sonar-scala/releases/tag/v8.6.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.5.0">5.5.0</a></td>
106+
<td>8.4.2 <a href="https://docs.sonarqube.org/8.4">documentation</a>, <a href="https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=15833">changelog</a></td>
107+
<td><a href="https://github.com/mwz/sonar-scala/releases/tag/v8.5.0">8.5.0</td>
108+
<td></td>
109+
</tr>
104110
<tr>
105111
<td><a href="https://github.com/mwz/sonarqube-scala-docker/releases/tag/5.4.0">5.4.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>
@@ -293,6 +299,7 @@ way to automate analysis of Scala projects with SonarQube.
293299
<details>
294300
<summary>Expand to see the changelog.</summary>
295301
<ul>
302+
<li><strong>5.6.0</strong> - Upgraded sonar-scala to 8.6.0 & SonarQube to 8.5.1.</li>
296303
<li><strong>5.5.0</strong> - Upgraded sonar-scala to 8.5.0 & SonarQube to 8.4.</li>
297304
<li><strong>5.4.0</strong> - Upgraded sonar-scala to 8.4.0.</li>
298305
<li><strong>5.3.0</strong> - Upgraded sonar-scala to 8.3.0 & SonarQube to 8.3.</li>

README.tpl.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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.6.0</strong> - Upgraded sonar-scala to 8.6.0 & SonarQube to 8.5.1.</li>
138139
<li><strong>5.5.0</strong> - Upgraded sonar-scala to 8.5.0 & SonarQube to 8.4.</li>
139140
<li><strong>5.4.0</strong> - Upgraded sonar-scala to 8.4.0.</li>
140141
<li><strong>5.3.0</strong> - Upgraded sonar-scala to 8.3.0 & SonarQube to 8.3.</li>

README_DOCKERHUB.md

Lines changed: 12 additions & 12 deletions
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.4.2](https://www.sonarqube.org) instance with support
4+
[SonarQube 8.5.1](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.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)
21+
- `5.6.0`, `latest`
22+
[Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/5.6.0/Dockerfile),
23+
`5.6.0-full`, `latest-full`
24+
[Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/5.6.0-full/Dockerfile),
25+
[Release 5.6.0](https://github.com/mwz/sonar-scala-docker/releases/tag/5.6.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.5.0 | | 8.5.0 |
45-
| 5.5.0-full | 8.4.2 | 8.5.0 |
44+
| 5.6.0 | | 8.6.0 |
45+
| 5.6.0-full | 8.5.1 | 8.6.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.4.2-community
61+
image: sonarqube:8.5.1-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.5.0
70+
image: mwizner/sonarqube-scala-plugins:5.6.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.5.0-full
98+
mwizner/sonarqube-scala-plugins:5.6.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.5.0-full
110+
mwizner/sonarqube-scala-plugins:5.6.0-full
111111
```
112112

113113
## Repository

current/Dockerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,11 @@
44
FROM bitnami/minideb:stretch
55
RUN install_packages curl ca-certificates
66

7-
ENV SONAR_SCALA_VERSION 8.5.0
8-
ENV GIT_PLUGIN_VERSION 1.12.0.2034
7+
ENV SONAR_SCALA_VERSION 8.6.0
98
ENV SQ_EXTENSIONS_DIR "/opt/sonarqube/extensions"
109

1110
RUN groupadd -g 1000 -r sonarqube && useradd -r -g sonarqube sonarqube
1211
RUN curl --create-dirs -L -o "${SQ_EXTENSIONS_DIR}/plugins/sonar-scala-plugin-${SONAR_SCALA_VERSION}.jar" \
1312
"https://dl.bintray.com/mwz/maven/com/github/mwz/sonar-scala_2.13/${SONAR_SCALA_VERSION}/sonar-scala_2.13-${SONAR_SCALA_VERSION}-assembly.jar" && \
14-
curl --create-dirs -L -o "${SQ_EXTENSIONS_DIR}/plugins/sonar-scm-git-plugin-${GIT_PLUGIN_VERSION}.jar" \
15-
"https://binaries.sonarsource.com/Distribution/sonar-scm-git-plugin/sonar-scm-git-plugin-${GIT_PLUGIN_VERSION}.jar" && \
1613
chown -R sonarqube:sonarqube /opt/sonarqube && \
1714
chmod 777 $SQ_EXTENSIONS_DIR/plugins/*

current/full/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# SonarQube 8.4 image with bundled sonar-scala (https://github.com/mwz/sonar-scala).
1+
# SonarQube 8.5 image with bundled sonar-scala (https://github.com/mwz/sonar-scala).
22

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

5-
ENV SONAR_SCALA_VERSION 8.5.0
5+
ENV SONAR_SCALA_VERSION 8.6.0
66

7-
RUN rm $SQ_EXTENSIONS_DIR/plugins/sonar-scala-plugin-* && \
7+
RUN rm $SONARQUBE_HOME/lib/extensions/sonar-scala* && \
88
wget -O "${SQ_EXTENSIONS_DIR}/plugins/sonar-scala-plugin-${SONAR_SCALA_VERSION}.jar" \
99
"https://dl.bintray.com/mwz/maven/com/github/mwz/sonar-scala_2.13/${SONAR_SCALA_VERSION}/sonar-scala_2.13-${SONAR_SCALA_VERSION}-assembly.jar" && \
1010
chown sonarqube:sonarqube $SQ_EXTENSIONS_DIR/plugins/sonar-scala-plugin-* && \

dev/build.sh

Lines changed: 1 addition & 1 deletion
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.6.0-SNAPSHOT
4+
export SONAR_SCALA_VERSION=8.7.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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: "2"
22

33
services:
44
sonarqube:
5-
image: sonarqube:8.4.2-community
5+
image: sonarqube:8.5.1-community
66
ports:
77
- "80:9000"
88
networks:
@@ -20,8 +20,9 @@ services:
2020
- plugins
2121
depends_on:
2222
- db
23+
entrypoint: ["bash", "-c", "rm lib/extensions/sonar-scala*; bin/run.sh"]
2324
db:
24-
image: postgres:12.4-alpine
25+
image: postgres:12.5-alpine
2526
networks:
2627
- sonarnet
2728
environment:

vars.json

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"current": {
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"
3+
"version": "5.6.0",
4+
"sonar": "8.5.1",
5+
"sonarDocs": "https://docs.sonarqube.org/8.5",
6+
"sonarChangelog": "https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=16342",
7+
"sonarScala": "8.6.0"
88
},
99
"lts": {
1010
"version": "4.2.0",
@@ -22,6 +22,13 @@
2222
},
2323
"versions": {
2424
"current": [
25+
{
26+
"version": "5.5.0",
27+
"sonar": "8.4.2",
28+
"sonarDocs": "https://docs.sonarqube.org/8.4",
29+
"sonarChangelog": "https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=15833",
30+
"sonarScala": "8.5.0"
31+
},
2532
{
2633
"version": "5.4.0",
2734
"sonar": "8.3.1",

0 commit comments

Comments
 (0)