I’ve had to mess around with GPGPU enabled containers a fair amount. For these sort of stable LTS environments, OpenSUSE Leap has long been my favourite distro. If you’re on the same boat and need to use CUDA, however, nVidia provides docker compatible container images, but not for OpenSUSE. While this is usually not a big issue, sometimes you DO want a specific distro for whatever reason, and a couple of times in the past, I’ve wanted specifically OpenSUSE. So I put these together.
These are all based on Nvidia’s own provided images, adapting their dockerfiles for OpenSUSE Leap.
In addition to just reproducing the images they themselves provide, I also extend them, providing images for cudagl with cudnn, something that, at least when I last checked, nVidia themselves didn’t.
There’s a buildall.sh script which should do what it says on the tin. The build itself CAN be rather long, but these images do and try to build off of each other in order to minimise size and build time as much as possible.
Please note that these are x86 only, no ARM images at time of writing.
You can find the dockerfiles themselves and accompanying scripts publicly hosted in Gitlab