Public Repository

Last pushed: 2 years ago
Short Description
Sonarqube 5.4 based on debian and Oracle JRE8. Configured to use less RAM.
Full Description

See offical realase

Example of docker-compose.yml:

<pre>
sonarlite:
image: featon/sonarlite
mem_limit: 812m
ports:
- "9000:9000"
links:
- db
environment:
- SONARQUBE_JDBC_USERNAME=postgres
- SONARQUBE_JDBC_PASSWORD=postgres
- SONARQUBE_JDBC_URL=jdbc:postgresql://db:5432/sonar
- SONAR_VERSION=5.4
user: root
#working_dir: /opt/sonar
#entrypoint: ./bin/run.sh
volumes:
- /opt/sonarqube/extensions
- /opt/sonarqube/lib/bundled-plugins


db:
image: postgres
mem_limit: 512m
ports:
- "5432:5432"
volumes:
- /data/docker-data/postgresql:/postgresql
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- PGDATA=/postgresql/data

</pre>

You can run analysis using sonar-runner program on local machine. Working directory should contain sonar-project.properties. file

sonar-project.properties example:

<pre>
# must be unique in a given SonarQube instance
sonar.projectKey=TEST
# this is the name displayed in the SonarQube UI
sonar.projectName=TEST
sonar.projectVersion=1.0

# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
# Since SonarQube 4.2, this property is optional if sonar.modules is set.
# If not set, SonarQube starts looking for source code from the directory containing
# the sonar-project.properties file.
sonar.sources=src

# Encoding of the source code. Default is default system encoding
sonar.sourceEncoding=UTF-8

#SVN:
sonar.svn.username=xyz
sonar.svn.password.secured=xyz
#sonar.scm.disabled=true

</pre>

Docker Pull Command
Owner
featon