uphy-test/Containerfile

33 lines
1.2 KiB
Text
Raw Normal View History

2025-03-29 19:50:14 +00:00
FROM quay.io/fedora/fedora-bootc:41
2024-12-29 11:53:10 +00:00
#include unit files and containers
2025-03-30 13:48:08 +00:00
ADD system_files/shared/etc etc
2024-12-29 11:53:10 +00:00
#ADD usr usr
#add additional software
2025-03-21 23:27:17 +00:00
#RUN dnf install -y cockpit cockpit-podman cockpit-storaged cockpit-ws git lm_sensors sysstat tuned vim-enhanced bash-completion && dnf clean all
2025-03-30 13:48:08 +00:00
RUN <<EOF
set -ouex pipefail
2025-03-30 14:02:46 +00:00
dnf install --assumeyes 'dnf5-command(config-manager)'
dnf config-manager setopt exclude=PackageKit,PackageKit-command-not-found,rootfiles,firefox
2025-03-30 13:48:08 +00:00
2025-03-30 14:02:46 +00:00
dnf install --assumeyes @sway-desktop-environment
2025-03-30 13:48:08 +00:00
dnf install --assumeyes go
2025-03-29 22:49:12 +00:00
dnf clean all
2024-12-29 11:53:10 +00:00
2025-03-30 13:48:08 +00:00
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
2024-12-29 11:53:10 +00:00
#enable desired units
2025-03-21 23:27:17 +00:00
#RUN systemctl enable lm_sensors sysstat tuned fstrim.timer podman.socket podman-auto-update.timer cockpit.socket
2024-12-29 11:53:10 +00:00
2025-03-30 13:48:08 +00:00
RUN rm --force --recursive /tmp/* /var/* && \
mkdir --parents /var/tmp && chmod --recursive 1777 /var/tmp && \
2025-03-29 20:21:34 +00:00
ostree container commit && \
2025-03-30 13:48:08 +00:00
bootc container lint || true