Public Repository

Last pushed: 2 years ago
Short Description
SonarQube 5.1 docker image
Full Description

Install

docker run -i -t -d -p 3306:3306 --name smysql tpires/sonar-mysql
docker run -i -t -d --name sonar5.1 -p 9000:9000 --link smysql:db todoken/sonar5.1

User and Password

Default user and password:
admin/admin

Dockerfile

from java:8-jdk
maintainer Ken Todoroki

# get and unpack sonarqube-5.1.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.1.zip && unzip sonarqube-5.1.zip && ln -s sonarqube-5.1 sonar && rm -f /opt/sonarqube-5.1.zip

# sonar51 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
todoken

Comments (0)