Change multimedia to rpmfusion and isolate rpmfusion to script

This commit is contained in:
2025-10-23 19:41:40 -04:00
parent cf3d26361d
commit 2c373d76d5
5 changed files with 10 additions and 16 deletions

View File

@@ -32,12 +32,7 @@ COPY ./cosign.pub /etc/pki/containers/hydros.pub
RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
--mount=type=cache,dst=/var/cache/ \
--mount=type=tmpfs,dst=/tmp \
/ctx/dnfstart.sh
RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
--mount=type=cache,dst=/var/cache/ \
--mount=type=tmpfs,dst=/tmp \
/ctx/dnf/multimedia.sh
/ctx/dnf/rpmfusion.sh
RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
--mount=type=cache,dst=/var/cache/ \
@@ -92,4 +87,4 @@ RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
### LINTING
## Verify final image and contents are correct.
RUN bootc container lint
RUN bootc container lint

View File

@@ -5,8 +5,6 @@ set -ouex pipefail
### Cleanup
dnf5 clean all
rm -f /etc/yum.repos.d/rpmfusion-*\.repo
rm -rf /usr/etc
rm -rf /var/lib/dnf

View File

@@ -22,7 +22,6 @@ dnf5 -y install \
btop \
zsh \
zoxide \
steam \
gamescope \
mangohud

View File

@@ -2,6 +2,9 @@
set -ouex pipefail
# Enable rpm fusion free and nonfree
dnf5 -y 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
# switch to full ffmpeg
dnf5 -y swap ffmpeg-free ffmpeg --allowerasing
@@ -13,6 +16,11 @@ dnf5 -y install \
gstreamer1-plugins-bad-free-extras \
gstreamer1-vaapi
# install steam
dnf5 -y install steam
# Hardware codec with amd
dnf5 -y swap mesa-va-drivers mesa-va-drivers-freeworld
dnf5 -y swap mesa-vdpau-drivers mesa-vdpau-drivers-freeworld
rm -f /etc/yum.repos.d/rpmfusion-*\.repo

View File

@@ -1,6 +0,0 @@
#!/bin/bash
set -ouex pipefail
# Enable rpm fusion free and nonfree
dnf5 -y 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