File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,22 @@ commands:
174174 name : Dump apt sources
175175 command : cat /etc/apt/sources.list
176176
177+ install-nvidia-docker :
178+ description : " Install NVIDIA Docker"
179+ steps :
180+ - run :
181+ name : Install NVIDIA Docker
182+ command : |
183+ distribution=$(. /etc/os-release;echo $ID$VERSION_ID) \
184+ && curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
185+ && curl -s -L https://nvidia.github.io/libnvidia-container/$distribution/libnvidia-container.list | \
186+ sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \
187+ sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list
188+ sudo apt-get update
189+ sudo apt-get install -y nvidia-container-toolkit
190+ sudo nvidia-ctk runtime configure --runtime=docker
191+ sudo systemctl restart docker
192+
177193 create-env :
178194 description : " Install dependencies for Torch-TensorRT"
179195 parameters :
@@ -1075,6 +1091,7 @@ jobs:
10751091 condition : << parameters.enabled >>
10761092 steps :
10771093 - checkout
1094+ - install-nvidia-docker
10781095 - run :
10791096 name : " Build packaging container"
10801097 command : |
You can’t perform that action at this time.
0 commit comments