Closed fmoessbauer closed 10 months ago
Sure - already have patches?
Sure - already have patches?
Not yet. I just had a brief look at the sbuild-chroot.inc
file and it looks quite straight forward to implement. I can give it a try and send it to the ISAR ML.
Since the introduction of sbuild in ISAR, all
do_dpkg_build
tasks run in their on isolated environment. The base rootfs of the builds is shared, but the build itself uses an overlay so that multiple builds can work isolated and concurrently.For NPM modules, a lot of packages need to be installed prior to the build. These packages are needed for all NPM builds, but are only installed into the overlay of the schroot. By that, a ton of logic is executed in each build (which also needs to be emulated due to missing cross support). This is very inefficient and disk-bound.
Instead, it would be better to create a dedicated schroot with all base packages for the NPM builds. Then, the build itself only needs to install the package specific dependencies and runs much quicker.
As this is becoming a pattern, we should also consider a small ISAR patch to make it easier to create derived schroots from either the host or the target base schroot.