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

Commit 71584ff

Browse files
BalmungSanmwz
authored andcommitted
Upgrade SonarQube to 6.7.4 & PostgreSQL to 10.4 (#5)
1 parent 951a0d9 commit 71584ff

File tree

6 files changed

+55
-16
lines changed

6 files changed

+55
-16
lines changed

2.6.0-full/Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# SonarQube 6.7.4 LTS image with bundled Scala plugins
2+
# sonar-scala 6.4.0 (https://github.com/mwz/sonar-scala)
3+
# and sonar-scala-extra 1.3.0 (https://github.com/arthepsy/sonar-scala-extra).
4+
5+
FROM sonarqube:6.7.4-alpine
6+
7+
ENV SONAR_SCAPEGOAT_VERSION 1.3.0
8+
ENV SONAR_SCALA_VERSION 6.4.0
9+
10+
WORKDIR /opt/sonarqube/extensions/plugins
11+
RUN wget -O "sonar-scapegoat-plugin-${SONAR_SCAPEGOAT_VERSION}.jar" \
12+
"https://github.com/arthepsy/sonar-scala-extra/releases/download/v${SONAR_SCAPEGOAT_VERSION}/sonar-scapegoat-plugin-${SONAR_SCAPEGOAT_VERSION}.jar"
13+
RUN wget -O "sonar-scala-plugin-${SONAR_SCALA_VERSION}.jar" \
14+
"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"
15+
16+
WORKDIR $SONARQUBE_HOME
17+
ENTRYPOINT ["./bin/run.sh"]

2.6.0/Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Alpine image with bundled Scala plugins
2+
# sonar-scala 6.4.0 (https://github.com/mwz/sonar-scala)
3+
# and sonar-scala-extra 1.3.0 (https://github.com/arthepsy/sonar-scala-extra),
4+
# which can be mounted as a volume into a SonarQube container.
5+
6+
FROM alpine:3.7
7+
8+
ENV SONAR_SCAPEGOAT_VERSION 1.3.0
9+
ENV SONAR_SCALA_VERSION 6.4.0
10+
11+
RUN apk --no-cache add --repository http://dl-cdn.alpinelinux.org/alpine/v3.7/community wget ca-certificates
12+
13+
WORKDIR /opt/sonarqube/extensions/plugins
14+
RUN wget -O "sonar-scapegoat-plugin-${SONAR_SCAPEGOAT_VERSION}.jar" \
15+
"https://github.com/arthepsy/sonar-scala-extra/releases/download/v${SONAR_SCAPEGOAT_VERSION}/sonar-scapegoat-plugin-${SONAR_SCAPEGOAT_VERSION}.jar"
16+
RUN wget -O "sonar-scala-plugin-${SONAR_SCALA_VERSION}.jar" \
17+
"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"

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ docker-compose up -d
1414

1515
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`.
1616

17-
You can also use a standalone docker image which contains SonarQube LTS with bundled Scala plugins [`mwizner/sonarqube-scala-plugins:2.5.0-full`](https://hub.docker.com/r/mwizner/sonarqube-scala-plugins).
17+
You can also use a standalone docker image which contains SonarQube LTS with bundled Scala plugins [`mwizner/sonarqube-scala-plugins:2.6.0-full`](https://hub.docker.com/r/mwizner/sonarqube-scala-plugins).
1818

1919
To start the container issue the following command:
2020
```bash
@@ -23,13 +23,13 @@ docker run -d --name sonarqube-scala-plugins-full \
2323
-e SONARQUBE_JDBC_USERNAME=sonar \
2424
-e SONARQUBE_JDBC_PASSWORD=sonar \
2525
-e SONARQUBE_JDBC_URL=jdbc:postgresql://localhost/sonar \
26-
mwizner/sonarqube-scala-plugins:2.5.0-full
26+
mwizner/sonarqube-scala-plugins:2.6.0-full
2727
```
2828
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.
2929

3030
## Dependencies
3131
* [SonarQube 6.7 LTS](https://hub.docker.com/_/sonarqube)
32-
* [PostgreSQL 10.2](https://hub.docker.com/_/postgres)
32+
* [PostgreSQL 10](https://hub.docker.com/_/postgres)
3333
* External SonarQube plugins:
3434
* [mwz/sonar-scala](https://github.com/mwz/sonar-scala) - provides support for scalastyle and scoverage.
3535
* [arthepsy/sonar-scala-extra](https://github.com/arthepsy/sonar-scala-extra) - adds scapegoat inspections.
@@ -38,6 +38,7 @@ Please note that if you don't specify the `SONARQUBE_JDBC_URL` variable, SonarQu
3838
## Compatibility Matrix
3939
Version | SonarQube | sonar-scala | sonar-scala-extra
4040
--------|-----------|-------------|------------------
41+
[2.6.0](https://github.com/mwz/sonarqube-scala-docker/releases/tag/2.6.0) | 6.7.4 LTS ([documentation](https://docs.sonarqube.org/display/SONARQUBE67/Documentation)) ([changelog](https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14377)) | [6.4.0](https://github.com/mwz/sonar-scala/releases/tag/v6.4.0) | [1.3.0](https://github.com/arthepsy/sonar-scala-extra/releases/tag/v1.3.0)
4142
[2.5.0](https://github.com/mwz/sonarqube-scala-docker/releases/tag/2.5.0) | 6.7.3 LTS ([documentation](https://docs.sonarqube.org/display/SONARQUBE67/Documentation)) ([changelog](https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14264)) | [6.4.0](https://github.com/mwz/sonar-scala/releases/tag/v6.4.0) | [1.3.0](https://github.com/arthepsy/sonar-scala-extra/releases/tag/v1.3.0)
4243
[2.4.0](https://github.com/mwz/sonarqube-scala-docker/releases/tag/2.4.0) | 6.7.3 LTS ([documentation](https://docs.sonarqube.org/display/SONARQUBE67/Documentation)) ([changelog](https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14264)) | [6.3.0](https://github.com/mwz/sonar-scala/releases/tag/v6.3.0) | [1.3.0](https://github.com/arthepsy/sonar-scala-extra/releases/tag/v1.3.0)
4344
[2.3.0](https://github.com/mwz/sonarqube-scala-docker/releases/tag/2.3.0) | 6.7.3 LTS ([documentation](https://docs.sonarqube.org/display/SONARQUBE67/Documentation)) ([changelog](https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14264)) | [6.2.0](https://github.com/mwz/sonar-scala/releases/tag/v6.2.0) | [1.3.0](https://github.com/arthepsy/sonar-scala-extra/releases/tag/v1.3.0)
@@ -51,6 +52,7 @@ Version | SonarQube | sonar-scala | sonar-scala-extra
5152
[sbt-sonar](https://github.com/mwz/sbt-sonar) is an sbt plugin which provides a way to automate analysis of Scala projects with SonarQube.
5253

5354
## Changelog
55+
- **2.6.0** - Upgraded SonarQube to 6.7.4.
5456
- **2.5.0** - Upgraded sonar-scala to 6.4.0.
5557
- **2.4.0** - Upgraded sonar-scala to 6.3.0.
5658
- **2.3.0** - Upgraded sonar-scala to 6.2.0.

README_DOCKERHUB.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ Docker images with out-of-the-box [SonarQube LTS](https://www.sonarqube.org) ins
44

55
There are two types of images available: images with [sonar-scala](https://github.com/mwz/sonar-scala) and [sonar-scala-extra](https://github.com/arthepsy/sonar-scala-extra) plugins, which can be mounted as a volume into a SonarQube container and images which bundle those plugins with SonarQube (suffixed with `-full`).
66

7-
- `2.5.0`, `latest` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/2.5.0/Dockerfile), [(v2.5.0)](https://github.com/mwz/sonar-scala-docker/releases/tag/2.5.0)
8-
- `2.5.0-full` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/2.5.0-full/Dockerfile), [(v2.4.0)](https://github.com/mwz/sonar-scala-docker/releases/tag/2.4.0)
9-
- `2.4.0`, `latest` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/2.4.0/Dockerfile), [(v2.4.0)](https://github.com/mwz/sonar-scala-docker/releases/tag/2.4.0)
7+
- `2.6.0`, `latest` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/2.6.0/Dockerfile), [(v2.6.0)](https://github.com/mwz/sonar-scala-docker/releases/tag/2.6.0)
8+
- `2.6.0-full` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/2.6.0-full/Dockerfile), [(v2.6.0)](https://github.com/mwz/sonar-scala-docker/releases/tag/2.6.0)
9+
- `2.5.0` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/2.5.0/Dockerfile), [(v2.5.0)](https://github.com/mwz/sonar-scala-docker/releases/tag/2.5.0)
10+
- `2.5.0-full` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/2.5.0-full/Dockerfile), [(v2.4.0)](https://github.com/mwz/sonar-scala-docker/releases/tag/2.5.0)
11+
- `2.4.0` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/2.4.0/Dockerfile), [(v2.4.0)](https://github.com/mwz/sonar-scala-docker/releases/tag/2.4.0)
1012
- `2.4.0-full` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/2.4.0-full/Dockerfile), [(v2.4.0)](https://github.com/mwz/sonar-scala-docker/releases/tag/2.4.0)
11-
- `2.3.0`, `latest` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/2.3.0/Dockerfile), [(v2.3.0)](https://github.com/mwz/sonar-scala-docker/releases/tag/2.3.0)
13+
- `2.3.0` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/2.3.0/Dockerfile), [(v2.3.0)](https://github.com/mwz/sonar-scala-docker/releases/tag/2.3.0)
1214
- `2.3.0-full` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/2.3.0-full/Dockerfile), [(v2.3.0)](https://github.com/mwz/sonar-scala-docker/releases/tag/2.3.0)
13-
- `2.2.1`, [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/2.2.1/Dockerfile), [(v2.2.1)](https://github.com/mwz/sonar-scala-docker/releases/tag/2.2.1)
15+
- `2.2.1` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/2.2.1/Dockerfile), [(v2.2.1)](https://github.com/mwz/sonar-scala-docker/releases/tag/2.2.1)
1416
- `2.2.1-full` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/2.2.1-full/Dockerfile), [(v2.2.1)](https://github.com/mwz/sonar-scala-docker/releases/tag/2.2.1)
1517
- `2.2.0` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/2.2.0/Dockerfile), [(v2.2.0)](https://github.com/mwz/sonar-scala-docker/releases/tag/2.2.0)
1618
- `2.2.0-full` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/2.2.0-full/Dockerfile), [(v2.2.0)](https://github.com/mwz/sonar-scala-docker/releases/tag/2.2.0)
@@ -20,6 +22,8 @@ There are two types of images available: images with [sonar-scala](https://githu
2022
## What's included
2123
Version | SonarQube | sonar-scala | sonar-scala-extra
2224
--------|-----------|-------------|------------------
25+
2.6.0 | | 6.4.0 | 1.3.0
26+
2.6.0-full | 6.7.4 LTS | 6.4.0 | 1.3.0
2327
2.5.0 | | 6.4.0 | 1.3.0
2428
2.5.0-full | 6.7.3 LTS | 6.4.0 | 1.3.0
2529
2.4.0 | | 6.3.0 | 1.3.0
@@ -33,15 +37,14 @@ Version | SonarQube | sonar-scala | sonar-scala-extra
3337
2.1.0 | | 6.0.0 | 1.3.0
3438
2.1.0-full | 6.7.1 LTS | 6.0.0 | 1.3.0
3539

36-
3740
## Usage
3841
To use one of the volume images, mount it as a volume to your existing SonarQube container using e.g. `docker-compose`:
3942
```
4043
version: "2"
4144
4245
services:
4346
sonarqube:
44-
image: sonarqube:6.7.3-alpine # lts
47+
image: sonarqube:6.7.4-alpine # lts
4548
ports:
4649
- "80:9000"
4750
networks:
@@ -50,7 +53,7 @@ services:
5053
- plugins
5154
5255
plugins:
53-
image: mwizner/sonarqube-scala-plugins:2.5.0
56+
image: mwizner/sonarqube-scala-plugins:2.6.0
5457
volumes:
5558
- sonarqube_plugins:/opt/sonarqube/extensions/plugins
5659
command: /bin/true
@@ -72,7 +75,7 @@ docker run -d --name sonarqube-scala-plugins-full \
7275
-e SONARQUBE_JDBC_USERNAME=sonar \
7376
-e SONARQUBE_JDBC_PASSWORD=sonar \
7477
-e SONARQUBE_JDBC_URL=jdbc:postgresql://localhost/sonar \
75-
mwizner/sonarqube-scala-plugins:2.5.0-full
78+
mwizner/sonarqube-scala-plugins:2.6.0-full
7679
```
7780

7881
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.

docker-compose.yml

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

33
services:
44
sonarqube:
5-
image: sonarqube:6.7.3-alpine # lts
5+
image: sonarqube:6.7.4-alpine # lts
66
ports:
77
- "80:9000"
88
networks:
@@ -19,7 +19,7 @@ services:
1919
- plugins
2020

2121
db:
22-
image: postgres:10.2-alpine
22+
image: postgres:10.4-alpine
2323
networks:
2424
- sonarnet
2525
environment:
@@ -30,7 +30,7 @@ services:
3030
- postgresql_data:/var/lib/postgresql/data
3131

3232
plugins:
33-
image: mwizner/sonarqube-scala-plugins:2.5.0
33+
image: mwizner/sonarqube-scala-plugins:2.6.0
3434
volumes:
3535
- sonarqube_plugins:/opt/sonarqube/extensions/plugins
3636
command: /bin/true

release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
set -eu
33

4-
export VERSION=2.5.0
4+
export VERSION=2.6.0
55

66
# Build
77
docker build -t mwizner/sonarqube-scala-plugins:$VERSION -t mwizner/sonarqube-scala-plugins:latest $VERSION

0 commit comments

Comments
 (0)