-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsonarqube.yaml
More file actions
50 lines (42 loc) · 1.45 KB
/
sonarqube.yaml
File metadata and controls
50 lines (42 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# SonarQube module handler
# by neurosam.AI — https://neurosam.ai
name: sonarqube
description: SonarQube continuous code quality and security inspection
version: "1.0.0"
author: neurosam.AI
package:
default_version: "10.7.0.96327"
url_template: "https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-{{VERSION}}.zip"
versions:
"10.7.0.96327": "https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-10.7.0.96327.zip"
"10.6.0.92116": "https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-10.6.0.92116.zip"
"9.9.7.96285": "https://binaries.sonarsource.com/Distribution/sonarqube/sonarqube-9.9.7.96285.zip"
build_cmd: ""
start_cmd: "{{BASE_DIR}}/current/bin/linux-x86-64/sonar.sh start -Dsonar.web.port={{PORT}}"
stop_cmd: "{{BASE_DIR}}/current/bin/linux-x86-64/sonar.sh stop"
status_cmd: "lsof -i :{{PORT}} -t 2>/dev/null"
artifact_path: "external-package/sonarqube.tar.gz"
package_includes:
- bin/
- conf/
- lib/
- extensions/
- elasticsearch/
health_check:
type: http
target: "http://localhost:{{PORT}}/api/system/status"
timeout: 120
provision:
packages:
- openjdk-17-jre-headless
directories:
- "{{BASE_DIR}}/data"
- "{{BASE_DIR}}/data/es8"
- "{{BASE_DIR}}/temp"
commands:
- "sysctl -w vm.max_map_count=524288 2>/dev/null || true"
- "sysctl -w fs.file-max=131072 2>/dev/null || true"
- "ulimit -n 131072 2>/dev/null || true"
data_dirs:
- data
log_file: "sonar.log"