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

Commit 951a0d9

Browse files
committed
Upgrade sonar-scala to 6.4.0.
1 parent 613cc0a commit 951a0d9

File tree

7 files changed

+47
-7
lines changed

7 files changed

+47
-7
lines changed

2.5.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.3 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.3-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.5.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: 4 additions & 2 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.4.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.5.0-full`](https://hub.docker.com/r/mwizner/sonarqube-scala-plugins).
1818

1919
To start the container issue the following command:
2020
```bash
@@ -23,7 +23,7 @@ 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.4.0-full
26+
mwizner/sonarqube-scala-plugins:2.5.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

@@ -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.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)
4142
[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)
4243
[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)
4344
[2.2.1](https://github.com/mwz/sonarqube-scala-docker/releases/tag/2.2.1) | 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.1.0](https://github.com/mwz/sonar-scala/releases/tag/v6.1.0) | [1.3.0](https://github.com/arthepsy/sonar-scala-extra/releases/tag/v1.3.0)
@@ -50,6 +51,7 @@ Version | SonarQube | sonar-scala | sonar-scala-extra
5051
[sbt-sonar](https://github.com/mwz/sbt-sonar) is an sbt plugin which provides a way to automate analysis of Scala projects with SonarQube.
5152

5253
## Changelog
54+
- **2.5.0** - Upgraded sonar-scala to 6.4.0.
5355
- **2.4.0** - Upgraded sonar-scala to 6.3.0.
5456
- **2.3.0** - Upgraded sonar-scala to 6.2.0.
5557
- **2.2.1** - Upgraded SonarQube to 6.7.3 LTS.

README_DOCKERHUB.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ 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)
79
- `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)
810
- `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)
911
- `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)
@@ -18,6 +20,8 @@ There are two types of images available: images with [sonar-scala](https://githu
1820
## What's included
1921
Version | SonarQube | sonar-scala | sonar-scala-extra
2022
--------|-----------|-------------|------------------
23+
2.5.0 | | 6.4.0 | 1.3.0
24+
2.5.0-full | 6.7.3 LTS | 6.4.0 | 1.3.0
2125
2.4.0 | | 6.3.0 | 1.3.0
2226
2.4.0-full | 6.7.3 LTS | 6.3.0 | 1.3.0
2327
2.3.0 | | 6.2.0 | 1.3.0
@@ -46,7 +50,7 @@ services:
4650
- plugins
4751
4852
plugins:
49-
image: mwizner/sonarqube-scala-plugins:2.4.0
53+
image: mwizner/sonarqube-scala-plugins:2.5.0
5054
volumes:
5155
- sonarqube_plugins:/opt/sonarqube/extensions/plugins
5256
command: /bin/true
@@ -68,7 +72,7 @@ docker run -d --name sonarqube-scala-plugins-full \
6872
-e SONARQUBE_JDBC_USERNAME=sonar \
6973
-e SONARQUBE_JDBC_PASSWORD=sonar \
7074
-e SONARQUBE_JDBC_URL=jdbc:postgresql://localhost/sonar \
71-
mwizner/sonarqube-scala-plugins:2.4.0-full
75+
mwizner/sonarqube-scala-plugins:2.5.0-full
7276
```
7377

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

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=6.4.0-SNAPSHOT
4+
export SONAR_SCALA_VERSION=6.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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ services:
3030
- postgresql_data:/var/lib/postgresql/data
3131

3232
plugins:
33-
image: mwizner/sonarqube-scala-plugins:2.4.0
33+
image: mwizner/sonarqube-scala-plugins:2.5.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.4.0
4+
export VERSION=2.5.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)