Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo docker run -d --name sonarqube -p 9000:9000 -p 9092:9092 sonarqube:5.1
- http://localhost:9000/
- $ wget http://repo1.maven.org/maven2/org/codehaus/sonar/runner/sonar-runner-dist/2.4/sonar-runner-dist-2.4.zip
- ~/programs/sonar-runner-2.4
- #Configure here general information about the environment, such as SonarQube DB details for example
- #No information about specific project should appear here
- #----- Default SonarQube server
- sonar.host.url=http://localhost:9000
- #----- PostgreSQL
- #sonar.jdbc.url=jdbc:postgresql://localhost/sonar
- #----- MySQL
- #sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8
- #----- Oracle
- #sonar.jdbc.url=jdbc:oracle:thin:@localhost/XE
- #----- Microsoft SQLServer
- #sonar.jdbc.url=jdbc:jtds:sqlserver://localhost/sonar;SelectMethod=Cursor
- #----- Global database settings
- sonar.jdbc.username=sonar
- sonar.jdbc.password=sonar
- #----- Default source code encoding
- sonar.sourceEncoding=UTF-8
- #----- Security (when 'sonar.forceAuthentication' is set to 'true')
- sonar.login=admin
- sonar.password=admin
- # must be unique in a given SonarQube instance
- sonar.projectKey=yourProjectKey
- # this is the name displayed in the SonarQube UI
- sonar.projectName=yourProject
- 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=./classes/,./tests/
- # Encoding of the source code. Default is default system encoding
- sonar.sourceEncoding=UTF-8
- # Encoding of the source code. Default is default system encoding
- sonar.sourceEncoding=UTF-8
- your/projects/dir$: ~/programs/sonar-runner-2.4/bin/sonar-runner
- #Configure here general information about the environment, such as SonarQube DB details for example
- #No information about specific project should appear here
- #----- Default SonarQube server
- sonar.host.url=http://14.3.1.4:9000
- #----- PostgreSQL
- #sonar.jdbc.url=jdbc:postgresql://localhost/sonar
- #----- MySQL
- sonar.jdbc.url=jdbc:mysql://14.3.1.2:3306/sonarqube? useUnicode=true&characterEncoding=utf8
- #----- Oracle
- #sonar.jdbc.url=jdbc:oracle:thin:@localhost/XE
- #----- Microsoft SQLServer
- #sonar.jdbc.url=jdbc:jtds:sqlserver://localhost/sonar;SelectMethod=Cursor
- #----- Global database settings
- sonar.jdbc.username=sonarqube
- sonar.jdbc.password=sonarqube
- #----- Default source code encoding
- sonar.sourceEncoding=UTF-8
- #----- Security (when 'sonar.forceAuthentication' is set to 'true')
- #sonar.login=admin
- #sonar.password=admin
- # Required metadata
- sonar.projectKey=yoursite.dev.nl.project
- sonar.projectName=Project
- sonar.projectVersion=1.0
- # Comma-separated paths to directories with sources (required)
- sonar.projectBaseDir=/var/www/your_project
- # Folder being analysed.
- sonar.sources=symfony/src
- # Language (Only when it is a single language)
- sonar.language=php
- # Encoding of the source files
- sonar.sourceEncoding=UTF-8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement