-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.armhf.yaml
48 lines (46 loc) · 1.08 KB
/
docker-compose.armhf.yaml
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
version: "2.4"
services:
weston:
image: torizon/weston:3
# Required to get udev events from host udevd via netlink
network_mode: host
volumes:
- type: bind
source: /tmp
target: /tmp
- type: bind
source: /dev
target: /dev
- type: bind
source: /run/udev
target: /run/udev
cap_add:
- CAP_SYS_TTY_CONFIG
# Add device access rights through cgroup...
device_cgroup_rules:
# ... for tty0
- 'c 4:0 rmw'
# ... for tty1
- 'c 4:1 rmw'
# ... for tty7
- 'c 4:7 rmw'
# ... for /dev/input devices
- 'c 13:* rmw'
# ... for /dev/dri devices
- 'c 226:* rmw'
command: --developer --tty=/dev/tty7
healthcheck:
test: ["CMD", "test", "-S", "/tmp/1000-runtime-dir/wayland-0"]
interval: 5s
timeout: 4s
retries: 6
start_period: 10s
wayland:
depends_on:
weston:
condition: service_healthy
image: <your-username>/gst_example
volumes:
- /tmp:/tmp
- /dev:/dev
restart: on-failure