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-03-31 21:18:24 +00:00
|
|
|
dnf config-manager setopt excludepkgs=PackageKit,PackageKit-command-not-found,rootfiles,firefox
|
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-03-31 22:03:45 +00:00
|
|
|
dnf install @sway-desktop-environment @container-management
|
|
|
|
dnf install go wireguard 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-03-31 22:03:45 +00:00
|
|
|
dnf remove @guest-desktop-agents @abrt-desktop @cloud-management
|
|
|
|
dnf remove vim-data vim-minimal qemu-user-static default-editor foot
|
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
|