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

Commit

Permalink
Added a docker image with a local snapshot version of sonar-scala.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwz committed Mar 28, 2018
1 parent b1c083a commit b48a064
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
17 changes: 17 additions & 0 deletions dev/Dockerfile
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 .
6 changes: 6 additions & 0 deletions dev/build.sh
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} .

0 comments on commit b48a064

Please sign in to comment.