ARC and dind (and Nvidia) #3409
-
So, I'm trying to run a docker image that requires GPU. However, because I need to run the build image with GPU, I need to use a custom template definition; that's okay, I'm brave.
I'm planning on using https://github.com/actions/runner as my base/template, adding I'm assuming (?) I also need to customize the dind image also
however, this is based on Alpine Linux (which makes it hard to install the Nvidia stuff). |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Okay; so if anyone comes accross this question in the future and is facing the same issue, here is what worked for me. Basically, you need a custom ARC values template, something like:
What we are doing here is providing our own POD spec for our “runner” and “docker in docker” sidecar. The following is where we define the runner; this is the container that runs the project docker file:
We use a custom action runner that installs and sets up CUDA for us based on: https://github.com/actions/runner We also need to install CUDA and docker in the sidecar:
again, this is custom, based on: https://github.com/Henderake/dind-nvidia-docker |
Beta Was this translation helpful? Give feedback.
-
In the end, it wasn't all that complicated, but better documentation would have helped :( |
Beta Was this translation helpful? Give feedback.
-
Hi! My one concern is that you basically yoinked the template they use and put it as the template in the values. The fear I have is that if there is underlying change the default template things will break when your variation on the template is not updated too. Not sure if that makes sense... |
Beta Was this translation helpful? Give feedback.
Okay; so if anyone comes accross this question in the future and is facing the same issue, here is what worked for me.
Basically, you need a custom ARC values template, something like: