uphy-test/Containerfile
2025-03-31 17:53:45 +00:00

35 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 config-manager setopt install_weak_deps=False
dnf install --assumeyes @sway-desktop-environment
dnf install --assumeyes go
dnf clean all
QUALIFIED_KERNEL="$(dnf repoquery --installed --queryformat='%{evr}.%{arch}' kernel)"
dracut --no-hostonly --kver "$QUALIFIED_KERNEL" --reproducible --verbose --add ostree --zstd --force "/lib/modules/$QUALIFIED_KERNEL/initramfs.img"
rm --force --recursive /tmp/* /var/*
mkdir --parents /var/tmp
chmod --recursive 1777 /var/tmp
ostree container commit
bootc container lint
EOF
#enable desired units
#RUN systemctl enable lm_sensors sysstat tuned fstrim.timer podman.socket podman-auto-update.timer cockpit.socket