mirror of
https://github.com/siderolabs/extensions.git
synced 2025-08-06 06:17:11 +02:00
Move modules, firmware and libraries to accommodate usrmerged rootfs Only use network where needed via new bldr, pre-download Go dependencies in prepare step, improve Go cache Bump xen-guest-agent to make it build with current Alpine Rust Signed-off-by: Dmitry Sharshakov <dmitry.sharshakov@siderolabs.com>
30 lines
593 B
YAML
30 lines
593 B
YAML
name: nvidia-persistenced-wrapper
|
|
variant: scratch
|
|
shell: /bin/bash
|
|
dependencies:
|
|
- stage: base
|
|
steps:
|
|
- env:
|
|
GOPATH: /tmp/go
|
|
- cachePaths:
|
|
- /.cache/go-build
|
|
- /tmp/go/pkg
|
|
- network: default
|
|
prepare:
|
|
- |
|
|
cp -r /pkg/* .
|
|
- |
|
|
go mod download
|
|
- network: none
|
|
build:
|
|
- |
|
|
CGO_ENABLED=0 go build -o nvidia-persistenced-wrapper main.go
|
|
install:
|
|
- |
|
|
mkdir -p /rootfs/usr/local/bin
|
|
|
|
cp nvidia-persistenced-wrapper /rootfs/usr/local/bin/nvidia-persistenced-wrapper
|
|
finalize:
|
|
- from: /rootfs
|
|
to: /rootfs
|