Skip to content

Commit

Permalink
Disable unnecessary repos at the end of builds (#28)
Browse files Browse the repository at this point in the history
* feat: Add devel branch to pull request process

* feat: Add Kinoite base image support (#22)

* Re-enable updates-archive repo to fix kernel mismatches

* Add kinoite image to support matrix

* chore: add release bot and changelog generator (#19)

* docs: Add a goal/purpose to better explain what this does (#25)

* feat: disable unnecessary repos at the end of the container build (#27)

---------

Co-authored-by: Jorge O. Castro <[email protected]>
  • Loading branch information
joshua-stone and castrojo authored Feb 8, 2023
1 parent 2483c3d commit d84a54f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,16 @@ RUN KERNEL_VERSION="$(rpm -q kernel --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}
rpm-ostree install \
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 \
&& \
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/{fedora-{cisco-openh264,modular,updates-modular},rpmfusion-free{,-updates}}.repo \
&& \
rpm-ostree install \
xorg-x11-drv-${NVIDIA_PACKAGE_NAME}-{,cuda-,devel-,kmodsrc-,power-}${NVIDIA_FULL_VERSION} \
kernel-devel-${KERNEL_VERSION} \
"/tmp/akmods/${NVIDIA_PACKAGE_NAME}/kmod-${NVIDIA_PACKAGE_NAME}-${KERNEL_VERSION}-${NVIDIA_FULL_VERSION#*:}.rpm" \
/tmp/akmods-nvidia-key/rpmbuild/RPMS/noarch/akmods-nvidia-key-*.rpm \
&& \
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/rpmfusion-nonfree{,-updates}.repo \
&& \
ln -s /usr/bin/ld.bfd /etc/alternatives/ld && \
ln -s /etc/alternatives/ld /usr/bin/ld \
Expand Down

0 comments on commit d84a54f

Please sign in to comment.