Commit 5504841
committed
feat: mount local DLS-filesystem mirror into dev backend for image serving
The backend image endpoints read atlas/grid-square files off disk using the
absolute /dls/... paths stored in the DB, but a DB dump has no files. Mount a
local mirror of Diamond's /dls filesystem into the dev API pod so those
endpoints resolve.
- smartem-workspace scaffolds testdata/dls-filesystem/ as the convention dir
(a local mirror of /dls; populated by hand with imagery). Bump 0.6.1 -> 0.7.0.
- dev-k8s.sh ensure_image_mount patches smartem-http-api with a hostPath
<workspace>/testdata/dls-filesystem -> /dls (readOnly), overridable via
SMARTEM_DLS_FILESYSTEM_DIR, skipped when absent. hostPath must be absolute and
kustomize can't template, so this mirrors the existing ensure_* post-apply
patch pattern. API service only: the worker never reads image files from disk.1 parent 094cfe3 commit 5504841
4 files changed
Lines changed: 50 additions & 2 deletions
File tree
- packages/smartem-workspace
- smartem_workspace
- setup
- scripts/k8s
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
26 | 29 | | |
27 | 30 | | |
28 | 31 | | |
| 32 | + | |
| 33 | + | |
29 | 34 | | |
30 | 35 | | |
31 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
422 | 462 | | |
423 | 463 | | |
424 | 464 | | |
| |||
440 | 480 | | |
441 | 481 | | |
442 | 482 | | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
443 | 486 | | |
444 | 487 | | |
445 | 488 | | |
| |||
0 commit comments