Skip to content

fix: build libnvidia-container without network access#49

Open
kvinwang wants to merge 1 commit intomainfrom
fix/libnvidia-container-offline-build
Open

fix: build libnvidia-container without network access#49
kvinwang wants to merge 1 commit intomainfrom
fix/libnvidia-container-offline-build

Conversation

@kvinwang
Copy link
Collaborator

@kvinwang kvinwang commented Mar 18, 2026

Summary

  • Add GOFLAGS=-mod=vendor to use the existing vendor directory in the source tree, eliminating Go module downloads during do_compile
  • Fix nvidia-modprobe version mismatch: recipe fetched 550.40.07 via SRC_URI but the source Makefile expected 550.54.14 (the old do_compile[network]=1 masked this by re-downloading at build time)
  • Apply nvidia-modprobe.patch in do_configure since we now skip the Makefile's curl-based download rule
  • Remove do_compile[network] = "1"

Test plan

  • bitbake libnvidia-container builds successfully without network in do_compile
  • Full build.sh guest image build passes

Partially addresses #46 (libnvidia-container only; dstack-guest and dstack-sysbox are not feasible to fully offline, see comment on the issue)

- Add GOFLAGS=-mod=vendor to use the existing vendor directory in the
  source tree, eliminating Go module downloads during do_compile
- Fix nvidia-modprobe version mismatch: recipe fetched 550.40.07 via
  SRC_URI but the source Makefile expected 550.54.14. The old
  do_compile[network]=1 masked this by re-downloading at build time
- Apply nvidia-modprobe.patch in do_configure since we now skip the
  Makefile's curl-based download rule that previously applied it
- Remove do_compile[network] = "1"

Closes: #46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant