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

Commit 5e35ba2

Browse files
committed
SonarQube 6.7.1 LTS image with bundled Scala plugins.
1 parent b01b463 commit 5e35ba2

File tree

3 files changed

+38
-4
lines changed

3 files changed

+38
-4
lines changed

2.1.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.1 LTS image with bundled Scala plugins
2+
# sonar-scala (https://github.com/mwz/sonar-scala)
3+
# and sonar-scala-extra (https://github.com/arthepsy/sonar-scala-extra).
4+
5+
FROM sonarqube:6.7.1-alpine
6+
7+
ENV SONAR_SCAPEGOAT_VERSION 1.3.0
8+
ENV SONAR_SCALA_VERSION 6.0.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"]

plugins/Dockerfile renamed to 2.1.0/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Alpine image with bundled Scala plugins
2+
# sonar-scala (https://github.com/mwz/sonar-scala)
3+
# and sonar-scala-extra (https://github.com/arthepsy/sonar-scala-extra),
4+
# which can be mounted as a volume into a SonarQube container.
5+
16
FROM alpine:3.7
27

38
ENV SONAR_SCAPEGOAT_VERSION 1.3.0

README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@ 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.1.0-full`](https://hub.docker.com/r/mwizner/sonarqube-scala-plugins).
18+
19+
To start the container issue the following command:
20+
```bash
21+
$ docker run -d --name sonarqube-scala-plugins-full \
22+
-p 80:9000 \
23+
-e SONARQUBE_JDBC_USERNAME=sonar \
24+
-e SONARQUBE_JDBC_PASSWORD=sonar \
25+
-e SONARQUBE_JDBC_URL=jdbc:postgresql://localhost/sonar \
26+
mwizner/sonarqube-scala-plugins:2.1.0-full
27+
```
28+
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.
1729

1830
## Dependencies
1931
* [SonarQube 6.7.1 LTS](https://hub.docker.com/_/sonarqube)
@@ -24,8 +36,8 @@ Once docker pulls all the required images and starts up the containers, the appl
2436

2537

2638
## Compatibility Matrix
27-
Version | SonarQube | sonar-scala | sonar-scapegoat
28-
--------|-----------|-------------|----------------
39+
Version | SonarQube | sonar-scala | sonar-scala-extra
40+
--------|-----------|-------------|------------------
2941
[2.1.0](https://github.com/mwz/sonarqube-scala-docker/releases/tag/2.0.0), [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)) | 6.0.0 | 1.3.0
3042
[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)) | 0.0.3 | 1.3.0
3143

@@ -35,8 +47,8 @@ Version | SonarQube | sonar-scala | sonar-scapegoat
3547

3648
## Changelog
3749
- **2.1.0** - Published docker image with Scala plugins to dockerhub [mwizner/sonarqube-scala-plugins](https://hub.docker.com/r/mwizner/sonarqube-scala-plugins).
38-
- **2.0.0** - SonarQube 6.7.1 LTS (sonar-scala v6.0.0, sonar-scapegoat-plugin v1.3.0).
39-
- **1.0.0** - SonarQube 5.6.7 LTS (sonar-scala v0.0.3, sonar-scapegoat-plugin v1.3.0).
50+
- **2.0.0** - SonarQube 6.7.1 LTS.
51+
- **1.0.0** - SonarQube 5.6.7 LTS.
4052

4153
## License
4254
The project is licensed under the Apache License v2. See the [LICENSE file](LICENSE) for more details.

0 commit comments

Comments
 (0)