mirror of
https://github.com/games-on-whales/gow.git
synced 2026-10-15 21:02:02 +00:00
[PR #9] [MERGED] Add a script to automatically install the Nvidia Xorg driver if possible #106
Labels
No labels
bug
enhancement
enhancement
github_actions
good first issue
help wanted
help wanted
invalid
needs testers
pull-request
question
x11-images
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
games-on-whales/gow#106
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/games-on-whales/gow/pull/9
Author: @zb140
Created: 6/23/2021
Status: ✅ Merged
Merged: 6/24/2021
Merged by: @ABeltramo
Base:
master← Head:auto-x-driver📝 Commits (2)
2d17cefAdd a script to automatically install the Nvidia Xorg driver if possible7d20803Refactor the nvidia driver script to allow caching, and to clarify how it works a bit.📊 Changes
6 files changed (+225 additions, -13 deletions)
View changed files
📝
.dockerignore(+2 -1)📝
README.md(+77 -11)➕
configs/xorg-nvidia.conf(+11 -0)➕
ensure-nvidia-xorg-driver.sh(+126 -0)📝
gpu.Dockerfile(+2 -0)📝
startup-gpu.sh(+7 -1)📄 Description
This is one possible way to do this. What do you think?
If you launch the container in the
nvidia-dockerruntime, the startup process will try to ensure you have an appropriate Xorg driver installed. It will look for one in/usr/lib/x86_64-linux-gnu/nvidia/xorg(which is where the Ubuntu package installs the driver), and it will look in/nvidia/xorg(where you can use Docker to map in your host's driver, or another specific version).If it doesn't find one in one of those locations, it tries to identify an Ubuntu package with the same exact version as the host's driver. If it can find such a package, it installs it. If it can't, it prints a failure message. It will still attempt to launch Xorg in this case, but it warns that it may fail.
If you want to skip all this and just assume that the driver will be there, you can set the environment variable
NVIDIA_SKIP_DRIVER_CHECKto1.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.