This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a docker image with a local snapshot version of sonar-scala.
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Alpine image with bundled Scala plugins | ||
# sonar-scala (https://github.com/mwz/sonar-scala) | ||
# and sonar-scala-extra (https://github.com/arthepsy/sonar-scala-extra), | ||
# which can be mounted as a volume into a SonarQube container. | ||
# This image is intended to be used for local development purposes. | ||
|
||
FROM alpine:3.7 | ||
|
||
ARG SONAR_SCAPEGOAT_VERSION=1.3.0 | ||
ARG SONAR_SCALA_VERSION | ||
|
||
RUN apk --no-cache add --repository http://dl-cdn.alpinelinux.org/alpine/v3.7/community wget ca-certificates | ||
|
||
WORKDIR /opt/sonarqube/extensions/plugins | ||
RUN wget -O "sonar-scapegoat-plugin-${SONAR_SCAPEGOAT_VERSION}.jar" \ | ||
"https://github.com/arthepsy/sonar-scala-extra/releases/download/v${SONAR_SCAPEGOAT_VERSION}/sonar-scapegoat-plugin-${SONAR_SCAPEGOAT_VERSION}.jar" | ||
ADD sonar-scala_2.12-assembly.jar . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
set -eu | ||
|
||
export SONAR_SCALA_VERSION=6.2.0-SNAPSHOT | ||
cp ~/.ivy2/local/com.github.mwz/sonar-scala_2.12/${SONAR_SCALA_VERSION}/jars/sonar-scala_2.12-assembly.jar . | ||
docker build -t mwizner/sonarqube-scala-plugins:dev --build-arg SONAR_SCALA_VERSION=${SONAR_SCALA_VERSION} . |