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

Commit 936119d

Browse files
authored
Upgrade SonarQube to 6.7.7 LTS. (#13)
1 parent e5097e8 commit 936119d

File tree

8 files changed

+50
-12
lines changed

8 files changed

+50
-12
lines changed

2.12.0-full/Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# SonarQube 6.7.7 LTS image with bundled sonar-scala 6.8.0 (https://github.com/mwz/sonar-scala).
2+
3+
FROM sonarqube:6.7.7-community
4+
5+
ENV SONAR_SCALA_VERSION 6.8.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"]

2.12.0/Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Minideb image with bundled sonar-scala 6.8.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 6.8.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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# sonar-scala-docker
22
[![GitHub version](https://img.shields.io/badge/release-v3.6.0-blue.svg)](https://github.com/mwz/sonarqube-scala-docker/releases)
3-
[![GitHub version lts](https://img.shields.io/badge/release_(LTS)-v2.11.0-blue.svg)](https://github.com/mwz/sonarqube-scala-docker/releases)
3+
[![GitHub version lts](https://img.shields.io/badge/release_(LTS)-v2.12.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

66
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:
@@ -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.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.
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.12.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
@@ -58,7 +58,8 @@ Version | SonarQube | sonar-scala | sonar-scala-extra
5858
[3.2.0](https://github.com/mwz/sonarqube-scala-docker/releases/tag/3.2.0) | 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)
5959
[3.1.0](https://github.com/mwz/sonarqube-scala-docker/releases/tag/3.1.0) | 7.4 ([documentation](https://docs.sonarqube.org/7.4))([changelog](https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14549)) | [7.1.0](https://github.com/mwz/sonar-scala/releases/tag/v7.1.0)
6060
[3.0.0](https://github.com/mwz/sonarqube-scala-docker/releases/tag/3.0.0) | 7.3 ([documentation](https://docs.sonarqube.org/display/SONARQUBE73/Documentation))([changelog](https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14464)) | [7.0.0](https://github.com/mwz/sonar-scala/releases/tag/v7.0.0)
61-
[2.11.0](https://github.com/mwz/sonarqube-scala-docker/releases/tag/2.11.0) | 6.7.6 LTS ([documentation](https://docs.sonarqube.org/display/SONARQUBE67/Documentation))([changelog](https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=13972)) | [6.8.0](https://github.com/mwz/sonar-scala/releases/tag/v6.8.0)
61+
[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)
62+
[2.11.0](https://github.com/mwz/sonarqube-scala-docker/releases/tag/2.11.0) | 6.7.6 LTS ([documentation](https://docs.sonarqube.org/display/SONARQUBE67/Documentation))([changelog](https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=13972)) | [6.8.0](https://github.com/mwz/sonar-scala/releases/tag/v6.8.0) |
6263
[2.10.0](https://github.com/mwz/sonarqube-scala-docker/releases/tag/2.10.0) | 6.7.6 LTS ([documentation](https://docs.sonarqube.org/display/SONARQUBE67/Documentation))([changelog](https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=13972)) | [6.7.0](https://github.com/mwz/sonar-scala/releases/tag/v6.7.0) |
6364
[2.9.0](https://github.com/mwz/sonarqube-scala-docker/releases/tag/2.9.0) | 6.7.5 LTS ([documentation](https://docs.sonarqube.org/display/SONARQUBE67/Documentation))([changelog](https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14467)) | [6.6.0](https://github.com/mwz/sonar-scala/releases/tag/v6.6.0) |
6465
[2.8.0](https://github.com/mwz/sonarqube-scala-docker/releases/tag/2.8.0) | 6.7.5 LTS ([documentation](https://docs.sonarqube.org/display/SONARQUBE67/Documentation))([changelog](https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14467)) | [6.5.1](https://github.com/mwz/sonar-scala/releases/tag/v6.5.1) |
@@ -87,6 +88,7 @@ Please note, that starting from version `2.7.0`, the images no longer contain th
8788
- **3.2.0** - Upgraded sonar-scala to 7.2.0.
8889
- **3.1.0** - Upgraded sonar-scala to 7.1.0 & SonarQube to 7.4.
8990
- **3.0.0** - Upgraded sonar-scala to 7.0.0 & SonarQube to 7.3.
91+
- **2.12.0** - Upgraded SonarQube to 6.7.7 LTS.
9092
- **2.11.0** - Upgraded sonar-scala to 6.8.0.
9193
- **2.10.0** - Upgraded sonar-scala to 6.7.0 & SonarQube to 6.7.6.
9294
- **2.9.0** - Upgraded sonar-scala to 6.6.0.

README.tpl.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ Please note, that starting from version `2.7.0`, the images no longer contain th
7575
- **3.2.0** - Upgraded sonar-scala to 7.2.0.
7676
- **3.1.0** - Upgraded sonar-scala to 7.1.0 & SonarQube to 7.4.
7777
- **3.0.0** - Upgraded sonar-scala to 7.0.0 & SonarQube to 7.3.
78+
- **2.12.0** - Upgraded SonarQube to 6.7.7 LTS.
7879
- **2.11.0** - Upgraded sonar-scala to 6.8.0.
7980
- **2.10.0** - Upgraded sonar-scala to 6.7.0 & SonarQube to 6.7.6.
8081
- **2.9.0** - Upgraded sonar-scala to 6.6.0.

README_DOCKERHUB.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Starting from version `2.7.0`, the images no longer contain the [sonar-scala-ext
88

99
#### Current
1010
- `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)
11-
- `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)
11+
- `2.12.0` (LTS) [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/2.12.0/Dockerfile), `2.12.0-full` (LTS) [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/2.12.0-full/Dockerfile), [Release 2.12.0](https://github.com/mwz/sonar-scala-docker/releases/tag/2.12.0)
1212
#### Older
1313
- `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)
1414
- `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)
@@ -17,6 +17,7 @@ Starting from version `2.7.0`, the images no longer contain the [sonar-scala-ext
1717
- `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)
1818
- `3.1.0` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/3.1.0/Dockerfile), `3.1.0-full` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/3.1.0-full/Dockerfile), [Release 3.1.0](https://github.com/mwz/sonar-scala-docker/releases/tag/3.1.0)
1919
- `3.0.0` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/3.0.0/Dockerfile), `3.0.0-full` [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/3.0.0-full/Dockerfile), [Release 3.0.0](https://github.com/mwz/sonar-scala-docker/releases/tag/3.0.0)
20+
- `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)
2021
- `2.10.0` (LTS) [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/2.10.0/Dockerfile), `2.10.0-full` (LTS) [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/2.10.0-full/Dockerfile), [Release 2.10.0](https://github.com/mwz/sonar-scala-docker/releases/tag/2.10.0)
2122
- `2.9.0` (LTS) [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/2.9.0/Dockerfile), `2.9.0-full` (LTS) [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/2.9.0-full/Dockerfile), [Release 2.9.0](https://github.com/mwz/sonar-scala-docker/releases/tag/2.9.0)
2223
- `2.8.0` (LTS) [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/2.8.0/Dockerfile), `2.8.0-full` (LTS) [Dockerfile](https://github.com/mwz/sonar-scala-docker/blob/master/2.8.0-full/Dockerfile), [Release 2.8.0](https://github.com/mwz/sonar-scala-docker/releases/tag/2.8.0)
@@ -49,6 +50,8 @@ Version | SonarQube | sonar-scala | sonar-scala-extra
4950
3.1.0-full | 7.4 | 7.1.0
5051
3.0.0 || 7.0.0
5152
3.0.0-full | 7.3 | 7.0.0
53+
2.12.0 || 6.8.0 |
54+
2.12.0-full | 6.7.7 LTS | 6.8.0 |
5255
2.11.0 || 6.8.0 |
5356
2.11.0-full | 6.7.6 LTS | 6.8.0 |
5457
2.10.0 || 6.7.0 |
@@ -82,7 +85,7 @@ version: "2"
8285
8386
services:
8487
sonarqube:
85-
image: sonarqube:7.4-community
88+
image: sonarqube:7.7-community
8689
ports:
8790
- "80:9000"
8891
networks:

README_DOCKERHUB.tpl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ version: "2"
4242
4343
services:
4444
sonarqube:
45-
image: sonarqube:7.4-community
45+
image: sonarqube:7.7-community
4646
ports:
4747
- "80:9000"
4848
networks:

docker-compose-lts.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-lts:
5-
image: sonarqube:6.7.6-community # lts
5+
image: sonarqube:6.7.7-community # lts
66
ports:
77
- "80:9000"
88
networks:
@@ -21,7 +21,7 @@ services:
2121
depends_on:
2222
- db-lts
2323
db-lts:
24-
image: postgres:10.6-alpine
24+
image: postgres:10.8-alpine
2525
networks:
2626
- sonarnet_lts
2727
environment:
@@ -31,7 +31,7 @@ services:
3131
- postgresql_lts:/var/lib/postgresql
3232
- postgresql_lts_data:/var/lib/postgresql/data
3333
plugins-lts:
34-
image: mwizner/sonarqube-scala-plugins:2.11.0
34+
image: mwizner/sonarqube-scala-plugins:2.12.0
3535
volumes:
3636
- sonarqube_lts_plugins:/opt/sonarqube/extensions/plugins
3737
command: /bin/true

vars.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
"sonarScala": "7.5.0"
88
},
99
"lts": {
10-
"version": "2.11.0",
11-
"sonar": "6.7.6 LTS",
10+
"version": "2.12.0",
11+
"sonar": "6.7.7 LTS",
1212
"sonarDocs": "https://docs.sonarqube.org/display/SONARQUBE67/Documentation",
13-
"sonarChangelog": "https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=13972",
13+
"sonarChangelog": "https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=14865",
1414
"sonarScala": "6.8.0"
1515
},
1616
"versions": {
@@ -66,6 +66,13 @@
6666
}
6767
],
6868
"lts": [
69+
{
70+
"version": "2.11.0",
71+
"sonar": "6.7.6 LTS",
72+
"sonarDocs": "https://docs.sonarqube.org/display/SONARQUBE67/Documentation",
73+
"sonarChangelog": "https://jira.sonarsource.com/jira/secure/ReleaseNote.jspa?projectId=10930&version=13972",
74+
"sonarScala": "6.8.0"
75+
},
6976
{
7077
"version": "2.10.0",
7178
"sonar": "6.7.6 LTS",

0 commit comments

Comments
 (0)