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

Commit e5097e8

Browse files
authored
Upgrade sonar-scala to 7.5.0. (#11)
1 parent 7d9d1a6 commit e5097e8

9 files changed

+60
-22
lines changed

3.6.0-full/Dockerfile

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# SonarQube 7.7 image with bundled sonar-scala 7.5.0 (https://github.com/mwz/sonar-scala).
2+
3+
FROM sonarqube:7.7-community
4+
5+
ENV SONAR_SCALA_VERSION 7.5.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"]

3.6.0/Dockerfile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Minideb image with bundled sonar-scala 7.5.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 7.5.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

README.md

+8-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# sonar-scala-docker
2-
[![GitHub version](https://img.shields.io/badge/release-v3.5.0-blue.svg)](https://github.com/mwz/sonarqube-scala-docker/releases)
2+
[![GitHub version](https://img.shields.io/badge/release-v3.6.0-blue.svg)](https://github.com/mwz/sonarqube-scala-docker/releases)
33
[![GitHub version lts](https://img.shields.io/badge/release_(LTS)-v2.11.0-blue.svg)](https://github.com/mwz/sonarqube-scala-docker/releases)
44
[![Docker Pulls](https://img.shields.io/docker/pulls/mwizner/sonarqube-scala-plugins.svg)](https://hub.docker.com/r/mwizner/sonarqube-scala-plugins)
55

6-
Docker images and docker-compose recipes for out-of-the-box [SonarQube 6.7 LTS](https://www.sonarqube.org/sonarqube-6-7-lts) and [SonarQube 7.6](https://www.sonarqube.org/sonarqube-7-6) instance with support for [Scala](http://www.scala-lang.org), [Scoverage](https://github.com/scoverage/scalac-scoverage-plugin) (code coverage metrics) and [Scalastyle](http://www.scalastyle.org) + [Scapegoat](https://github.com/sksamuel/scapegoat) (static code analysis). :sunglasses:
6+
Docker images and docker-compose recipes for out-of-the-box [SonarQube 6.7 LTS](https://www.sonarqube.org/sonarqube-6-7-lts) and [SonarQube 7.7](https://www.sonarqube.org/sonarqube-7-7) instance with support for [Scala](http://www.scala-lang.org), [Scoverage](https://github.com/scoverage/scalac-scoverage-plugin) (code coverage metrics) and [Scalastyle](http://www.scalastyle.org) + [Scapegoat](https://github.com/sksamuel/scapegoat) (static code analysis). :sunglasses:
77

88

99
## Usage
@@ -19,7 +19,7 @@ docker-compose -f docker-compose-lts.yml up -d
1919

2020
Once docker pulls all the required images and starts up the containers, the application should become available on [http://localhost](http://localhost). The default SonarQube login details for the Administrator account are `admin:admin`.
2121

22-
You can also use a standalone docker image which contains SonarQube server with bundled sonar-scala plugin, [`mwizner/sonarqube-scala-plugins:3.5.0-full`](https://hub.docker.com/r/mwizner/sonarqube-scala-plugins) and [`mwizner/sonarqube-scala-plugins:2.11.0-full`](https://hub.docker.com/r/mwizner/sonarqube-scala-plugins) for the LTS version.
22+
You can also use a standalone docker image which contains SonarQube server with bundled sonar-scala plugin, [`mwizner/sonarqube-scala-plugins:3.6.0-full`](https://hub.docker.com/r/mwizner/sonarqube-scala-plugins) and [`mwizner/sonarqube-scala-plugins:2.11.0-full`](https://hub.docker.com/r/mwizner/sonarqube-scala-plugins) for the LTS version.
2323

2424
To start the container issue the following command:
2525
```bash
@@ -29,19 +29,19 @@ docker run -d \
2929
-e SONARQUBE_JDBC_USERNAME=sonar \
3030
-e SONARQUBE_JDBC_PASSWORD=sonar \
3131
-e SONARQUBE_JDBC_URL=jdbc:postgresql://localhost/sonar \
32-
mwizner/sonarqube-scala-plugins:3.5.0-full
32+
mwizner/sonarqube-scala-plugins:3.6.0-full
3333
```
3434
Please note that if you don't specify the `SONARQUBE_JDBC_URL` variable, SonarQube will use an embedded H2 database, which is not recommended in production, but if you don't have access to an existing database or you just want to try the image, you can use the following command:
3535
```bash
3636
docker run -d \
3737
--name sonarqube-scala-plugins-full \
3838
-p 80:9000 \
39-
mwizner/sonarqube-scala-plugins:3.5.0-full
39+
mwizner/sonarqube-scala-plugins:3.6.0-full
4040
```
4141

4242

4343
## Dependencies
44-
* [SonarQube 6.7 LTS](https://hub.docker.com/_/sonarqube) / [SonarQube 7.4](https://hub.docker.com/_/sonarqube)
44+
* [SonarQube 6.7 LTS](https://hub.docker.com/_/sonarqube) / [SonarQube 7.7](https://hub.docker.com/_/sonarqube)
4545
* [PostgreSQL 10](https://hub.docker.com/_/postgres)
4646
* [mwz/sonar-scala](https://github.com/mwz/sonar-scala) - provides support for scalastyle, scoverage and scapegoat
4747
* versions before `2.7.0` used [arthepsy/sonar-scala-extra](https://github.com/arthepsy/sonar-scala-extra) for scapegoat support
@@ -50,6 +50,7 @@ docker run -d \
5050
## Compatibility Matrix
5151
Version | SonarQube | sonar-scala | sonar-scala-extra
5252
--------|-----------|-------------|------------------
53+
[3.6.0](https://github.com/mwz/sonarqube-scala-docker/releases/tag/3.6.0) | 7.7 ([documentation](https://docs.sonarqube.org/7.7))([changelog](https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14848)) | [7.5.0](https://github.com/mwz/sonar-scala/releases/tag/v7.5.0)
5354
[3.5.0](https://github.com/mwz/sonarqube-scala-docker/releases/tag/3.5.0) | 7.6 ([documentation](https://docs.sonarqube.org/7.6))([changelog](https://jira.sonarsource.com/secure/ReleaseNote.jspa?version=14753&projectId=10930)) | [7.4.0](https://github.com/mwz/sonar-scala/releases/tag/v7.4.0)
5455
[3.4.0](https://github.com/mwz/sonarqube-scala-docker/releases/tag/3.4.0) | 7.4 ([documentation](https://docs.sonarqube.org/7.4))([changelog](https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14549)) | [7.3.1](https://github.com/mwz/sonar-scala/releases/tag/v7.3.1)
5556
[3.3.0](https://github.com/mwz/sonarqube-scala-docker/releases/tag/3.3.0) | 7.4 ([documentation](https://docs.sonarqube.org/7.4))([changelog](https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14549)) | [7.3.0](https://github.com/mwz/sonar-scala/releases/tag/v7.3.0)
@@ -78,6 +79,7 @@ Please note, that starting from version `2.7.0`, the images no longer contain th
7879

7980

8081
## Changelog
82+
- **3.6.0** - Upgraded sonar-scala to 7.5.0 & SonarQube to 7.7.
8183
- **3.5.0** - Upgraded sonar-scala to 7.4.0 & SonarQube to 7.6.
8284
- **3.4.0** - Upgraded sonar-scala to 7.3.1.
8385
- **3.3.0** - Upgraded sonar-scala to 7.3.0.

README.tpl.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![GitHub version lts](https://img.shields.io/badge/release_(LTS)-v{{lts.version}}-blue.svg)](https://github.com/mwz/sonarqube-scala-docker/releases)
44
[![Docker Pulls](https://img.shields.io/docker/pulls/mwizner/sonarqube-scala-plugins.svg)](https://hub.docker.com/r/mwizner/sonarqube-scala-plugins)
55

6-
Docker images and docker-compose recipes for out-of-the-box [SonarQube 6.7 LTS](https://www.sonarqube.org/sonarqube-6-7-lts) and [SonarQube 7.6](https://www.sonarqube.org/sonarqube-7-6) instance with support for [Scala](http://www.scala-lang.org), [Scoverage](https://github.com/scoverage/scalac-scoverage-plugin) (code coverage metrics) and [Scalastyle](http://www.scalastyle.org) + [Scapegoat](https://github.com/sksamuel/scapegoat) (static code analysis). :sunglasses:
6+
Docker images and docker-compose recipes for out-of-the-box [SonarQube 6.7 LTS](https://www.sonarqube.org/sonarqube-6-7-lts) and [SonarQube 7.7](https://www.sonarqube.org/sonarqube-7-7) instance with support for [Scala](http://www.scala-lang.org), [Scoverage](https://github.com/scoverage/scalac-scoverage-plugin) (code coverage metrics) and [Scalastyle](http://www.scalastyle.org) + [Scapegoat](https://github.com/sksamuel/scapegoat) (static code analysis). :sunglasses:
77

88

99
## Usage
@@ -41,7 +41,7 @@ docker run -d \
4141

4242

4343
## Dependencies
44-
* [SonarQube 6.7 LTS](https://hub.docker.com/_/sonarqube) / [SonarQube 7.4](https://hub.docker.com/_/sonarqube)
44+
* [SonarQube 6.7 LTS](https://hub.docker.com/_/sonarqube) / [SonarQube 7.7](https://hub.docker.com/_/sonarqube)
4545
* [PostgreSQL 10](https://hub.docker.com/_/postgres)
4646
* [mwz/sonar-scala](https://github.com/mwz/sonar-scala) - provides support for scalastyle, scoverage and scapegoat
4747
* versions before `2.7.0` used [arthepsy/sonar-scala-extra](https://github.com/arthepsy/sonar-scala-extra) for scapegoat support
@@ -67,6 +67,7 @@ Please note, that starting from version `2.7.0`, the images no longer contain th
6767

6868

6969
## Changelog
70+
- **3.6.0** - Upgraded sonar-scala to 7.5.0 & SonarQube to 7.7.
7071
- **3.5.0** - Upgraded sonar-scala to 7.4.0 & SonarQube to 7.6.
7172
- **3.4.0** - Upgraded sonar-scala to 7.3.1.
7273
- **3.3.0** - Upgraded sonar-scala to 7.3.0.

README_DOCKERHUB.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Docker images with out-of-the-box [SonarQube 6.7 LTS](https://www.sonarqube.org/sonarqube-6-7-lts) and [SonarQube 7.6](https://www.sonarqube.org/sonarqube-7-6) instance with support for [Scala](http://www.scala-lang.org), [Scoverage](https://github.com/scoverage/scalac-scoverage-plugin) (code coverage metrics) and [Scalastyle](http://www.scalastyle.org) + [Scapegoat](https://github.com/sksamuel/scapegoat) (static code analysis).
1+
Docker images with out-of-the-box [SonarQube 6.7 LTS](https://www.sonarqube.org/sonarqube-6-7-lts) and [SonarQube 7.7](https://www.sonarqube.org/sonarqube-7-7) instance with support for [Scala](http://www.scala-lang.org), [Scoverage](https://github.com/scoverage/scalac-scoverage-plugin) (code coverage metrics) and [Scalastyle](http://www.scalastyle.org) + [Scapegoat](https://github.com/sksamuel/scapegoat) (static code analysis).
22

33

44
## Available versions
@@ -7,9 +7,10 @@ There are two types of images available: images with [sonar-scala](https://githu
77
Starting from version `2.7.0`, the images no longer contain the [sonar-scala-extra](https://github.com/arthepsy/sonar-scala-extra) plugin as sonar-scala provides Scapegoat support from version `6.5.0` onwards.
88

99
#### Current
10-
- `3.5.0` (latest) [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/3.5.0/Dockerfile), `3.5.0-full` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/3.5.0-full/Dockerfile), [Release 3.5.0](https://github.com/mwz/sonar-scala-docker/releases/tag/3.5.0)
10+
- `3.6.0` (latest) [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/3.6.0/Dockerfile), `3.6.0-full` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/3.6.0-full/Dockerfile), [Release 3.6.0](https://github.com/mwz/sonar-scala-docker/releases/tag/3.6.0)
1111
- `2.11.0` (LTS) [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/2.11.0/Dockerfile), `2.11.0-full` (LTS) [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/2.11.0-full/Dockerfile), [Release 2.11.0](https://github.com/mwz/sonar-scala-docker/releases/tag/2.11.0)
1212
#### Older
13+
- `3.5.0` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/3.5.0/Dockerfile), `3.5.0-full` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/3.5.0-full/Dockerfile), [Release 3.5.0](https://github.com/mwz/sonar-scala-docker/releases/tag/3.5.0)
1314
- `3.4.0` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/3.4.0/Dockerfile), `3.4.0-full` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/3.4.0-full/Dockerfile), [Release 3.4.0](https://github.com/mwz/sonar-scala-docker/releases/tag/3.4.0)
1415
- `3.3.0` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/3.3.0/Dockerfile), `3.3.0-full` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/3.3.0-full/Dockerfile), [Release 3.3.0](https://github.com/mwz/sonar-scala-docker/releases/tag/3.3.0)
1516
- `3.2.1` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/3.2.1/Dockerfile), `3.2.1-full` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/3.2.1-full/Dockerfile), [Release 3.2.1](https://github.com/mwz/sonar-scala-docker/releases/tag/3.2.1)
@@ -32,6 +33,8 @@ Starting from version `2.7.0`, the images no longer contain the [sonar-scala-ext
3233
## What's included
3334
Version | SonarQube | sonar-scala | sonar-scala-extra
3435
--------|-----------|-------------|------------------
36+
3.6.0 || 7.5.0
37+
3.6.0-full | 7.7 | 7.5.0
3538
3.5.0 || 7.4.0
3639
3.5.0-full | 7.6 | 7.4.0
3740
3.4.0 || 7.3.1
@@ -88,7 +91,7 @@ services:
8891
- plugins
8992
9093
plugins:
91-
image: mwizner/sonarqube-scala-plugins:3.5.0
94+
image: mwizner/sonarqube-scala-plugins:3.6.0
9295
volumes:
9396
- sonarqube_plugins:/opt/sonarqube/extensions/plugins
9497
command: /bin/true
@@ -111,15 +114,15 @@ docker run -d \
111114
-e SONARQUBE_JDBC_USERNAME=sonar \
112115
-e SONARQUBE_JDBC_PASSWORD=sonar \
113116
-e SONARQUBE_JDBC_URL=jdbc:postgresql://localhost/sonar \
114-
mwizner/sonarqube-scala-plugins:3.5.0-full
117+
mwizner/sonarqube-scala-plugins:3.6.0-full
115118
```
116119

117120
Please note that if you don't specify the `SONARQUBE_JDBC_URL` variable, SonarQube will use an embedded H2 database, which is not recommended in production, but if you don't have access to an existing database or you just want to try the image, you can use the following command:
118121
```bash
119122
docker run -d \
120123
--name sonarqube-scala-plugins-full \
121124
-p 80:9000 \
122-
mwizner/sonarqube-scala-plugins:3.5.0-full
125+
mwizner/sonarqube-scala-plugins:3.6.0-full
123126
```
124127

125128

README_DOCKERHUB.tpl.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Docker images with out-of-the-box [SonarQube 6.7 LTS](https://www.sonarqube.org/sonarqube-6-7-lts) and [SonarQube 7.6](https://www.sonarqube.org/sonarqube-7-6) instance with support for [Scala](http://www.scala-lang.org), [Scoverage](https://github.com/scoverage/scalac-scoverage-plugin) (code coverage metrics) and [Scalastyle](http://www.scalastyle.org) + [Scapegoat](https://github.com/sksamuel/scapegoat) (static code analysis).
1+
Docker images with out-of-the-box [SonarQube 6.7 LTS](https://www.sonarqube.org/sonarqube-6-7-lts) and [SonarQube 7.7](https://www.sonarqube.org/sonarqube-7-7) instance with support for [Scala](http://www.scala-lang.org), [Scoverage](https://github.com/scoverage/scalac-scoverage-plugin) (code coverage metrics) and [Scalastyle](http://www.scalastyle.org) + [Scapegoat](https://github.com/sksamuel/scapegoat) (static code analysis).
22

33

44
## Available versions

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=7.5.0-SNAPSHOT
4+
export SONAR_SCALA_VERSION=7.6.0-SNAPSHOT
55
cp ~/.ivy2/local/com.github.mwz/sonar-scala_2.12/${SONAR_SCALA_VERSION}/jars/sonar-scala_2.12-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:7.6-community
5+
image: sonarqube:7.7-community
66
ports:
77
- "80:9000"
88
networks:
@@ -31,7 +31,7 @@ services:
3131
- postgresql:/var/lib/postgresql
3232
- postgresql_data:/var/lib/postgresql/data
3333
plugins:
34-
image: mwizner/sonarqube-scala-plugins:3.5.0
34+
image: mwizner/sonarqube-scala-plugins:3.6.0
3535
volumes:
3636
- sonarqube_plugins:/opt/sonarqube/extensions/plugins
3737
command: /bin/true

vars.js

+12-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"current": {
3-
"version": "3.5.0",
4-
"sonar": "7.6",
5-
"sonarDocs": "https://docs.sonarqube.org/7.6",
6-
"sonarChangelog": "https://jira.sonarsource.com/secure/ReleaseNote.jspa?version=14753&projectId=10930",
7-
"sonarScala": "7.4.0"
3+
"version": "3.6.0",
4+
"sonar": "7.7",
5+
"sonarDocs": "https://docs.sonarqube.org/7.7",
6+
"sonarChangelog": "https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14848",
7+
"sonarScala": "7.5.0"
88
},
99
"lts": {
1010
"version": "2.11.0",
@@ -15,6 +15,13 @@
1515
},
1616
"versions": {
1717
"current": [
18+
{
19+
"version": "3.5.0",
20+
"sonar": "7.6",
21+
"sonarDocs": "https://docs.sonarqube.org/7.6",
22+
"sonarChangelog": "https://jira.sonarsource.com/secure/ReleaseNote.jspa?version=14753&projectId=10930",
23+
"sonarScala": "7.4.0"
24+
},
1825
{
1926
"version": "3.4.0",
2027
"sonar": "7.4",

0 commit comments

Comments
 (0)