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

Commit 7d9d1a6

Browse files
authored
Upgrade sonar-scala to 7.4.0. (#10)
1 parent b7d321a commit 7d9d1a6

9 files changed

+59
-21
lines changed

3.5.0-full/Dockerfile

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

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

+7-5
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.4.0-blue.svg)](https://github.com/mwz/sonarqube-scala-docker/releases)
2+
[![GitHub version](https://img.shields.io/badge/release-v3.5.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.4](https://www.sonarqube.org/sonarqube-7-4) 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.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:
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.4.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.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.
2323

2424
To start the container issue the following command:
2525
```bash
@@ -29,14 +29,14 @@ 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.4.0-full
32+
mwizner/sonarqube-scala-plugins:3.5.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.4.0-full
39+
mwizner/sonarqube-scala-plugins:3.5.0-full
4040
```
4141

4242

@@ -50,6 +50,7 @@ docker run -d \
5050
## Compatibility Matrix
5151
Version | SonarQube | sonar-scala | sonar-scala-extra
5252
--------|-----------|-------------|------------------
53+
[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)
5354
[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)
5455
[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)
5556
[3.2.1](https://github.com/mwz/sonarqube-scala-docker/releases/tag/3.2.1) | 7.4 ([documentation](https://docs.sonarqube.org/7.4))([changelog](https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14549)) | [7.2.0](https://github.com/mwz/sonar-scala/releases/tag/v7.2.0)
@@ -77,6 +78,7 @@ Please note, that starting from version `2.7.0`, the images no longer contain th
7778

7879

7980
## Changelog
81+
- **3.5.0** - Upgraded sonar-scala to 7.4.0 & SonarQube to 7.6.
8082
- **3.4.0** - Upgraded sonar-scala to 7.3.1.
8183
- **3.3.0** - Upgraded sonar-scala to 7.3.0.
8284
- **3.2.1** - Fixed file system permissions.

README.tpl.md

+2-1
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.4](https://www.sonarqube.org/sonarqube-7-4) 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.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:
77

88

99
## Usage
@@ -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.5.0** - Upgraded sonar-scala to 7.4.0 & SonarQube to 7.6.
7071
- **3.4.0** - Upgraded sonar-scala to 7.3.1.
7172
- **3.3.0** - Upgraded sonar-scala to 7.3.0.
7273
- **3.2.1** - Fixed file system permissions.

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.4](https://www.sonarqube.org/sonarqube-7-4) 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.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).
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.4.0` (latest) [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)
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)
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.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)
1314
- `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)
1415
- `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)
1516
- `3.2.0` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/3.2.0/Dockerfile), `3.2.0-full` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/3.2.0-full/Dockerfile), [Release 3.2.0](https://github.com/mwz/sonar-scala-docker/releases/tag/3.2.0)
@@ -31,6 +32,8 @@ Starting from version `2.7.0`, the images no longer contain the [sonar-scala-ext
3132
## What's included
3233
Version | SonarQube | sonar-scala | sonar-scala-extra
3334
--------|-----------|-------------|------------------
35+
3.5.0 || 7.4.0
36+
3.5.0-full | 7.6 | 7.4.0
3437
3.4.0 || 7.3.1
3538
3.4.0-full | 7.4 | 7.3.1
3639
3.3.0 || 7.3.0
@@ -85,7 +88,7 @@ services:
8588
- plugins
8689
8790
plugins:
88-
image: mwizner/sonarqube-scala-plugins:3.4.0
91+
image: mwizner/sonarqube-scala-plugins:3.5.0
8992
volumes:
9093
- sonarqube_plugins:/opt/sonarqube/extensions/plugins
9194
command: /bin/true
@@ -108,15 +111,15 @@ docker run -d \
108111
-e SONARQUBE_JDBC_USERNAME=sonar \
109112
-e SONARQUBE_JDBC_PASSWORD=sonar \
110113
-e SONARQUBE_JDBC_URL=jdbc:postgresql://localhost/sonar \
111-
mwizner/sonarqube-scala-plugins:3.4.0-full
114+
mwizner/sonarqube-scala-plugins:3.5.0-full
112115
```
113116

114117
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:
115118
```bash
116119
docker run -d \
117120
--name sonarqube-scala-plugins-full \
118121
-p 80:9000 \
119-
mwizner/sonarqube-scala-plugins:3.4.0-full
122+
mwizner/sonarqube-scala-plugins:3.5.0-full
120123
```
121124

122125

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.4](https://www.sonarqube.org/sonarqube-7-4) 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.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).
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.4.0-SNAPSHOT
4+
export SONAR_SCALA_VERSION=7.5.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

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

33
services:
44
sonarqube:
5-
image: sonarqube:7.4-community
5+
image: sonarqube:7.6-community
66
ports:
77
- "80:9000"
88
networks:
@@ -21,7 +21,7 @@ services:
2121
depends_on:
2222
- db
2323
db:
24-
image: postgres:10.6-alpine
24+
image: postgres:10.7-alpine
2525
networks:
2626
- sonarnet
2727
environment:
@@ -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.4.0
34+
image: mwizner/sonarqube-scala-plugins:3.5.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.4.0",
4-
"sonar": "7.4",
5-
"sonarDocs": "https://docs.sonarqube.org/7.4",
6-
"sonarChangelog": "https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14549",
7-
"sonarScala": "7.3.1"
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"
88
},
99
"lts": {
1010
"version": "2.11.0",
@@ -15,6 +15,13 @@
1515
},
1616
"versions": {
1717
"current": [
18+
{
19+
"version": "3.4.0",
20+
"sonar": "7.4",
21+
"sonarDocs": "https://docs.sonarqube.org/7.4",
22+
"sonarChangelog": "https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14549",
23+
"sonarScala": "7.3.1"
24+
},
1825
{
1926
"version": "3.3.0",
2027
"sonar": "7.4",

0 commit comments

Comments
 (0)