This PR improves the /system endpoint to not execute 2 processes on every request, which is pretty resource heavy.
Instead it reads the npm version on startup, and uses the cached value afterwards.
I also fixed the docker detection, as it did use a method which didn't work anymore.
It also detects now if it's running inside a podman or systemd-nspawn container in addition to docker.
I left the docker field untouched for backwards compatibility and added a new field in /system which contains the
containerization technology or null if none is detected.
This PR improves the /system endpoint to not execute 2 processes on every request, which is pretty resource heavy. Instead it reads the npm version on startup, and uses the cached value afterwards.
I also fixed the docker detection, as it did use a method which didn't work anymore.
It also detects now if it's running inside a podman or systemd-nspawn container in addition to docker. I left the docker field untouched for backwards compatibility and added a new field in /system which contains the containerization technology or
null
if none is detected.