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: 2 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.
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: