-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsnapotter.json
More file actions
94 lines (94 loc) · 2.3 KB
/
Copy pathsnapotter.json
File metadata and controls
94 lines (94 loc) · 2.3 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"version": 5,
"script": {
"version": "1.0.0",
"changeLog": "Initial Script"
},
"installation_questions": [
{
"question": "Choose the Admin Username",
"description": "Only used on installation",
"placeholder": "",
"type": "text",
"key": "DEFAULT_USERNAME",
"required": true,
"default": ""
},
{
"question": "Choose the Admin Password",
"description": "Only used on installation",
"placeholder": "",
"type": "text",
"key": "DEFAULT_PASSWORD",
"required": true,
"default": ""
}
],
"requirements": {
"locations": [
"ApplicationsCapacity", "ApplicationsPerformance"
],
"specifications": [
"4CORE",
"4096MB"
],
"permissions": [
"READ_WRITE_LOCATIONS"
],
"ports": [30428]
},
"ensure_directories_exists": [
{
"path": "$LOCATION(ApplicationsPerformance)"
},
{
"path": "$LOCATION(ApplicationsCapacity)"
},
{ "path": "$LOCATION(ApplicationsCapacity)/snapotter/data", "owner": { "user": "apps" } },
{ "path": "$LOCATION(ApplicationsPerformance)/snapotter/postgres_data", "owner": { "user": "netdata", "group": "docker" }, "snapshot": { "id": "db" } }
],
"app_values": {
"storage": {
"data": "$HOST_PATH($LOCATION(ApplicationsCapacity)/snapotter/data)",
"postgres_data": "$HOST_PATH($LOCATION(ApplicationsPerformance)/snapotter/postgres_data)",
"workspace": {
"ix_volume_config": {
"acl_enable": false,
"dataset_name": "workspace"
},
"type": "ix_volume"
}
},
"snapotter": {
"db_password": "$RANDOM_STRING(7)",
"redis_password": "$RANDOM_STRING(7)",
"additional_envs": [
{
"name": "DEFAULT_USERNAME",
"value": "$QUESTION(DEFAULT_USERNAME)"
},
{
"name": "DEFAULT_PASSWORD",
"value": "$QUESTION(DEFAULT_PASSWORD)"
},
{
"name": "SKIP_MUST_CHANGE_PASSWORD",
"value": "true"
}
],
"network": {
"web_port": {
"bind_mode": "published",
"port_number": 30428
}
},
"resources": {
"gpus": "$GPU_CONFIG()",
"limits": {
"cpus": 4,
"memory": "$MEMORY(20%, 4096)"
}
}
}
}
}