File tree 1 file changed +17
-0
lines changed 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -174,6 +174,22 @@ commands:
174
174
name : Dump apt sources
175
175
command : cat /etc/apt/sources.list
176
176
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
+
177
193
create-env :
178
194
description : " Install dependencies for Torch-TensorRT"
179
195
parameters :
@@ -1075,6 +1091,7 @@ jobs:
1075
1091
condition : << parameters.enabled >>
1076
1092
steps :
1077
1093
- checkout
1094
+ - install-nvidia-docker
1078
1095
- run :
1079
1096
name : " Build packaging container"
1080
1097
command : |
You can’t perform that action at this time.
0 commit comments