Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
Anders da Silva Rytter Hansen
147a1bd706 add alsa-sof-firmware
Some checks failed
os / build (push) Has been cancelled
2025-12-03 15:24:14 -03:00
Anders da Silva Rytter Hansen
672eb3820a oops dont install kernel-devel-matched 2025-12-03 14:36:06 -03:00
Anders da Silva Rytter Hansen
663ecaeb77 remove default kernel 2025-12-03 14:19:39 -03:00
Anders da Silva Rytter Hansen
e0efbbc82c test if audio works on cachyos kernel 6.17 2025-12-03 14:13:49 -03:00

View file

@ -1,6 +1,9 @@
FROM quay.io/almalinuxorg/atomic-desktop-kde:10 FROM quay.io/almalinuxorg/atomic-desktop-kde:10
ARG CACHEBUST=1 ARG CACHEBUST=1
ARG KERNEL=kernel-cachyos
ENV KERNEL=${KERNEL}
# Get list of kernels from my repo. If the list has been updated, then the image will be rebuilt. If it hasn't been updated, then caching of the previous build will be used. # Get list of kernels from my repo. If the list has been updated, then the image will be rebuilt. If it hasn't been updated, then caching of the previous build will be used.
ADD "https://copr.fedorainfracloud.org/api_3/build/list?ownername=andersrh&projectname=my-ostree-os&packagename=kernel" /tmp/builds.txt ADD "https://copr.fedorainfracloud.org/api_3/build/list?ownername=andersrh&projectname=my-ostree-os&packagename=kernel" /tmp/builds.txt
@ -12,15 +15,11 @@ RUN /tmp/set_next_version.sh
COPY repo/*.repo /etc/yum.repos.d/ COPY repo/*.repo /etc/yum.repos.d/
RUN dnf config-manager --add-repo=https://negativo17.org/repos/epel-nvidia.repo -y RUN dnf config-manager --add-repo=https://negativo17.org/repos/epel-nvidia.repo -y
RUN dnf install -y $( \ RUN dnf copr enable bieszczaders/kernel-cachyos -y
dnf list --available kernel\* --disablerepo='*' --enablerepo=my-ostree-os-rhel-epel 2>/dev/null \
| grep 'andersdsrhcustom' \ RUN dnf install -y ${KERNEL} ${KERNEL}-devel-matched
| awk '{print $1 "-" $2}' \
| sort -V \ RUN dnf remove -y kernel kernel-core kernel-modules kernel-modules-core kernel-modules-extra kernel-tools kernel-tools-libs
| tail -1 \
| sed 's/\.src//g' \
| sed 's/\.x86_64//g' \
)
RUN dnf install --nogpgcheck -y https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-$(rpm -E %rhel).noarch.rpm RUN dnf install --nogpgcheck -y https://mirrors.rpmfusion.org/free/el/rpmfusion-free-release-$(rpm -E %rhel).noarch.rpm https://mirrors.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-$(rpm -E %rhel).noarch.rpm
@ -28,8 +27,8 @@ RUN dnf install -y fish distrobox nvtop intel-media-driver libva-intel-driver
RUN dnf install -y https://github.com/TheAssassin/AppImageLauncher/releases/download/v2.2.0/appimagelauncher-2.2.0-travis995.0f91801.x86_64.rpm RUN dnf install -y https://github.com/TheAssassin/AppImageLauncher/releases/download/v2.2.0/appimagelauncher-2.2.0-travis995.0f91801.x86_64.rpm
# Install Negativo17 Nvidia driver # Install Negativo17 Nvidia driver
RUN dnf install -y dkms-nvidia nvidia-driver nvidia-persistenced opencl-filesystem libva-nvidia-driver kernel-devel-matched RUN dnf install -y dkms-nvidia nvidia-driver nvidia-persistenced opencl-filesystem libva-nvidia-driver
RUN dkms install nvidia/$(ls /usr/src/ | grep nvidia- | cut -d- -f2-) -k $(rpm -q --queryformat "%{VERSION}-%{RELEASE}.%{ARCH}\n" kernel) RUN dkms install nvidia/$(ls /usr/src/ | grep nvidia- | cut -d- -f2-) -k $(rpm -q --queryformat "%{VERSION}-%{RELEASE}.%{ARCH}\n" kernel-cachyos)
# Remove plocate to avoid updatedb going crazy with scanning the file system once a day # Remove plocate to avoid updatedb going crazy with scanning the file system once a day
RUN dnf remove -y plocate RUN dnf remove -y plocate
@ -48,6 +47,8 @@ RUN rm -f /etc/chromium/chromium.conf
# Add rule to SELinux allowing modules to be loaded into custom kernel # Add rule to SELinux allowing modules to be loaded into custom kernel
RUN setsebool -P domain_kernel_load_modules on RUN setsebool -P domain_kernel_load_modules on
RUN dnf install -y alsa-sof-firmware
COPY etc /etc COPY etc /etc
COPY usr /usr COPY usr /usr