Skip to content

Commit 74b355d

Browse files
authored
Merge branch 'main' into main
2 parents 9474510 + 2332862 commit 74b355d

File tree

2 files changed

+25
-13
lines changed

2 files changed

+25
-13
lines changed

Dockerfile.base

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
# Base Image (ci-base)
22

3-
FROM ubuntu:22.04
3+
FROM ubuntu:24.04
44

55
ARG USERNAME=user
66
ARG UID=1000
77
ARG GID=1000
8+
ARG PYTHON_VENV_PATH=/opt/python/venv
9+
10+
# this conflicts with uid 1000, remove it
11+
RUN userdel -r ubuntu || true
812

913
# Set default shell during Docker image build to bash
1014
SHELL ["/bin/bash", "-c"]
@@ -43,7 +47,6 @@ RUN apt-get -y update && \
4347
git-core \
4448
gnupg \
4549
gperf \
46-
gtk-sharp2 \
4750
help2man \
4851
iproute2 \
4952
lcov \
@@ -71,7 +74,7 @@ RUN apt-get -y update && \
7174
python3-ply \
7275
python3-setuptools \
7376
python-is-python3 \
74-
qemu \
77+
python3-venv \
7578
rsync \
7679
socat \
7780
srecord \
@@ -97,7 +100,7 @@ RUN if [ "${HOSTTYPE}" = "x86_64" ]; then \
97100
apt-get -y update && \
98101
apt-get -y upgrade && \
99102
apt-get install --no-install-recommends -y \
100-
libsdl2-dev:i386 libfuse-dev:i386 libc6-dbg:i386 \
103+
libsdl2-dev:i386 libfuse-dev:i386 libc6-dbg:i386 python3\
101104
; fi
102105

103106
# Initialise system locale
@@ -106,14 +109,19 @@ ENV LANG=en_US.UTF-8
106109
ENV LANGUAGE=en_US:en
107110
ENV LC_ALL=en_US.UTF-8
108111

112+
RUN mkdir -p ${PYTHON_VENV_PATH} && \
113+
python3 -m venv ${PYTHON_VENV_PATH}
114+
115+
ENV PATH=${PYTHON_VENV_PATH}/bin:$PATH
116+
117+
RUN cd ${PYTHON_VENV_PATH}/bin && \
118+
pip install --no-cache-dir --upgrade pip setuptools wheel
119+
109120
# Install Python dependencies
110-
RUN python3 -m pip install -U --no-cache-dir pip && \
111-
pip3 install -U --no-cache-dir wheel setuptools && \
112-
pip3 install --no-cache-dir pygobject && \
113-
pip3 install --no-cache-dir \
121+
RUN pip3 install --no-cache-dir \
114122
-r https://raw.githubusercontent.com/zephyrproject-rtos/zephyr/main/scripts/requirements.txt \
115123
-r https://raw.githubusercontent.com/zephyrproject-rtos/mcuboot/main/scripts/requirements.txt \
116-
GitPython imgtool junitparser junit2html numpy protobuf PyGithub \
124+
GitPython imgtool junitparser junit2html numpy protobuf grpcio-tools PyGithub \
117125
pylint sh statistics west \
118126
nrf-regtool~=9.0.1
119127
# Run pip check on x86 only for now, it fails on arm.

Dockerfile.ci

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ARG BASE_IMAGE
44
FROM ${BASE_IMAGE:-zephyrprojectrtos/ci-base:latest}
55

66
ARG USERNAME=user
7-
ARG ZSDK_VERSION=0.17.1-rc1
7+
ARG ZSDK_VERSION=0.17.1-rc2
88
ENV ZSDK_VERSION=$ZSDK_VERSION
99
ARG KITWARE_NINJA_VERSION=1.11.1.g95dee.kitware.jobserver-1
1010
ENV KITWARE_NINJA_VERSION=$KITWARE_NINJA_VERSION
@@ -14,9 +14,9 @@ ARG DOXYGEN_VERSION=1.9.4
1414
ENV DOXYGEN_VERSION=$DOXYGEN_VERSION
1515
ARG RENODE_VERSION=1.15.3
1616
ENV RENODE_VERSION=$RENODE_VERSION
17-
ARG LLVM_VERSION=16
17+
ARG LLVM_VERSION=20
1818
ENV LLVM_VERSION=$LLVM_VERSION
19-
ARG BSIM_VERSION=v2.5
19+
ARG BSIM_VERSION=v2.6
2020
ENV BSIM_VERSION=$BSIM_VERSION
2121
ARG SPARSE_VERSION=9212270048c3bd23f56c20a83d4f89b870b2b26e
2222
ENV SPARSE_VERSION=$SPARSE_VERSION
@@ -57,7 +57,7 @@ RUN if [ "${HOSTTYPE}" = "x86_64" ]; then \
5757
# Install Doxygen (x86 only)
5858
# NOTE: Pre-built Doxygen binaries are only available for x86_64 host.
5959
RUN if [ "${HOSTTYPE}" = "x86_64" ]; then \
60-
wget ${WGET_ARGS} https://downloads.sourceforge.net/project/doxygen/rel-${DOXYGEN_VERSION}/doxygen-${DOXYGEN_VERSION}.linux.bin.tar.gz && \
60+
wget ${WGET_ARGS} "https://github.com/doxygen/doxygen/releases/download/Release_${DOXYGEN_VERSION//./_}/doxygen-${DOXYGEN_VERSION}.linux.bin.tar.gz" && \
6161
tar xf doxygen-${DOXYGEN_VERSION}.linux.bin.tar.gz -C /opt && \
6262
ln -s /opt/doxygen-${DOXYGEN_VERSION}/bin/doxygen /usr/local/bin && \
6363
rm doxygen-${DOXYGEN_VERSION}.linux.bin.tar.gz \
@@ -141,6 +141,10 @@ RUN mkdir -p /opt/toolchains && \
141141
#
142142
# Ecosystem FVP License permits redistribution (refer to the relevant license available in the container).
143143
RUN set -o pipefail && \
144+
apt update && \
145+
apt install software-properties-common && \
146+
add-apt-repository -y ppa:deadsnakes/ppa && \
147+
apt install -y python3.9-dev && \
144148
mkdir -p /opt/fvps && \
145149
cd /opt/fvps && \
146150
if [ "${HOSTTYPE}" = "x86_64" ]; then SUFFIX=""; else SUFFIX="_armv8l"; fi && \

0 commit comments

Comments
 (0)