This message was deleted.
# elemental
a
This message was deleted.
a
I guess installing them using a Dockerfile is a no go because it depends on the container build.
w
Hi Marco! Hmm if not installing in the container I think you could build it on first boot? using a cloud-init to check if it already exists, otherwise build/install it? Maybe @sticky-tailor-45974 has a better idea..
s
Hi Marco, if its an elemental derivative I think I would try to precompile them and install them as part of the Dockerfile. In case it turns to be too difficult or convoluted then I am afraid you should install them as part of an install-hook and upgrade-hook (or OS upgrades). The counterpart of such a process is that you might have to create a derivative including all the installation dependencies, not all of them might be required at runtime.
So as a summary you could explore the option of: 1. Create a derivative including the drivers package (or tarball) without installing them 2. Include all installation dependencies as part of the derivative. 3. Include an install and upgrade hook (I'd start with stages
after-install-chroot
and
after-upgrade-chroot
) to run the installation as part of the derivative (inside
/system/oem
) Then at install and upgrade time the installation will happen and it will be persistent.
a
I would prefer precompiling it and include it in a dockerfile indeed.. but the whole nvidia building stuff is new to me. Got some pointers but still not a walk in the park. 🙂
@witty-table-40840 @sticky-tailor-45974 We came a long way with Elemental the only missing piece is how we can use nvidia drivers on our edge devices.
w
@acceptable-belgium-2684 Glad to hear you came a long way! There has been some interest in the nvidia drivers lately so I will have a look around and see if I can gather some best practices into the documentation!
a
I got some pointers from a colleague of yours but still hitting a kind of wall to make it easy to consume the drivers. He pointed me to this resource. https://gitlab.com/nvidia/container-images/driver/-/merge_requests/244/diffs
👀 1