mirror of
https://github.com/ManInDark/bootc-image.git
synced 2026-01-20 22:44:28 +01:00
FIX: nvidia driver
This commit is contained in:
@@ -14,4 +14,11 @@ RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
|
|||||||
--mount=type=tmpfs,dst=/tmp \
|
--mount=type=tmpfs,dst=/tmp \
|
||||||
/ctx/build.sh
|
/ctx/build.sh
|
||||||
|
|
||||||
|
RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
|
||||||
|
--mount=type=bind,from=nvidia,source=/,target=/nvidia \
|
||||||
|
--mount=type=cache,dst=/var/cache \
|
||||||
|
--mount=type=cache,dst=/var/log \
|
||||||
|
--mount=type=tmpfs,dst=/tmp \
|
||||||
|
/ctx/nvidia.sh
|
||||||
|
|
||||||
RUN bootc container lint
|
RUN bootc container lint
|
||||||
|
|||||||
@@ -21,20 +21,3 @@ curl -fsSLo /etc/yum.repos.d/vscode.repo https://packages.microsoft.com/yumrepos
|
|||||||
rpm-ostree install code
|
rpm-ostree install code
|
||||||
rm /etc/yum.repos.d/vscode.repo
|
rm /etc/yum.repos.d/vscode.repo
|
||||||
|
|
||||||
dnf5 install -y https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \
|
|
||||||
https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
|
|
||||||
dnf5 install -y --allowerasing ffmpeg x265-libs
|
|
||||||
|
|
||||||
# https://rpmfusion.org/Howto/NVIDIA
|
|
||||||
# https://www.tecmint.com/install-nvidia-drivers-in-linux
|
|
||||||
# https://github.com/ublue-os/akmods
|
|
||||||
# https://github.com/Comprehensive-Wall28/Nvidia-Fedora-Guide
|
|
||||||
# following ublue-os nvidia installation
|
|
||||||
dnf5 install -y xorg-x11-drv-nvidia-cuda # xorg-x11-drv-nvidia
|
|
||||||
|
|
||||||
dnf5 install -y \
|
|
||||||
/nvidia/rpms/ublue-os/ublue-os-nvidia*.rpm \
|
|
||||||
/nvidia/rpms/kmods/kmod-nvidia*.rpm \
|
|
||||||
|
|
||||||
dnf5 remove -y rpmfusion-free-release rpmfusion-nonfree-release
|
|
||||||
dnf5 clean all
|
|
||||||
|
|||||||
13
build_files/nvidia.sh
Executable file
13
build_files/nvidia.sh
Executable file
@@ -0,0 +1,13 @@
|
|||||||
|
rpm-ostree install -y rpmdevtools akmods
|
||||||
|
rpm-ostree install -y https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \
|
||||||
|
https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
|
||||||
|
rpm-ostree install -y ffmpeg x265-libs
|
||||||
|
|
||||||
|
# https://rpmfusion.org/Howto/NVIDIA
|
||||||
|
# https://www.tecmint.com/install-nvidia-drivers-in-linux
|
||||||
|
# https://github.com/ublue-os/akmods
|
||||||
|
# https://github.com/Comprehensive-Wall28/Nvidia-Fedora-Guide
|
||||||
|
# following Nvidia-Fedora-Guide installation
|
||||||
|
rpm-ostree install -y akmod-nvidia xorg-x11-drv-nvidia-cuda # xorg-x11-drv-nvidia
|
||||||
|
|
||||||
|
dnf5 clean all
|
||||||
Reference in New Issue
Block a user