]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr/dashboard/frontend: add NPM_CACHEDIR envvar, use in bwc 65055/head
authorDan Mick <dan.mick@redhat.com>
Wed, 13 Aug 2025 19:16:45 +0000 (12:16 -0700)
committerDan Mick <dan.mick@redhat.com>
Sat, 16 Aug 2025 22:34:57 +0000 (15:34 -0700)
commitad7e6117a9e99061a3ad7e03709dd31e34832966
treec493395a9f4e355239f586f9df5c3f0cabd2ec43
parentdd3662825d940914f70c9e43aeed2ad96b0a386a
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 <dan.mick@redhat.com>
src/pybind/mgr/dashboard/frontend/CMakeLists.txt
src/script/build-with-container.py