Docker-sonarqube: How to add sonarqube pdf plugin with sonarqube docker image

Created on 31 May 2018  Â·  6Comments  Â·  Source: SonarSource/docker-sonarqube

Hi Team,

I urgently need to add Sonarqube pdf plugin with sonarqube docker image and need to add CFlint plugin with sonarqube docker image . Please help me with it. I tried many ways. I am unable to add.

question

Most helpful comment

Personally, I made my own dockerfile FROM sonarqube with COPY myplugin /opt/sonarqube/extensions/plugins/ or with RUN wget -P /opt/sonarqube/extensions/plugins/ https://example.com/plugin.jar, to create a new image including plugins.

All 6 comments

What did you try ? Copying plugins into /opt/sonarqube/extensions/plugins isn't enough ?

Hi Omar,

Thanks for your reply I was able to add plugin to the Sonarqube docker
image using the command.

sudo docker cp plugin_name.jar sonarqube:/path/to/plugin/extension

sudo docker sonarqube restart

I can see the plugin listed in when I log on to Sonarqube.

I have installed Sonarqube pdf plugin extension in docker but when I run
the scan I was not able to generate a pdf report . And I see no tab to
download the report as pdf .

Please help me with this.

Thanks,
Vishal

On Mon, Jun 4, 2018 at 4:49 AM, Omar WALDMANN notifications@github.com
wrote:

What did you try ? Copying plugins into /opt/sonarqube/extensions/plugins
isn't enough ?

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/SonarSource/docker-sonarqube/issues/179#issuecomment-394281047,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AlzDNWISW3pH0vdbGU0yI-fK-wpHqIYjks5t5PSsgaJpZM4UVPKZ
.

Below is the command I used for installing the pdf plugin and I can able to see the plugin got installed after doing sudo docker sonarqube restart

sudo docker cp ./sonar-pdfreport-plugin-1.4.jar sonarqube:/opt/sonarqube/extensions/plugins/sonar-pdfreport-plugin-1.4.jar

Also Can you please provide me a command to increase java memory of the sonarqube image .

Because I'm also getting java memory error while running few projects. Please help me with it.

Personally, I made my own dockerfile FROM sonarqube with COPY myplugin /opt/sonarqube/extensions/plugins/ or with RUN wget -P /opt/sonarqube/extensions/plugins/ https://example.com/plugin.jar, to create a new image including plugins.

I have old projects running in SonarQube.
I recently downloaded and installed the RCI plugin from the marketplace. Restarted the SonarQube and I can see its been added. But it does not show in any of the projects under Measures. Is there a way to add the plugin to all the projects from the UI ?

Personally, I made my own dockerfile FROM sonarqube with COPY myplugin /opt/sonarqube/extensions/plugins/ or with RUN wget -P /opt/sonarqube/extensions/plugins/ https://example.com/plugin.jar, to create a new image including plugins.

thank you, wget fail for apt install issue, but COPY works

Was this page helpful?
0 / 5 - 0 ratings

Related issues

longquan7 picture longquan7  Â·  7Comments

jasonrhaas picture jasonrhaas  Â·  9Comments

avarf picture avarf  Â·  8Comments

arthur-c picture arthur-c  Â·  6Comments

EPinci picture EPinci  Â·  9Comments