On 2/24/21 7:34 AM, Dan Čermák wrote:
I've found that influxdb2 is provided with a built in WebUI interface based on nodejs(?) and it requires about 2000 packages from npm to be built. Even though I can do it manually, there is no internet connection in OBS. I have not found any info on the wifi how to overcome this issue. Probably I need to preferetch these sources from npm and put them as a tarball.
I have run into exactly the same problem with node's dependency explosion and Ludwig kindly pointed me to https://github.com/openSUSE/obs-service-node_modules which takes care of the bundling for you.
This is exactly correct. To build in OBS, one needs to bundle dependencies. What we've done now is to bundle them for a localhost npm proxy that then allows you to run `npm install` inside OBS. An example of a spec file that would use this is, osc less home:adamm:branches:systemsmanagement:cockpit/cockpit-podman cockpit-podman.spec The node_modules service is run locally with a package-lock.json file as per link from Dan. - Adam