talos-extensions/nvidia-gpu/nvidia-container-toolkit/nvidia-container-runtime-wrapper/pkg.yaml
Noel Georgi d4d42e52d9
feat: use wolfi as base for nvidia
Use wolfi base as toolchain for NVIDIA build.
This removes a lot of hacks and patches we maintain.

Fixes: #171
Fixes: https://github.com/siderolabs/pkgs/issues/720

Signed-off-by: Noel Georgi <git@frezbo.dev>
2023-08-02 21:36:00 +05:30

22 lines
481 B
YAML

name: nvidia-container-runtime-wrapper
variant: scratch
shell: /toolchain/bin/bash
dependencies:
- stage: base
steps:
- build:
- |
export PATH=${PATH}:${TOOLCHAIN}/go/bin
cp -r /pkg/* .
CGO_ENABLED=0 go build -o nvidia-container-runtime-wrapper main.go
install:
- |
mkdir -p /rootfs/usr/local/bin
cp nvidia-container-runtime-wrapper /rootfs/usr/local/bin/nvidia-container-runtime-wrapper
finalize:
- from: /rootfs
to: /rootfs