Advertisement
Guest User

Untitled

a guest
Nov 24th, 2017
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.02 KB | None | 0 0
  1. sudo docker run -d --name sonarqube -p 9000:9000 -p 9092:9092 sonarqube:5.1
  2.  
  3. http://localhost:9000/
  4.  
  5. $ wget http://repo1.maven.org/maven2/org/codehaus/sonar/runner/sonar-runner-dist/2.4/sonar-runner-dist-2.4.zip
  6.  
  7. ~/programs/sonar-runner-2.4
  8.  
  9. #Configure here general information about the environment, such as SonarQube DB details for example
  10. #No information about specific project should appear here
  11.  
  12. #----- Default SonarQube server
  13. sonar.host.url=http://localhost:9000
  14.  
  15. #----- PostgreSQL
  16. #sonar.jdbc.url=jdbc:postgresql://localhost/sonar
  17.  
  18. #----- MySQL
  19. #sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8
  20.  
  21. #----- Oracle
  22. #sonar.jdbc.url=jdbc:oracle:thin:@localhost/XE
  23.  
  24. #----- Microsoft SQLServer
  25. #sonar.jdbc.url=jdbc:jtds:sqlserver://localhost/sonar;SelectMethod=Cursor
  26.  
  27. #----- Global database settings
  28. sonar.jdbc.username=sonar
  29. sonar.jdbc.password=sonar
  30.  
  31. #----- Default source code encoding
  32. sonar.sourceEncoding=UTF-8
  33.  
  34. #----- Security (when 'sonar.forceAuthentication' is set to 'true')
  35. sonar.login=admin
  36. sonar.password=admin
  37.  
  38. # must be unique in a given SonarQube instance
  39. sonar.projectKey=yourProjectKey
  40. # this is the name displayed in the SonarQube UI
  41. sonar.projectName=yourProject
  42. sonar.projectVersion=1.0
  43.  
  44. # Path is relative to the sonar-project.properties file. Replace "" by "/" on Windows.
  45. # Since SonarQube 4.2, this property is optional if sonar.modules is set.
  46. # If not set, SonarQube starts looking for source code from the directory containing
  47. # the sonar-project.properties file.
  48. sonar.sources=./classes/,./tests/
  49.  
  50. # Encoding of the source code. Default is default system encoding
  51. sonar.sourceEncoding=UTF-8
  52.  
  53. # Encoding of the source code. Default is default system encoding
  54. sonar.sourceEncoding=UTF-8
  55.  
  56. your/projects/dir$: ~/programs/sonar-runner-2.4/bin/sonar-runner
  57.  
  58. #Configure here general information about the environment, such as SonarQube DB details for example
  59. #No information about specific project should appear here
  60.  
  61. #----- Default SonarQube server
  62. sonar.host.url=http://14.3.1.4:9000
  63.  
  64. #----- PostgreSQL
  65. #sonar.jdbc.url=jdbc:postgresql://localhost/sonar
  66.  
  67. #----- MySQL
  68. sonar.jdbc.url=jdbc:mysql://14.3.1.2:3306/sonarqube? useUnicode=true&characterEncoding=utf8
  69.  
  70. #----- Oracle
  71. #sonar.jdbc.url=jdbc:oracle:thin:@localhost/XE
  72.  
  73. #----- Microsoft SQLServer
  74. #sonar.jdbc.url=jdbc:jtds:sqlserver://localhost/sonar;SelectMethod=Cursor
  75.  
  76. #----- Global database settings
  77. sonar.jdbc.username=sonarqube
  78. sonar.jdbc.password=sonarqube
  79.  
  80. #----- Default source code encoding
  81. sonar.sourceEncoding=UTF-8
  82.  
  83. #----- Security (when 'sonar.forceAuthentication' is set to 'true')
  84. #sonar.login=admin
  85. #sonar.password=admin
  86.  
  87. # Required metadata
  88. sonar.projectKey=yoursite.dev.nl.project
  89. sonar.projectName=Project
  90. sonar.projectVersion=1.0
  91.  
  92. # Comma-separated paths to directories with sources (required)
  93. sonar.projectBaseDir=/var/www/your_project
  94. # Folder being analysed.
  95. sonar.sources=symfony/src
  96.  
  97. # Language (Only when it is a single language)
  98. sonar.language=php
  99. # Encoding of the source files
  100. sonar.sourceEncoding=UTF-8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement