sonar-xsl / Sonar-XSL-Plugin

A Schematron-based SonarQube plugin for XSL code quality measurement.
http://www.sonarxsl.org/
Apache License 2.0
5 stars 3 forks source link

Write a Dockerfile #9

Open jimetevenard opened 4 years ago

jimetevenard commented 4 years ago

FROM the official Sonarqube COPY the jar from $THIS_REPO/sonar-xsl-plugin/target into /opt/sonarqube/extensions/plugins/

Pretty simple.

jimetevenard commented 2 years ago

Something like the following :

FROM sonarqube:lts-community

ENV SONAR_SXL_VERSION=1.0.0-RC1

USER root
RUN wget https://github.com/sonar-xsl/Sonar-XSL-Plugin/releases/download/v${SONAR_SXL_VERSION}/sonar-xsl-plugin-${SONAR_SXL_VERSION}.jar \
    && mv sonar-xsl-plugin-${SONAR_SXL_VERSION}.jar /opt/sonarqube/extensions/plugins/

USER sonarqube