Commit bba7fa3
committed
compose: fix permissions on build dir and venv
Fix issue with mixed root/user permissions.
Summary of new/working state:
- source directory is copied in the Dockerfile with root permissions
to allow synchronisation using watch feature of docker compose.
- each robot service has its own build dir (/src/build/${ROBOT_ID}) to
prevent override to parallel startup.
- "uv sync" command is executed with root permission because it creates
bindings (__init__.pyi) in the source directory.
- "uv run" commands are executed with user permissions because tools are
using shared memory files in "/dev/shm" mounted from the host.
- to avoid permission denied errors due to recompilation, "uv run" is
launched with "--no-sync" option.
- "/src/.venv" bound to venv_cache volume so monitor service can reuse
the venv created by robot service.
Signed-off-by: Eric Courtois <eric.courtois@gmail.com>1 parent a471b6b commit bba7fa3
2 files changed
+16
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | 67 | | |
69 | 68 | | |
70 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
146 | | - | |
147 | | - | |
148 | | - | |
| 147 | + | |
| 148 | + | |
149 | 149 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
173 | | - | |
| 172 | + | |
| 173 | + | |
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
354 | | - | |
355 | | - | |
| 353 | + | |
356 | 354 | | |
357 | 355 | | |
358 | 356 | | |
| |||
363 | 361 | | |
364 | 362 | | |
365 | 363 | | |
366 | | - | |
367 | | - | |
368 | | - | |
| 364 | + | |
369 | 365 | | |
370 | 366 | | |
371 | 367 | | |
| |||
376 | 372 | | |
377 | 373 | | |
378 | 374 | | |
379 | | - | |
380 | | - | |
381 | | - | |
| 375 | + | |
382 | 376 | | |
383 | 377 | | |
384 | 378 | | |
| |||
389 | 383 | | |
390 | 384 | | |
391 | 385 | | |
392 | | - | |
393 | | - | |
394 | | - | |
| 386 | + | |
395 | 387 | | |
396 | 388 | | |
397 | 389 | | |
| |||
402 | 394 | | |
403 | 395 | | |
404 | 396 | | |
405 | | - | |
406 | | - | |
407 | | - | |
| 397 | + | |
408 | 398 | | |
409 | 399 | | |
410 | 400 | | |
| |||
433 | 423 | | |
434 | 424 | | |
435 | 425 | | |
436 | | - | |
| 426 | + | |
437 | 427 | | |
438 | 428 | | |
439 | 429 | | |
440 | 430 | | |
441 | 431 | | |
442 | 432 | | |
443 | 433 | | |
| 434 | + | |
0 commit comments