Commit ad7e611
committed
pybind/mgr/dashboard/frontend: add NPM_CACHEDIR envvar, use in bwc
Add an optional NPM_CACHEDIR environment variable to serve as the
cache parameter for npm in the dashboard frontend build. The idea
is to allow it to persist across builds so that we decrease the load
on registry.npmjs.org, which has been throttling our requests when
using build-with-container.py, and also hopefully improve the time
of the frontend npm operations.
build-with-container.py also grows a --npm-cache-path option to allow
setting it for container builds and passing the envvar to the build.
Fixes: https://tracker.ceph.com/issues/72298
Signed-off-by: Dan Mick <[email protected]>1 parent dd36628 commit ad7e611
File tree
2 files changed
+41
-5
lines changed- src
- pybind/mgr/dashboard/frontend
- script
2 files changed
+41
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
63 | 68 | | |
64 | 69 | | |
65 | 70 | | |
| |||
70 | 75 | | |
71 | 76 | | |
72 | 77 | | |
73 | | - | |
| 78 | + | |
74 | 79 | | |
75 | 80 | | |
76 | 81 | | |
| |||
79 | 84 | | |
80 | 85 | | |
81 | 86 | | |
82 | | - | |
| 87 | + | |
83 | 88 | | |
84 | 89 | | |
85 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
246 | 252 | | |
247 | 253 | | |
248 | 254 | | |
| |||
292 | 298 | | |
293 | 299 | | |
294 | 300 | | |
| 301 | + | |
295 | 302 | | |
296 | 303 | | |
297 | 304 | | |
| |||
395 | 402 | | |
396 | 403 | | |
397 | 404 | | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
398 | 413 | | |
399 | 414 | | |
400 | 415 | | |
| |||
528 | 543 | | |
529 | 544 | | |
530 | 545 | | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
531 | 554 | | |
532 | 555 | | |
533 | 556 | | |
| |||
545 | 568 | | |
546 | 569 | | |
547 | 570 | | |
548 | | - | |
| 571 | + | |
549 | 572 | | |
550 | 573 | | |
551 | 574 | | |
| |||
638 | 661 | | |
639 | 662 | | |
640 | 663 | | |
| 664 | + | |
641 | 665 | | |
642 | 666 | | |
643 | 667 | | |
| |||
654 | 678 | | |
655 | 679 | | |
656 | 680 | | |
| 681 | + | |
657 | 682 | | |
658 | 683 | | |
659 | 684 | | |
| |||
670 | 695 | | |
671 | 696 | | |
672 | 697 | | |
| 698 | + | |
673 | 699 | | |
674 | 700 | | |
675 | 701 | | |
| |||
685 | 711 | | |
686 | 712 | | |
687 | 713 | | |
688 | | - | |
| 714 | + | |
| 715 | + | |
689 | 716 | | |
690 | 717 | | |
691 | 718 | | |
| |||
927 | 954 | | |
928 | 955 | | |
929 | 956 | | |
930 | | - | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
931 | 962 | | |
932 | 963 | | |
933 | 964 | | |
| |||
0 commit comments