uphy-test/Containerfile
Seraphim Strub 41c2dce027 fix: build
2025-03-30 14:02:46 +00:00

32 lines
1.2 KiB
Docker

FROM quay.io/fedora/fedora-bootc:41
#include unit files and containers
ADD system_files/shared/etc etc
#ADD usr usr
#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 <<EOF
set -ouex pipefail
dnf install --assumeyes 'dnf5-command(config-manager)'
dnf config-manager setopt exclude=PackageKit,PackageKit-command-not-found,rootfiles,firefox
dnf install --assumeyes @sway-desktop-environment
dnf install --assumeyes go
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
#RUN systemctl enable lm_sensors sysstat tuned fstrim.timer podman.socket podman-auto-update.timer cockpit.socket
RUN rm --force --recursive /tmp/* /var/* && \
mkdir --parents /var/tmp && chmod --recursive 1777 /var/tmp && \
ostree container commit && \
bootc container lint || true