-
Notifications
You must be signed in to change notification settings - Fork 0
/
fronter.nomad
52 lines (42 loc) · 912 Bytes
/
fronter.nomad
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
job "screen_service" {
region = "europe"
datacenters = ["davinhart-castle"]
type = "service"
constraint {
attribute = "${meta.cached_binaries}"
set_contains = "jq,fbi"
}
constraint {
attribute = "${meta.has_framebuffer}"
value = true
}
group "screen" {
count = 1
restart {
attempts = 2
interval = "30m"
delay = "15s"
mode = "fail"
}
ephemeral_disk {
size = 128
}
# TODO: Affinity to RPi nodes with screens?
task "update" {
driver = "raw_exec"
# Need to be root to draw to frame buffer
user = "root"
config {
command = "local/repo/update-screen.sh"
}
artifact {
source = "git::https://github.com/strawberryutopia/fronter-badge"
destination = "local/repo"
}
resources {
cpu = 32
memory = 64
}
}
}
}