Skip to content

Commit

Permalink
sonarqube: Add lxdfile to inject sonar-cxx plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
hverr committed Mar 7, 2017
1 parent 972f554 commit 14308a2
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sonarqube/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ lxdfile launch sonarqube sonarqube -i configure.inject
```

SonarQube is now listening on port 9000.

Plugins
-------

To install plugins see the [`plugins/`](plugins/#readme) directory.
13 changes: 13 additions & 0 deletions sonarqube/plugins/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
SonarQube - Plugins
===================

This directory contains scripts to install some SonarQube plugins.

C++
---

To install the C++ plugin

```
lxdfile inject sonarqube -i sonar-cxx.inject
```
6 changes: 6 additions & 0 deletions sonarqube/plugins/sonar-cxx.inject
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ENV CXX_VERSION 0.9.7
ENV CXX_JAR sonar-cxx-plugin-${CXX_VERSION}.jar
ENV CXX_URL https://github.com/SonarOpenCommunity/sonar-cxx/releases/download/cxx-${CXX_VERSION}/${CXX_JAR}

RUN curl -L "${CXX_URL}" -o /opt/sonarqube/sonarqube-6.2/extensions/plugins/${CXX_JAR}
RUN systemctl restart sonar.service

0 comments on commit 14308a2

Please sign in to comment.