#Is there a predefined way to get the OS of the container ?
1 messages · Page 1 of 1 (latest)
unfortunately there's not. We do this ourselves the engine to automatically provision certificates and we're checking /etc/ files as well. ref: https://github.com/dagger/dagger/blob/main/engine/buildkit/cacerts/distros.go
Thank's for the link ! i'll look into it !
sure, np! let us know if you find a better way! 😛
In the Fedora module there is something on grabbing the version from labels, : https://github.com/scottames/daggerverse/blob/2448fda9ede3eb2d134587fe05b00dc9a09082a9/fedora/container.go
Maybe a module adding a set of labels on a container based on container Os exploration would provide a nice way to extract this "complexity" and build on it