Skip to content

Commit 1f76a3b

Browse files
committed
nvidia-container-toolkit: remove "tools" from build
Upstream have integrated these into the main build since 1.16.x: * NVIDIA/nvidia-container-toolkit#722 * NVIDIA/nvidia-container-toolkit#765
1 parent 4b46b49 commit 1f76a3b

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

nvidia-container-toolkit.yaml

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,6 @@ data:
3636
nvidia-cdi-hook: nvidia-cdi-hook
3737
nvidia-ctk: nvidia-ctk
3838

39-
- name: tools
40-
items:
41-
containerd: containerd
42-
crio: crio
43-
docker: docker
44-
nvidia-toolkit: nvidia-toolkit
45-
operator: operator
46-
toolkit: toolkit
47-
4839
subpackages:
4940
- range: commands
5041
name: "${{package.name}}-${{range.key}}"
@@ -62,31 +53,6 @@ subpackages:
6253
apk add runc # runc is just a placeholder, the actual runtime binary is TBD by the user
6354
${{range.value}} --help
6455
65-
- range: tools
66-
name: "${{package.name}}-${{range.key}}"
67-
pipeline:
68-
- uses: go/build
69-
with:
70-
modroot: .
71-
packages: ./tools/container/${{range.key}}
72-
ldflags: -s -w -X main.Version=${{package.version}}
73-
output: ${{range.key}}
74-
vendor: true
75-
- runs: |
76-
# Ref: https://github.com/NVIDIA/nvidia-container-toolkit/blob/v1.15.0/deployments/container/Dockerfile.ubi8#L74
77-
mkdir -p ${{targets.contextdir}}/work
78-
ln -sf /usr/bin/${{range.key}} ${{targets.contextdir}}/work/${{range.key}}
79-
test:
80-
pipeline:
81-
- runs: |
82-
# Operator requires root privileges to run
83-
if [ "${{range.key}}" = "operator" ]; then
84-
set +e
85-
/work/${{range.key}} 2>&1 | grep -q "Permission denied"
86-
exit $?
87-
fi
88-
/work/${{range.key}} --version
89-
9056
update:
9157
enabled: true
9258
ignore-regex-patterns:

0 commit comments

Comments
 (0)