mirror of
https://github.com/siderolabs/extensions.git
synced 2025-08-13 01:37:16 +02:00
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>
22 lines
481 B
YAML
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
|