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

Commit b48a064

Browse files
committed
Added a docker image with a local snapshot version of sonar-scala.
1 parent b1c083a commit b48a064

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

dev/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 (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+
# This image is intended to be used for local development purposes.
6+
7+
FROM alpine:3.7
8+
9+
ARG SONAR_SCAPEGOAT_VERSION=1.3.0
10+
ARG SONAR_SCALA_VERSION
11+
12+
RUN apk --no-cache add --repository http://dl-cdn.alpinelinux.org/alpine/v3.7/community wget ca-certificates
13+
14+
WORKDIR /opt/sonarqube/extensions/plugins
15+
RUN wget -O "sonar-scapegoat-plugin-${SONAR_SCAPEGOAT_VERSION}.jar" \
16+
"https://github.com/arthepsy/sonar-scala-extra/releases/download/v${SONAR_SCAPEGOAT_VERSION}/sonar-scapegoat-plugin-${SONAR_SCAPEGOAT_VERSION}.jar"
17+
ADD sonar-scala_2.12-assembly.jar .

dev/build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
set -eu
3+
4+
export SONAR_SCALA_VERSION=6.2.0-SNAPSHOT
5+
cp ~/.ivy2/local/com.github.mwz/sonar-scala_2.12/${SONAR_SCALA_VERSION}/jars/sonar-scala_2.12-assembly.jar .
6+
docker build -t mwizner/sonarqube-scala-plugins:dev --build-arg SONAR_SCALA_VERSION=${SONAR_SCALA_VERSION} .

0 commit comments

Comments
 (0)