-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
117 lines (112 loc) · 2.54 KB
/
Copy pathdocker-compose.yml
File metadata and controls
117 lines (112 loc) · 2.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
services:
__container__-debug:
build:
context: .
dockerfile: Dockerfile.debug
platforms:
- linux/${IMAGE_ARCH}
secrets:
- qt-login
- qt-password
image: ${LOCAL_REGISTRY}:5002/__container__-debug:${TAG}
ports:
# SSH debug
- ${DEBUG_SSH_PORT}:${DEBUG_SSH_PORT}
# gdbserver
- ${DEBUG_PORT1}:${DEBUG_PORT1}
# qml debug
- ${DEBUG_PORT2}:${DEBUG_PORT2}
volumes:
- type: bind
source: /tmp
target: /tmp
- type: bind
source: /dev
target: /dev
device_cgroup_rules:
# ... for tty
- "c 4:* rmw"
# ... for /dev/input devices
- "c 13:* rmw"
# ... for /dev/dri devices
- "c 226:* rmw"
# ... for /dev/uinput
- "c 10:223 rmw"
profiles:
- debug
depends_on:
weston:
condition: service_healthy
__container__:
build:
context: .
dockerfile: Dockerfile
platforms:
- linux/${IMAGE_ARCH}
secrets:
- qt-login
- qt-password
image: ${DOCKER_LOGIN}/__container__:${TAG}
volumes:
- type: bind
source: /tmp
target: /tmp
- type: bind
source: /dev
target: /dev
device_cgroup_rules:
# ... for tty
- "c 4:* rmw"
# ... for /dev/input devices
- "c 13:* rmw"
# ... for /dev/dri devices
- "c 226:* rmw"
# ... for /dev/uinput
- "c 10:223 rmw"
profiles:
- release
depends_on:
weston:
condition: service_healthy
weston:
image: torizon/weston${GPU}:4
environment:
- ACCEPT_FSL_EULA=1
# 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 tty
- "c 4:* rmw"
# ... for /dev/input devices
- "c 13:* rmw"
# ... for /dev/dri devices
- "c 226:* rmw"
# ... for /dev/uinput
- "c 10:223 rmw"
profiles:
- release
- debug
healthcheck:
test: ["CMD", "test", "-S", "/tmp/1000-runtime-dir/wayland-0"]
interval: 5s
timeout: 4s
retries: 6
start_period: 10s
secrets:
qt-login:
environment: QT_LICENSE_LOGIN
qt-password:
environment: QT_LICENSE_PASSWORD