uphy-test/Containerfile
2025-04-01 19:44:43 +00:00

34 lines
1.4 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 excludepkgs=PackageKit,PackageKit-command-not-found,rootfiles,firefox
dnf config-manager setopt assumeyes=True
dnf config-manager setopt install_weak_deps=False
dnf install @sway-desktop-environment @container-management
dnf install go wireguard-tools neovim age aria2 android-tools croc p7zip p7zip-plugins rclone restic sshuttle tuned upower
dnf remove @guest-desktop-agents
dnf remove vim-data vim-minimal qemu-user-static qemu-user-static-* default-editor foot abrt-desktop dunst crontabs cronie chrony WALinuxAgent-udev NetworkManager-cloud-setup
dnf autoremove && 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