-
Notifications
You must be signed in to change notification settings - Fork 0
/
Containerfile.test
28 lines (22 loc) · 1.04 KB
/
Containerfile.test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
ARG FEDORA_VERSION=40
ARG KMOD_NAME=nvidia
ARG KMOD_IMAGE=${KMOD_NAME}-kmod
ARG KMOD_TAG=latest
FROM ${KMOD_IMAGE}:${KMOD_TAG} as kmod-cache
FROM quay.io/fedora-ostree-desktops/base:${FEDORA_VERSION}
RUN 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
RUN rpm-ostree install \
rpmfusion-nonfree-release \
rpmfusion-free-release \
--uninstall=rpmfusion-free-release-$(rpm -E %fedora)-1.noarch \
--uninstall=rpmfusion-nonfree-release-$(rpm -E %fedora)-1.noarch
RUN sed -i 's@enabled=0@enabled=1@g' /etc/yum.repos.d/fedora-{updates-archive,cisco-openh264}.repo
COPY --from=kmod-cache /rpms /tmp/akmods/rpms
COPY --from=kmod-cache /info /tmp/akmods/info
COPY --from=kmod-cache /scripts /tmp/akmods/scripts
RUN chmod +x /tmp/akmods/scripts/*.sh && \
/tmp/akmods/scripts/00-preinstall.sh && \
/tmp/akmods/scripts/01-install.sh && \
/tmp/akmods/scripts/02-postinstall.sh