This repository has been archived by the owner on May 13, 2023. It is now read-only.
forked from ublue-os/base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Containerfile
46 lines (38 loc) · 1.96 KB
/
Containerfile
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
ARG FEDORA_MAJOR_VERSION=37
FROM registry.hub.docker.com/library/fedora:${FEDORA_MAJOR_VERSION} AS rpm_builder
COPY usr/lib/systemd/system/openrgb.service /usr/lib/systemd/system/openrgb.service
RUN yum -y install ruby rpm-build squashfs-tools
RUN gem install fpm
RUN fpm \
-s dir -t rpm \
--name openrgb-service \
--version 1 \
--architecture all \
--depends openrgb \
--depends systemd \
--description "Adds the required service file to systemd for OpenRGB to run as daemon" \
/usr/lib/systemd/system/openrgb.service=/usr/lib/systemd/system/openrgb.service
FROM ghcr.io/ublue-os/kinoite-nvidia:${FEDORA_MAJOR_VERSION} AS system_image
ARG FEDORA_MAJOR_VERSION
# Copy the built RPM from rpm_builder
COPY --from=rpm_builder /openrgb-service-1-1.noarch.rpm /tmp/openrgb-service/openrgb-service-1-1.noarch.rpm
COPY etc /etc
COPY usr/lib/systemd/system/openrgb.service /usr/lib/systemd/system/openrgb.service
# Copy the first run zenety script
COPY ublue-firstboot /usr/bin
RUN echo "INSTALLING BASE SYSTEM ----------------------------------------------" && \
rpm-ostree override remove toolbox firefox firefox-langpacks && \
rpm-ostree install zsh neofetch distrobox zenity && \
rpm-ostree install kernel-devel kernel-devel-matched && \
sed -i 's/#AutomaticUpdatePolicy.*/AutomaticUpdatePolicy=stage/' /etc/rpm-ostreed.conf && \
systemctl enable rpm-ostreed-automatic.timer && \
echo "INSTALLING INTEL MEDIA DRIVERS --------------------------------------" && \
rpm-ostree install libva-intel-driver intel-media-driver && \
echo "INSTALLING KDE ADD-ONS ----------------------------------------------" && \
rpm-ostree install bismuth && \
echo "INSTALLING OPENRGB --------------------------------------------------" && \
rpm-ostree install openrgb && \
rpm-ostree install /tmp/openrgb-service/openrgb-service-1-1.noarch.rpm && \
rm -rf /tmp/openrgb-service && \
systemctl enable openrgb && \
ostree container commit