mirror of
https://github.com/mc1arke/sonarqube-community-branch-plugin.git
synced 2025-02-21 19:20:09 +02:00
The sonarqube images no longer create a sonarqube group for the sonarqube user to be placed into, instead they put the sonarqube user in the root group. To prevent the plugin builds failing when attempting to set the plugin ownership to a group that doesn't exist, the `chown` command is being altered to only set the user ownership, not the associated group.
12 lines
580 B
Docker
12 lines
580 B
Docker
ARG SONARQUBE_VERSION
|
|
|
|
FROM sonarqube:${SONARQUBE_VERSION}
|
|
|
|
ARG PLUGIN_VERSION
|
|
ENV PLUGIN_VERSION=${PLUGIN_VERSION}
|
|
|
|
ADD --chown=sonarqube https://github.com/mc1arke/sonarqube-community-branch-plugin/releases/download/${PLUGIN_VERSION}/sonarqube-community-branch-plugin-${PLUGIN_VERSION}.jar /opt/sonarqube/extensions/plugins/
|
|
|
|
ENV SONAR_WEB_JAVAADDITIONALOPTS="-javaagent:./extensions/plugins/sonarqube-community-branch-plugin-${PLUGIN_VERSION}.jar=web"
|
|
ENV SONAR_CE_JAVAADDITIONALOPTS="-javaagent:./extensions/plugins/sonarqube-community-branch-plugin-${PLUGIN_VERSION}.jar=ce"
|