uphy-test/Containerfile
2025-04-01 22:03:19 +00:00

35 lines
1.5 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,PackageKit-gstreamer-plugin,rootfiles,firefox,sway-config-fedora
dnf config-manager setopt assumeyes=True
dnf config-manager setopt install_weak_deps=False
dnf install @sway-desktop-environment
dnf group install --with-optional container-management swaywm-extended
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 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