feat: refactor and cleanup

This commit is contained in:
Seraphim Strub 2025-03-30 13:48:08 +00:00
parent aacae8140a
commit ab3cc02f3b
2 changed files with 19 additions and 6 deletions

View file

@ -1,19 +1,32 @@
FROM quay.io/fedora/fedora-bootc:41 FROM quay.io/fedora/fedora-bootc:41
#include unit files and containers #include unit files and containers
ADD etc etc ADD system_files/shared/etc etc
#ADD usr usr #ADD usr usr
#add additional software #add additional software
#RUN dnf install -y cockpit cockpit-podman cockpit-storaged cockpit-ws git lm_sensors sysstat tuned vim-enhanced bash-completion && dnf clean all #RUN dnf install -y cockpit cockpit-podman cockpit-storaged cockpit-ws git lm_sensors sysstat tuned vim-enhanced bash-completion && dnf clean all
RUN dnf group install -y swaywm && \ RUN <<EOF
dnf install -y go && \ set -ouex pipefail
dnf config-manager --save \
--setopt=exclude=PackageKit,PackageKit-command-not-found,rootfiles,firefox
dnf install --assumeyes @"Sway Desktop"
dnf install --assumeyes go
dnf clean all dnf clean all
QUALIFIED_KERNEL="$(rpm --query --all | grep --perl-regexp 'kernel-(\d+\.\d+\.\d+)' | sed --regexp-extended 's/kernel-//')"
dracut --no-hostonly --kver "$QUALIFIED_KERNEL" --reproducible --verbose --add ostree --force "/lib/modules/$QUALIFIED_KERNEL/initramfs.img"
EOF
#enable desired units #enable desired units
#RUN systemctl enable lm_sensors sysstat tuned fstrim.timer podman.socket podman-auto-update.timer cockpit.socket #RUN systemctl enable lm_sensors sysstat tuned fstrim.timer podman.socket podman-auto-update.timer cockpit.socket
RUN rm -rf /tmp/* /var/* && \ RUN rm --force --recursive /tmp/* /var/* && \
mkdir -p /var/tmp && chmod -R 1777 /var/tmp && \ mkdir --parents /var/tmp && chmod --recursive 1777 /var/tmp && \
ostree container commit && \ ostree container commit && \
bootc container lint || true bootc container lint || true