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

Commit c94bc74

Browse files
authored
Upgrade SonarQube to 8.3 & sonar-scala to 8.3.0 (#25)
1 parent b346031 commit c94bc74

File tree

8 files changed

+58
-39
lines changed

8 files changed

+58
-39
lines changed

README.md

+13-7
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.2)-v5.2.0-blue.svg>)](https://github.com/mwz/sonarqube-scala-docker/releases)
3+
[![GitHub version](<https://img.shields.io/badge/release_(for_SonarQube_8.3.1)-v5.3.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.2](https://www.sonarqube.org) instance with support
11+
[SonarQube 8.3.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.2.0-full`](https://hub.docker.com/r/mwizner/sonarqube-scala-plugins)(or
38+
[`mwizner/sonarqube-scala-plugins:5.3.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.2.0-full
57+
mwizner/sonarqube-scala-plugins:5.3.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.2.0-full
69+
mwizner/sonarqube-scala-plugins:5.3.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.2](https://hub.docker.com/_/sonarqube)
76+
[SonarQube 8.3.1](https://hub.docker.com/_/sonarqube)
7777
- [PostgreSQL 11](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.2.0](https://github.com/mwz/sonarqube-scala-docker/releases/tag/5.2.0) | 8.2 [documentation](https://docs.sonarqube.org/8.2), [changelog](https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=15301) | [8.2.0](https://github.com/mwz/sonar-scala/releases/tag/v8.2.0)
90+
[5.3.0](https://github.com/mwz/sonarqube-scala-docker/releases/tag/5.3.0) | 8.3.1 [documentation](https://docs.sonarqube.org/8.3), [changelog](https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=15640) | [8.3.0](https://github.com/mwz/sonar-scala/releases/tag/v8.3.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.2.0">5.2.0</a></td>
106+
<td>8.2 <a href="https://docs.sonarqube.org/8.2">documentation</a>, <a href="https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=15301">changelog</a></td>
107+
<td><a href="https://github.com/mwz/sonar-scala/releases/tag/v8.2.0">8.2.0</td>
108+
<td></td>
109+
</tr>
104110
<tr>
105111
<td><a href="https://github.com/mwz/sonarqube-scala-docker/releases/tag/5.1.0">5.1.0</a></td>
106112
<td>8.1 <a href="https://docs.sonarqube.org/8.1">documentation</a>, <a href="https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=15243">changelog</a></td>

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.2](https://www.sonarqube.org) instance with support
4+
[SonarQube 8.3.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.2.0`, `latest`
22-
[Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/5.2.0/Dockerfile),
23-
`5.2.0-full`, `latest-full`
24-
[Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/5.2.0-full/Dockerfile),
25-
[Release 5.2.0](https://github.com/mwz/sonar-scala-docker/releases/tag/5.2.0)
21+
- `5.3.0`, `latest`
22+
[Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/5.3.0/Dockerfile),
23+
`5.3.0-full`, `latest-full`
24+
[Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/5.3.0-full/Dockerfile),
25+
[Release 5.3.0](https://github.com/mwz/sonar-scala-docker/releases/tag/5.3.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.2.0 | | 8.2.0 |
45-
| 5.2.0-full | 8.2 | 8.2.0 |
44+
| 5.3.0 | | 8.3.0 |
45+
| 5.3.0-full | 8.3.1 | 8.3.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.2-community
61+
image: sonarqube:8.3.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.2.0
70+
image: mwizner/sonarqube-scala-plugins:5.3.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.2.0-full
98+
mwizner/sonarqube-scala-plugins:5.3.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.2.0-full
110+
mwizner/sonarqube-scala-plugins:5.3.0-full
111111
```
112112

113113
## Repository

current/Dockerfile

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

7-
ENV SONAR_SCALA_VERSION 8.2.0
7+
ENV SONAR_SCALA_VERSION 8.3.0
8+
ENV GIT_PLUGIN_VERSION 1.11.1.2008
9+
ENV SQ_EXTENSIONS_DIR "/opt/sonarqube/extensions"
810

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.13/${SONAR_SCALA_VERSION}/sonar-scala_2.13-${SONAR_SCALA_VERSION}-assembly.jar"
13-
RUN chown -R sonarqube:sonarqube /opt/sonarqube
11+
RUN groupadd -g 1000 -r sonarqube && useradd -r -g sonarqube sonarqube
12+
RUN curl --create-dirs -L -o "${SQ_EXTENSIONS_DIR}/plugins/sonar-scala-plugin-${SONAR_SCALA_VERSION}.jar" \
13+
"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://repo1.maven.org/maven2/org/sonarsource/scm/git/sonar-scm-git-plugin/${GIT_PLUGIN_VERSION}/sonar-scm-git-plugin-${GIT_PLUGIN_VERSION}.jar" && \
16+
chown -R sonarqube:sonarqube /opt/sonarqube && \
17+
chmod 777 $SQ_EXTENSIONS_DIR/plugins/*

current/full/Dockerfile

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

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

5-
ENV SONAR_SCALA_VERSION 8.2.0
5+
ENV SONAR_SCALA_VERSION 8.3.0
66

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.13/${SONAR_SCALA_VERSION}/sonar-scala_2.13-${SONAR_SCALA_VERSION}-assembly.jar"
7+
RUN rm $SQ_EXTENSIONS_DIR/plugins/sonar-scala-plugin-* && \
8+
wget -O "${SQ_EXTENSIONS_DIR}/plugins/sonar-scala-plugin-${SONAR_SCALA_VERSION}.jar" \
9+
"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" && \
10+
chown sonarqube:sonarqube $SQ_EXTENSIONS_DIR/plugins/sonar-scala-plugin-* && \
11+
chmod 777 $SQ_EXTENSIONS_DIR/plugins/sonar-scala-plugin-*
1012

1113
WORKDIR $SONARQUBE_HOME
1214
ENTRYPOINT ["./bin/run.sh"]

dev/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ FROM bitnami/minideb:stretch
66

77
ARG SONAR_SCALA_VERSION
88

9-
RUN groupadd -r sonarqube && useradd -r -g sonarqube sonarqube
9+
RUN groupadd -g 1000 -r sonarqube && useradd -r -g sonarqube sonarqube
1010
ADD --chown=sonarqube:sonarqube sonar-scala_2.13-assembly.jar /opt/sonarqube/extensions/plugins/sonar-scala_2.13-assembly.jar
1111
WORKDIR /opt/sonarqube/extensions/plugins

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.3.0-SNAPSHOT
4+
export SONAR_SCALA_VERSION=8.4.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

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

33
services:
44
sonarqube:
5-
image: sonarqube:8.2-community
5+
image: sonarqube:8.3.1-community
66
ports:
77
- "80:9000"
88
networks:

vars.json

+12-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"current": {
3-
"version": "5.2.0",
4-
"sonar": "8.2",
5-
"sonarDocs": "https://docs.sonarqube.org/8.2",
6-
"sonarChangelog": "https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=15301",
7-
"sonarScala": "8.2.0"
3+
"version": "5.3.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.3.0"
88
},
99
"lts": {
1010
"version": "4.2.0",
@@ -22,6 +22,13 @@
2222
},
2323
"versions": {
2424
"current": [
25+
{
26+
"version": "5.2.0",
27+
"sonar": "8.2",
28+
"sonarDocs": "https://docs.sonarqube.org/8.2",
29+
"sonarChangelog": "https://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=15301",
30+
"sonarScala": "8.2.0"
31+
},
2532
{
2633
"version": "5.1.0",
2734
"sonar": "8.1",

0 commit comments

Comments
 (0)