uphy-test/Containerfile

36 lines
1.5 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)'
2025-04-04 09:45:33 +00:00
dnf config-manager setopt excludepkgs=PackageKit,PackageKit-command-not-found,PackageKit-gstreamer-plugin,rootfiles,firefox,sway-config-fedora,crontabs
2025-03-31 20:38:02 +00:00
dnf config-manager setopt assumeyes=True
2025-03-31 19:43:11 +00:00
dnf config-manager setopt install_weak_deps=False
2025-03-30 13:48:08 +00:00
2025-04-01 22:31:19 +00:00
dnf install --quiet @sway-desktop-environment
dnf group install --quiet --with-optional container-management swaywm-extended
dnf install --quiet go wireguard-tools neovim age aria2 android-tools croc p7zip p7zip-plugins rclone restic sshuttle tuned upower
2025-03-30 13:48:08 +00:00
2025-04-01 22:31:19 +00:00
dnf remove --quiet @guest-desktop-agents
2025-04-04 09:45:33 +00:00
dnf remove --quiet vim-data vim-minimal default-editor foot dunst WALinuxAgent-udev NetworkManager-cloud-setup chrony
2025-03-30 13:48:08 +00:00
2025-03-31 20:38:02 +00:00
dnf autoremove && dnf clean all
2024-12-29 11:53:10 +00:00
2025-03-31 17:53:45 +00:00
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"
2025-03-30 13:48:08 +00:00
2025-03-31 17:53:45 +00:00
rm --force --recursive /tmp/* /var/*
mkdir --parents /var/tmp
chmod --recursive 1777 /var/tmp
ostree container commit
bootc container lint
2025-03-30 13:48:08 +00:00
EOF