forked from void-linux/void-infrastructure
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdebuginfod.nomad
More file actions
85 lines (73 loc) · 1.54 KB
/
debuginfod.nomad
File metadata and controls
85 lines (73 loc) · 1.54 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
job "debuginfod" {
datacenters = ["VOID"]
namespace = "apps"
type = "service"
group "app" {
count = 1
volume "binpkgs" {
type = "host"
read_only = true
source = "root-pkgs"
}
volume "debuginfod" {
type = "host"
read_only = false
source = "debuginfod-data"
}
network {
mode = "bridge"
port "http" {
to = 8002
}
}
service {
name = "debuginfod"
port = "http"
meta {
nginx_enable = "true"
nginx_names = "debuginfod.s.voidlinux.org debuginfod.voidlinux.org"
}
check {
type = "http"
address_mode = "host"
path = "/metrics"
timeout = "30s"
interval = "15s"
}
}
task "debuginfod" {
driver = "docker"
volume_mount {
volume = "binpkgs"
destination = "/binpkgs"
read_only = true
}
volume_mount {
volume = "debuginfod"
destination = "/debuginfod"
read_only = false
}
config {
image = "voidlinux/debuginfod:20210316RC02"
ports = ["http"]
args = [
"-vvv",
"-d", "/debuginfod/db.sqlite",
"-I", ".*-dbg-.*",
"-X", "^linux.*",
"-Z", ".xbps",
"-c", "2",
"/binpkgs",
]
}
resources {
memory = 8000
cpu = 6000
}
restart {
attempts = 100
delay = "30s"
}
}
}
}