-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐧 Add Ubuntu flavors for RPi (#1170)
* added initial Dockerfile for ubuntu-arm-rpi flavor Signed-off-by: Martin Schuessler <[email protected]> Signed-off-by: Mauro Morales <[email protected]> * added Dockerfiles for the other ubuntu arm rpi flavors Signed-off-by: Martin Schuessler <[email protected]> Signed-off-by: Mauro Morales <[email protected]> * added overlay files for ubuntu-arm-rpi Signed-off-by: Martin Schuessler <[email protected]> Signed-off-by: Mauro Morales <[email protected]> * propagate new flavor ubuntu-arm-rpi through repo Signed-off-by: Martin Schuessler <[email protected]> Signed-off-by: Mauro Morales <[email protected]> * propagate ubuntu-20-lts-arm-rpi and ubuntu-22-lts-arm-rpi through the repo Signed-off-by: Martin Schuessler <[email protected]> Signed-off-by: Mauro Morales <[email protected]> * ubuntu-20-lts-arm-rpi: use the correct firmware package Signed-off-by: Martin Schuessler <[email protected]> Signed-off-by: Mauro Morales <[email protected]> * use dracut-network-legacy-compat for all ubuntu lts flavors Signed-off-by: Martin Schuessler <[email protected]> Signed-off-by: Mauro Morales <[email protected]> * one package per line for rpi ubuntu dockerfiles Signed-off-by: Martin Schuessler <[email protected]> Signed-off-by: Mauro Morales <[email protected]> * some cosmetic changes on the rpi dockefiles Signed-off-by: Martin Schuessler <[email protected]> Signed-off-by: Mauro Morales <[email protected]> * removed unnecessary network interface files from dockerfile Signed-off-by: Martin Schuessler <[email protected]> Signed-off-by: Mauro Morales <[email protected]> * hadolint: ignore apt pinned version and missing no-install-recommend for now Signed-off-by: Martin Schuessler <[email protected]> Signed-off-by: Mauro Morales <[email protected]> * added explicit systemd-timesyncd to rpi dockerfiles Signed-off-by: Martin Schuessler <[email protected]> Signed-off-by: Mauro Morales <[email protected]> * removed more unneeded apt-get clean from dockerfiles Signed-off-by: Martin Schuessler <[email protected]> Signed-off-by: Mauro Morales <[email protected]> * minor name corrections and removing commented out stuff Signed-off-by: Martin Schuessler <[email protected]> Signed-off-by: Mauro Morales <[email protected]> * Change sizes for rpi ubuntu images Signed-off-by: Mauro Morales <[email protected]> * Lint Signed-off-by: Mauro Morales <[email protected]> * This was fixed on #821 Signed-off-by: Mauro Morales <[email protected]> * Keep use of cos instead of kairos in bootargs.cfg Signed-off-by: Mauro Morales <[email protected]> * Add ports to RPi Docker images Signed-off-by: Mauro Morales <[email protected]> * Force platform arm64 on all-arm target Signed-off-by: Mauro Morales <[email protected]> * Use model to generate the generic ubuntu arm image Signed-off-by: Mauro Morales <[email protected]> * lint and apply changes to other ubuntu versions Signed-off-by: Mauro Morales <[email protected]> * force platform and model for all-arm fix issues with ubuntu 20 lts arm rpi remove unnecessary dockerfile Signed-off-by: Mauro Morales <[email protected]> * Add missing reference in dockerfiles Signed-off-by: Mauro Morales <[email protected]> * Increment trivy timeout Signed-off-by: Mauro Morales <[email protected]> * Update packages for 20.04 Signed-off-by: Mauro Morales <[email protected]> * Remove dl3015 Signed-off-by: Mauro Morales <[email protected]> * Fix issue with ubuntu arm rpi overlay files Signed-off-by: Mauro Morales <[email protected]> * Refactor overlay files for rpi Signed-off-by: Mauro Morales <[email protected]> * Part of last commit Signed-off-by: Mauro Morales <[email protected]> * Pass model to framework Signed-off-by: Mauro Morales <[email protected]> * No need to have a different persistency config for the rpi Signed-off-by: Mauro Morales <[email protected]> * Disable rpi-eeprom-update Signed-off-by: Mauro Morales <[email protected]> * review feedback Signed-off-by: Mauro Morales <[email protected]> --------- Signed-off-by: Martin Schuessler <[email protected]> Signed-off-by: Mauro Morales <[email protected]> Co-authored-by: Martin Schuessler <[email protected]>
- Loading branch information
1 parent
ad59482
commit 3b1fc19
Showing
12 changed files
with
331 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
ARG BASE_IMAGE=ubuntu:20.04 | ||
ARG MODEL=generic | ||
|
||
FROM $BASE_IMAGE as base | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update \ | ||
&& apt-get install -y software-properties-common \ | ||
&& add-apt-repository ppa:oibaf/test \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
FROM base AS generic | ||
RUN apt-get update && apt-get install -y linux-base \ | ||
linux-image-generic-hwe-22.04 \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
FROM base AS rpi64 | ||
# Normally we install also linux-modules-extra-raspi but this is not available for 20.04, not sure what's the impact to | ||
# remove it. | ||
RUN apt-get update && apt-get install -y linux-firmware-raspi2 \ | ||
linux-raspi \ | ||
&& apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
FROM ${MODEL} AS all | ||
|
||
FROM all | ||
RUN apt-get update && apt-get install -y \ | ||
conntrack \ | ||
console-data \ | ||
coreutils \ | ||
curl \ | ||
debianutils \ | ||
dosfstools \ | ||
dracut \ | ||
dracut-network \ | ||
e2fsprogs \ | ||
gawk \ | ||
gdisk \ | ||
grub-efi-arm64-bin \ | ||
grub2-common \ | ||
haveged \ | ||
iproute2 \ | ||
iptables \ | ||
jq \ | ||
linux-firmware-raspi2 \ | ||
linux-raspi \ | ||
lldpd \ | ||
nano \ | ||
neovim \ | ||
open-vm-tools \ | ||
openssh-server \ | ||
parted \ | ||
policykit-1 \ | ||
rpi-eeprom \ | ||
rsync \ | ||
snapd \ | ||
snmpd \ | ||
squashfs-tools \ | ||
sudo \ | ||
systemd \ | ||
systemd-timesyncd \ | ||
tar \ | ||
&& 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 | ||
RUN systemctl disable rpi-eeprom-update | ||
|
||
# Enable tmp | ||
RUN cp -v /usr/share/systemd/tmp.mount /etc/systemd/system/ | ||
RUN systemctl enable tmp.mount | ||
|
||
# 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 |
Oops, something went wrong.