Update Dockerfile
This commit is contained in:
parent
085fce07fb
commit
5be69b54a0
1 changed files with 6 additions and 3 deletions
|
|
@ -60,8 +60,7 @@ cd /tmp/gpu-screen-recorder-gtk && \
|
||||||
# enable automatic updates
|
# enable automatic updates
|
||||||
sed -i 's/#AutomaticUpdatePolicy.*/AutomaticUpdatePolicy=stage/' /etc/rpm-ostreed.conf && \
|
sed -i 's/#AutomaticUpdatePolicy.*/AutomaticUpdatePolicy=stage/' /etc/rpm-ostreed.conf && \
|
||||||
# change auto update interval
|
# change auto update interval
|
||||||
sed -i 's/OnUnitInactiveSec.*/OnUnitInactiveSec=1h\nOnCalendar=*-*-* 06:40:00\nPersistent=true/' /usr/lib/systemd/system/rpm-ostreed-automatic.timer && \
|
sed -i 's/OnUnitInactiveSec.*/OnUnitInactiveSec=1h\nOnCalendar=*-*-* 06:40:00\nPersistent=true/' /usr/lib/systemd/system/rpm-ostreed-automatic.timer
|
||||||
systemctl enable rpm-ostreed-automatic.timer
|
|
||||||
|
|
||||||
# Change ZRAM max to 16GB
|
# Change ZRAM max to 16GB
|
||||||
RUN sed -i 's/zram-size.*/zram-size = min(ram, 16384)/' /usr/lib/systemd/zram-generator.conf
|
RUN sed -i 's/zram-size.*/zram-size = min(ram, 16384)/' /usr/lib/systemd/zram-generator.conf
|
||||||
|
|
@ -75,7 +74,7 @@ ostree container commit
|
||||||
|
|
||||||
FROM builder AS builder2
|
FROM builder AS builder2
|
||||||
|
|
||||||
COPY --from=ghcr.io/ublue-os/akmods-nvidia:38-535 /rpms /tmp/akmods-rpms
|
COPY --from=ghcr.io/ublue-os/akmods-nvidia:38-535 /rpms/ublue-os-nvidia-addons-*.rpm /tmp/akmods-rpms
|
||||||
|
|
||||||
RUN rpm-ostree install \
|
RUN rpm-ostree install \
|
||||||
/tmp/akmods-rpms/ublue-os/ublue-os-nvidia-addons-*.rpm
|
/tmp/akmods-rpms/ublue-os/ublue-os-nvidia-addons-*.rpm
|
||||||
|
|
@ -89,6 +88,10 @@ RUN cd /etc/yum.repos.d/ && wget https://copr.fedorainfracloud.org/coprs/bieszcz
|
||||||
# add bore-sysctl and uksmd-lts
|
# add bore-sysctl and uksmd-lts
|
||||||
RUN rpm-ostree install bore-sysctl uksmd-lts
|
RUN rpm-ostree install bore-sysctl uksmd-lts
|
||||||
|
|
||||||
|
# enable systemd services
|
||||||
|
RUN systemctl enable rpm-ostreed-automatic.timer
|
||||||
|
RUN systemctl enable uksmd.service
|
||||||
|
|
||||||
COPY --from=akmods-builder /var/cache/akmods/*/* /tmp/nvidia
|
COPY --from=akmods-builder /var/cache/akmods/*/* /tmp/nvidia
|
||||||
|
|
||||||
RUN cd /etc/yum.repos.d/ && \
|
RUN cd /etc/yum.repos.d/ && \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue