Public Repository

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

Sonarqube-5 image, see

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

Sonarqube-5 is installed by wgetting instead installing it from deb package.
Configuration of wrapper.conf & 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


from dockerfile/java
maintainer Mario Zagar,

# get and unpack, creates /opt/sonarqube-5.0 and a link /opt/sonar pointing to that directory
RUN cd /opt && wget && unzip && ln -s sonarqube-5.0 sonar && rm -f /opt/

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

RUN sed -i 's|#sonar.jdbc.password=sonar|sonar.jdbc.password=123qwe|g' /opt/sonar/conf/
RUN sed -i 's|#sonar.jdbc.user=sonar|sonar.jdbc.user=sonar|g' /opt/sonar/conf/
RUN sed -i 's|sonar.jdbc.url=jdbc:h2|#sonar.jdbc.url=jdbc:h2|g' /opt/sonar/conf/
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/ 

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

Comments (0)