Public Repository

Last pushed: 2 years ago
Short Description
Sonarqube-5.0 image
Full Description

Sonarqube-5 image, see http://www.sonarqube.org.

This is a slight modification of tpires/sonar-server Dockerfile and is compatible with tpires/sonar-mysql image.

Sonarqube-5 is installed by wgetting http://dist.sonar.codehaus.org/sonarqube-5.0.zip instead installing it from deb package.
Configuration of wrapper.conf & sonar.properties files is the same as in tpires/sonar-server.

To use first run tpires/sonar-mysql then run mzagar/sonar5:

  • docker run -i -t -d -p 3306:3306 –name smysql tpires/sonar-mysql
  • docker run -i -t -d –name sonar5 -p 9000:9000 –link smysql:db mzagar/sonar5

Dockerfile

from dockerfile/java
maintainer Mario Zagar, mario.zagar@hotmail.com

# get and unpack sonarqube-5.0.zip, creates /opt/sonarqube-5.0 and a link /opt/sonar pointing to that directory
#
RUN cd /opt && wget http://dist.sonar.codehaus.org/sonarqube-5.0.zip && unzip sonarqube-5.0.zip && ln -s sonarqube-5.0 sonar && rm -f /opt/sonarqube-5.0.zip

# sonar5 configuration (same as in tpires/sonar-server) - ready to be linked to tpires/sonar-mysql
#
RUN sed -i 's|#wrapper.java.additional.6=-server|wrapper.java.additional.6=-server|g' /opt/sonar/conf/wrapper.conf

RUN sed -i 's|#sonar.jdbc.password=sonar|sonar.jdbc.password=123qwe|g' /opt/sonar/conf/sonar.properties
RUN sed -i 's|#sonar.jdbc.user=sonar|sonar.jdbc.user=sonar|g' /opt/sonar/conf/sonar.properties
RUN sed -i 's|sonar.jdbc.url=jdbc:h2|#sonar.jdbc.url=jdbc:h2|g' /opt/sonar/conf/sonar.properties
RUN sed -i 's|#sonar.jdbc.url=jdbc:mysql://localhost|sonar.jdbc.url=jdbc:mysql://${env:DB_PORT_3306_TCP_ADDR}|g' /opt/sonar/conf/sonar.properties 

CMD ["/opt/sonar/bin/linux-x86-64/sonar.sh","console"]
Docker Pull Command
Owner
mzagar

Comments (0)