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:
Dockerfile
from dockerfile/java
maintainer Mario Zagar, [email protected]
# 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"]
Content type
Image
Digest
sha256:c91848ecd…
Size
353.6 MB
Last updated
almost 11 years ago
docker pull mzagar/sonar5