blob: 128e20ff882ce69ad8309b4d76c86af0e14099c4 (
plain) (
blame)
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
|
containers:
- name: player
image: registry.gitlab.com/spreadspace/docker/ffmpeg:{{ player_ffmpeg_image_version }}
imagePullPolicy: Always
command:
- /usr/bin/ffmpeg
args:
{% for param in player_input %}
- '{{ param }}'
{% endfor %}
{% for param in player_output %}
- '{{ param }}'
{% endfor %}
terminationGracePeriodSeconds: 0
securityContext:
privileged: true
volumeMounts:
- name: decklink-device
mountPath: /dev/blackmagic
- name: decklink-libs
subPath: libDeckLinkAPI.so
mountPath: /usr/lib/libDeckLinkAPI.so
readOnly: true
- name: decklink-libs
subPath: libDeckLinkPreviewAPI.so
mountPath: /usr/lib/libDeckLinkPreviewAPI.so
readOnly: true
- name: decklink-libs
subPath: blackmagic
mountPath: /usr/lib/blackmagic
readOnly: true
- name: decklink-etc
mountPath: /etc/blackmagic
readOnly: true
{% for name, mount in player_volume_mounts.items() %}
- name: {{ name }}
mountPath: {{ mount.dest }}
readOnly: true
{% endfor %}
volumes:
- name: decklink-device
hostPath:
path: /dev/blackmagic
- name: decklink-libs
hostPath:
type: Directory
path: /usr/lib/
- name: decklink-etc
hostPath:
path: /etc/blackmagic
{% for name, mount in player_volume_mounts.items() %}
- name: {{ name }}
hostPath:
type: Directory
path: {{ mount.src }}
{% endfor %}
|