add os-release files to images
It would be helpful for image scanners to have /etc/os-release (symlinked to /usr/lib/os-release) included in these images. Right now when running prometheus/node-exporter in my cluster, the background image scanners are constantly complaining on every sweep that the OS source of the container can not be detected.
The one file is 267 bytes (plus the symlink) so it does not have a meaningful impact on image size.
fyi @SuperQ @sdurrheimer
I'm not sure we should do this. This copies in the Debian signature, which misrepresents what out BusyBox image is.
I'm not sure we should do this. This copies in the Debian signature, which misrepresents what out BusyBox image is.
It's your call of course, but since you're sourcing core components from Debian it made sense to me.
Another option is that you could still write a file to /etc/os-release but fill it with values that make sense for your use case (e.g. this is what distroless images do). I'm happy to change this PR to do that if you'd like.
Yes, adding a custom distroless os-release makes more sense to me. Interestingly I checked the official busybox container, it also does not have an os-release.
friendly ping - any thoughts on this updated PR?
Build is failing. :thinking:
Build is failing. 🤔
https://app.circleci.com/pipelines/github/prometheus/busybox It was failing before for something unrelated.