Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐧 Add Debian ARM RPi flavor #1554

Merged
merged 2 commits into from
Jul 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions framework-profile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ flavors:
- kairos-toolchain
- systemd-base
- dracut-network-legacy
debian-arm-rpi:
- common-packages
- kairos-toolchain
- systemd-base
- dracut-network-legacy
ubuntu:
- common-packages
- kairos-toolchain
Expand Down
100 changes: 100 additions & 0 deletions images/Dockerfile.debian-arm-rpi
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# We can't use stable due to: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=962300
ARG BASE_IMAGE=debian:bookworm-slim

FROM $BASE_IMAGE

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y software-properties-common

RUN sed -i 's/^Components: main.*$/& non-free-firmware/' /etc/apt/sources.list.d/debian.sources

RUN apt-get update && apt-get install -y --no-install-recommends \
binutils \
conntrack \
console-setup \
coreutils \
cryptsetup \
curl \
debianutils \
dmraid \
dosfstools \
dracut \
dracut-live \
dracut-network \
e2fsprogs \
e2fsprogs-l10n \
efibootmgr \
ethtool \
firmware-linux-free \
fuse3 \
gawk \
gdisk \
gnupg \
gnupg1-l10n \
grub2-common \
grub-efi-arm64-bin \
grub-efi-arm64-signed \
haveged \
iproute2 \
iptables \
isc-dhcp-common \
jq \
krb5-locales \
libatm1 \
libglib2.0-data \
libgpm2 \
libldap-common \
libnss-systemd \
libpam-cap \
libsasl2-modules \
linux-image-arm64 \
lvm2 \
mdadm \
nano \
nbd-client \
ncurses-term \
neovim \
nfs-common \
nftables \
open-iscsi \
openssh-server \
open-vm-tools \
os-prober \
parted \
patch \
pigz \
pkg-config \
polkitd \
psmisc \
publicsuffix \
python3-pynvim \
raspi-firmware \
rsync \
shared-mime-info \
snapd \
squashfs-tools \
sudo \
systemd \
systemd-resolved \
systemd-sysv \
systemd-timesyncd \
tar \
xauth \
xclip \
xdg-user-dirs \
xxd \
xz-utils \
zerofree && apt-get clean && rm -rf /var/lib/apt/lists/*

RUN ln -s /usr/sbin/grub-install /usr/sbin/grub2-install
RUN ln -s /usr/bin/grub-editenv /usr/bin/grub2-editenv
RUN systemctl enable systemd-networkd
RUN systemctl enable ssh

# Fixup sudo perms
RUN chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo


# Clear cache
RUN rm -rf /var/cache/* && journalctl --vacuum-size=1K && rm /etc/machine-id && rm /var/lib/dbus/machine-id && rm /etc/hostname