yocto-builder/Dockerfile: Ubuntu 22.04

Upgrade to Ubuntu 22.04 because it is compatible with the Yocto
Project release Walnascar and provides a newer Python version.

Fixes:

RuntimeError: Sorry, python 3.9.0 or later is required for this version of bitbake

This work was sponsored by GOVCERT.LU.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
This commit is contained in:
Leon Anavi 2025-04-14 16:55:04 +03:00 committed by Khem Raj
parent 3ba4438d9d
commit 54ed1f7c65

View File

@ -2,7 +2,7 @@
# #
# SPDX-License-Identifier: MIT # SPDX-License-Identifier: MIT
FROM ubuntu:20.04 FROM ubuntu:22.04
ARG DEBIAN_FRONTEND="noninteractive" ARG DEBIAN_FRONTEND="noninteractive"
RUN apt-get update -qq RUN apt-get update -qq
@ -10,12 +10,13 @@ RUN apt-get install -y eatmydata
# Yocto/OE build host dependencies # Yocto/OE build host dependencies
# Keep this in sync with # Keep this in sync with
# https://git.yoctoproject.org/poky/tree/documentation/poky.yaml # https://git.yoctoproject.org/poky/tree/documentation/poky.yaml.in
# https://git.yoctoproject.org/poky/tree/documentation/tools/host_packages_scripts/ubuntu_essential.sh
RUN eatmydata apt-get install -qq -y \ RUN eatmydata apt-get install -qq -y \
gawk wget git diffstat unzip texinfo gcc build-essential chrpath \ build-essential chrpath cpio debianutils diffstat file gawk gcc \
socat cpio python3 python3-pip python3-pexpect xz-utils debianutils \ git iputils-ping libacl1 liblz4-tool locales python3 python3-git \
iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev \ python3-jinja2 python3-pexpect python3-pip python3-subunit socat \
pylint3 xterm python3-subunit mesa-common-dev zstd liblz4-tool texinfo unzip wget xz-utils zstd
# en_US.UTF-8 is required by the build system # en_US.UTF-8 is required by the build system
RUN eatmydata apt-get install -qq -y locales \ RUN eatmydata apt-get install -qq -y locales \