commit 18ba4368bae1fd81145f6bbf0be2e8631e0cf247 Author: Jakub Vavrik Date: Mon Nov 8 17:02:43 2021 +0100 initial config diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0385e72 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM sonarqube:9.1.0-community + +ARG COMMUNITY_BRANCH_VERSION=1.9.0 + +RUN wget https://github.com/mc1arke/sonarqube-community-branch-plugin/releases/download/${COMMUNITY_BRANCH_VERSION}/sonarqube-community-branch-plugin-${COMMUNITY_BRANCH_VERSION}.jar -O /opt/sonarqube/extensions/plugins/sonarqube-community-branch-plugin-${COMMUNITY_BRANCH_VERSION}.jar +ENV SONAR_WEB_JAVAADDITIONALOPTS=-javaagent:./extensions/plugins/sonarqube-community-branch-plugin-${COMMUNITY_BRANCH_VERSION}.jar=web +ENV SONAR_CE_JAVAADDITIONALOPTS=-javaagent:./extensions/plugins/sonarqube-community-branch-plugin-${COMMUNITY_BRANCH_VERSION}.jar=ce \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..7506fe2 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# Sonarqube CE with [Community Branch Plugin pre-installed](https://github.com/mc1arke/sonarqube-community-branch-plugin)