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

Commit 3c50571

Browse files
committed
SonarQube 6.7.1 LTS.
1 parent 164f96b commit 3c50571

File tree

3 files changed

+25
-10
lines changed

3 files changed

+25
-10
lines changed

README.md

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,22 @@ Once docker pulls all the required images and starts up the containers, the appl
1313

1414

1515
## Dependencies
16-
* [SonarQube 5.6.7 LTS](https://hub.docker.com/_/sonarqube)
17-
* [PostgreSQL 9](https://hub.docker.com/_/postgres)
16+
* [SonarQube 6.7.1 LTS](https://hub.docker.com/_/sonarqube)
17+
* [PostgreSQL 10.2](https://hub.docker.com/_/postgres)
1818
* External SonarQube plugins:
19-
* [Sagacify/sonar-scala](https://github.com/Sagacify/sonar-scala) - provides support for scalastyle and scoverage.
19+
* [mwz/sonar-scala](https://github.com/mwz/sonar-scala) - provides support for scalastyle and scoverage.
2020
* [arthepsy/sonar-scala-extra](https://github.com/arthepsy/sonar-scala-extra) - adds scapegoat inspections.
2121

2222

23+
## Compatibility Matrix
24+
Version | SonarQube version
25+
--------|------------------
26+
[2.0.0](https://github.com/mwz/sonarqube-scala-docker/releases/tag/2.0.0) | 6.7.1 LTS ([documentation](https://docs.sonarqube.org/display/SONARQUBE67/Documentation)) ([what's new](https://www.sonarqube.org/sonarqube-6-7-lts))
27+
[1.0.0](https://github.com/mwz/sonarqube-scala-docker/releases/tag/1.0.0) | 5.6.7 LTS ([documentation](https://docs.sonarqube.org/display/SONARQUBE56/Documentation))
28+
29+
30+
## Recommendations
31+
[sbt-sonar](https://github.com/mwz/sbt-sonar) is an sbt plugin which provides a way to automate analysis of Scala projects with SonarQube.
32+
2333
## License
2434
The project is licensed under the Apache License v2. See the [LICENSE file](LICENSE) for more details.

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:5.6.7-alpine # lts
5+
image: sonarqube:6.7.1-alpine # lts
66
ports:
77
- "80:9000"
88
networks:
@@ -13,7 +13,7 @@ services:
1313
- plugins
1414

1515
db:
16-
image: postgres:9 # sonarqube 5 isn't compatible with postgres 10
16+
image: postgres:10.2-alpine
1717
networks:
1818
- sonarnet
1919
environment:
@@ -24,7 +24,7 @@ services:
2424
- postgresql_data:/var/lib/postgresql/data
2525

2626
plugins:
27-
image: sonarqube:lts
27+
image: sonarqube:6.7.1-alpine
2828
volumes:
2929
- sonarqube_conf:/opt/sonarqube/conf
3030
- sonarqube_data:/opt/sonarqube/data

plugins/Dockerfile

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
FROM alpine:3.6
1+
FROM alpine:3.7
22

3-
RUN apk --no-cache add --repository http://dl-4.alpinelinux.org/alpine/v3.6/community wget ca-certificates
3+
ENV SONAR_SCAPEGOAT_VERSION 1.3.0
4+
ENV SONAR_SCALA_VERSION 6.0.0
5+
6+
RUN apk --no-cache add --repository http://dl-cdn.alpinelinux.org/alpine/v3.7/community wget ca-certificates
47

58
WORKDIR /tmp/sonarqube/plugins
6-
RUN wget https://github.com/Sagacify/sonar-scala/releases/download/v0.0.3/sonar-scala-plugin-0.0.3.jar
7-
RUN wget https://github.com/arthepsy/sonar-scala-extra/releases/download/v1.3.0/sonar-scapegoat-plugin-1.3.0.jar
9+
RUN wget -O "sonar-scapegoat-plugin-${SONAR_SCAPEGOAT_VERSION}.jar" \
10+
"https://github.com/arthepsy/sonar-scala-extra/releases/download/v${SONAR_SCAPEGOAT_VERSION}/sonar-scapegoat-plugin-${SONAR_SCAPEGOAT_VERSION}.jar"
11+
RUN wget -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"
813
VOLUME /opt/sonarqube
914

1015
CMD cp -R /tmp/sonarqube/plugins/* /opt/sonarqube/extensions/plugins

0 commit comments

Comments
 (0)