aurora/build_scripts/dx/00-dx.sh

100 lines
2.1 KiB
Bash
Raw Normal View History

#!/usr/bin/bash
echo "::group:: ===$(basename "$0")==="
set -ouex pipefail
# Apply IP Forwarding before installing Docker to prevent messing with LXC networking
sysctl -p
chore: refactor package installation and handling during build time (#1142) * feat: package.json removal start * override-install update * cleanup script * dx packages * dx cleanup * shared build-base * shared build-dx * copr-helpers script * validate repos script * Containerfile change, remove packages.json * remove akmods script * fw-fanctrl comes from staging * remove fw-fanctrl from fedora packages too * Revert "remove akmods script" This reverts commit 6c2c120e99b9e4579c0542c7b91afdfaeffc9b9d. * dunno what happened here * fix perms * missing \ * missing end if * and another one :( * install uupd for all * starship aint rpm anymore * correct naming for the validate script * remove the extra mention of beta script * fix dx-packages file * remove fonts * libvirt-workarounds was missing * update tests * add kvmfr back to dx * retry * Revert "retry" This reverts commit a2a3ac5f5462ecdf81bdc4e35f23f16b02a60703. * Revert "add kvmfr back to dx" This reverts commit bebea500a2f3d6f8c04a4849ae714aae4d7fb3ef. * remove the kvmfr ujust recipe * add packages for incus,incus-agent and lxc from fedora * remove these too * remove make Co-authored-by: renner <80410025+renner0e@users.noreply.github.com> * Update build_files/base/04-packages.sh Co-authored-by: renner <80410025+renner0e@users.noreply.github.com> * Update build_files/dx/03-packages-dx.sh Co-authored-by: renner <80410025+renner0e@users.noreply.github.com> * Update build_files/dx/03-packages-dx.sh Co-authored-by: renner <80410025+renner0e@users.noreply.github.com> * remove the git packages * Update build_files/dx/09-cleanup-dx.sh Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * add instructions for package pinning * i'm sure i added this... * fix: use fixed fwupd package again --------- Co-authored-by: renner <80410025+renner0e@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: renner <renner0@posteo.de>
2025-10-24 15:51:51 -08:00
# DX packages from Fedora repos - common to all versions
FEDORA_PACKAGES=(
android-tools
bcc
bcvk
chore: refactor package installation and handling during build time (#1142) * feat: package.json removal start * override-install update * cleanup script * dx packages * dx cleanup * shared build-base * shared build-dx * copr-helpers script * validate repos script * Containerfile change, remove packages.json * remove akmods script * fw-fanctrl comes from staging * remove fw-fanctrl from fedora packages too * Revert "remove akmods script" This reverts commit 6c2c120e99b9e4579c0542c7b91afdfaeffc9b9d. * dunno what happened here * fix perms * missing \ * missing end if * and another one :( * install uupd for all * starship aint rpm anymore * correct naming for the validate script * remove the extra mention of beta script * fix dx-packages file * remove fonts * libvirt-workarounds was missing * update tests * add kvmfr back to dx * retry * Revert "retry" This reverts commit a2a3ac5f5462ecdf81bdc4e35f23f16b02a60703. * Revert "add kvmfr back to dx" This reverts commit bebea500a2f3d6f8c04a4849ae714aae4d7fb3ef. * remove the kvmfr ujust recipe * add packages for incus,incus-agent and lxc from fedora * remove these too * remove make Co-authored-by: renner <80410025+renner0e@users.noreply.github.com> * Update build_files/base/04-packages.sh Co-authored-by: renner <80410025+renner0e@users.noreply.github.com> * Update build_files/dx/03-packages-dx.sh Co-authored-by: renner <80410025+renner0e@users.noreply.github.com> * Update build_files/dx/03-packages-dx.sh Co-authored-by: renner <80410025+renner0e@users.noreply.github.com> * remove the git packages * Update build_files/dx/09-cleanup-dx.sh Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * add instructions for package pinning * i'm sure i added this... * fix: use fixed fwupd package again --------- Co-authored-by: renner <80410025+renner0e@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: renner <renner0@posteo.de>
2025-10-24 15:51:51 -08:00
bpftop
bpftrace
cockpit-bridge
cockpit-machines
cockpit-networkmanager
cockpit-ostree
cockpit-podman
cockpit-selinux
cockpit-storaged
cockpit-system
edk2-ovmf
flatpak-builder
incus
incus-agent
iotop
libvirt
libvirt-nss
lxc
nicstat
numactl
osbuild-selinux
p7zip
p7zip-plugins
podman-compose
podman-machine
podman-tui
qemu
qemu-char-spice
qemu-device-display-virtio-gpu
qemu-device-display-virtio-vga
qemu-device-usb-redirect
qemu-img
qemu-system-x86-core
qemu-user-binfmt
qemu-user-static
sysprof
trace-cmd
udica
virt-manager
virt-v2v
virt-viewer
ydotool
)
# rocm doesn't work well on nvidia
if [[ ! "${IMAGE_NAME}" =~ nvidia ]]; then
FEDORA_PACKAGES+=("rocm-hip" "rocm-opencl" "rocm-smi")
fi
dnf5 -y install "${FEDORA_PACKAGES[@]}"
# We could use Fedora's moby packages, these are "official"
DOCKER_CE=(
containerd.io
docker-buildx-plugin
docker-ce
docker-ce-cli
docker-compose-plugin
)
chore: refactor package installation and handling during build time (#1142) * feat: package.json removal start * override-install update * cleanup script * dx packages * dx cleanup * shared build-base * shared build-dx * copr-helpers script * validate repos script * Containerfile change, remove packages.json * remove akmods script * fw-fanctrl comes from staging * remove fw-fanctrl from fedora packages too * Revert "remove akmods script" This reverts commit 6c2c120e99b9e4579c0542c7b91afdfaeffc9b9d. * dunno what happened here * fix perms * missing \ * missing end if * and another one :( * install uupd for all * starship aint rpm anymore * correct naming for the validate script * remove the extra mention of beta script * fix dx-packages file * remove fonts * libvirt-workarounds was missing * update tests * add kvmfr back to dx * retry * Revert "retry" This reverts commit a2a3ac5f5462ecdf81bdc4e35f23f16b02a60703. * Revert "add kvmfr back to dx" This reverts commit bebea500a2f3d6f8c04a4849ae714aae4d7fb3ef. * remove the kvmfr ujust recipe * add packages for incus,incus-agent and lxc from fedora * remove these too * remove make Co-authored-by: renner <80410025+renner0e@users.noreply.github.com> * Update build_files/base/04-packages.sh Co-authored-by: renner <80410025+renner0e@users.noreply.github.com> * Update build_files/dx/03-packages-dx.sh Co-authored-by: renner <80410025+renner0e@users.noreply.github.com> * Update build_files/dx/03-packages-dx.sh Co-authored-by: renner <80410025+renner0e@users.noreply.github.com> * remove the git packages * Update build_files/dx/09-cleanup-dx.sh Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * add instructions for package pinning * i'm sure i added this... * fix: use fixed fwupd package again --------- Co-authored-by: renner <80410025+renner0e@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: renner <renner0@posteo.de>
2025-10-24 15:51:51 -08:00
COPR_PREFIX="copr:copr.fedorainfracloud.org"
# shellcheck disable=SC1010
dnf do -y \
--action install --from-repo=code code \
--action install --from-repo=docker-ce-stable "${DOCKER_CE[@]}" \
--action install --from-repo="${COPR_PREFIX}:karmab:kcli" kcli
dnf -y install --from-repo="${COPR_PREFIX}:ublue-os:packages" ublue-os-libvirt-workarounds
chore: refactor package installation and handling during build time (#1142) * feat: package.json removal start * override-install update * cleanup script * dx packages * dx cleanup * shared build-base * shared build-dx * copr-helpers script * validate repos script * Containerfile change, remove packages.json * remove akmods script * fw-fanctrl comes from staging * remove fw-fanctrl from fedora packages too * Revert "remove akmods script" This reverts commit 6c2c120e99b9e4579c0542c7b91afdfaeffc9b9d. * dunno what happened here * fix perms * missing \ * missing end if * and another one :( * install uupd for all * starship aint rpm anymore * correct naming for the validate script * remove the extra mention of beta script * fix dx-packages file * remove fonts * libvirt-workarounds was missing * update tests * add kvmfr back to dx * retry * Revert "retry" This reverts commit a2a3ac5f5462ecdf81bdc4e35f23f16b02a60703. * Revert "add kvmfr back to dx" This reverts commit bebea500a2f3d6f8c04a4849ae714aae4d7fb3ef. * remove the kvmfr ujust recipe * add packages for incus,incus-agent and lxc from fedora * remove these too * remove make Co-authored-by: renner <80410025+renner0e@users.noreply.github.com> * Update build_files/base/04-packages.sh Co-authored-by: renner <80410025+renner0e@users.noreply.github.com> * Update build_files/dx/03-packages-dx.sh Co-authored-by: renner <80410025+renner0e@users.noreply.github.com> * Update build_files/dx/03-packages-dx.sh Co-authored-by: renner <80410025+renner0e@users.noreply.github.com> * remove the git packages * Update build_files/dx/09-cleanup-dx.sh Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Apply suggestion from @Copilot Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * add instructions for package pinning * i'm sure i added this... * fix: use fixed fwupd package again --------- Co-authored-by: renner <80410025+renner0e@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: renner <renner0@posteo.de>
2025-10-24 15:51:51 -08:00
rsync -rvK /ctx/system_files/dx/ /
# Load iptable_nat module for docker-in-docker.
# See:
# - https://github.com/ublue-os/bluefin/issues/2365
# - https://github.com/devcontainers/features/issues/1235
mkdir -p /etc/modules-load.d
tee /etc/modules-load.d/ip_tables.conf <<EOF
iptable_nat
EOF
# Branding Changes
echo "Variant=Developer Experience" >> /usr/share/kde-settings/kde-profile/default/xdg/kcm-about-distrorc
echo "::endgroup::"