1
1
# Base Image (ci-base)
2
2
3
- FROM ubuntu:22 .04
3
+ FROM ubuntu:24 .04
4
4
5
5
ARG USERNAME=user
6
6
ARG UID=1000
7
7
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
8
12
9
13
# Set default shell during Docker image build to bash
10
14
SHELL ["/bin/bash", "-c"]
@@ -43,7 +47,6 @@ RUN apt-get -y update && \
43
47
git-core \
44
48
gnupg \
45
49
gperf \
46
- gtk-sharp2 \
47
50
help2man \
48
51
iproute2 \
49
52
lcov \
@@ -71,7 +74,7 @@ RUN apt-get -y update && \
71
74
python3-ply \
72
75
python3-setuptools \
73
76
python-is-python3 \
74
- qemu \
77
+ python3-venv \
75
78
rsync \
76
79
socat \
77
80
srecord \
@@ -97,7 +100,7 @@ RUN if [ "${HOSTTYPE}" = "x86_64" ]; then \
97
100
apt-get -y update && \
98
101
apt-get -y upgrade && \
99
102
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 \
101
104
; fi
102
105
103
106
# Initialise system locale
@@ -106,14 +109,19 @@ ENV LANG=en_US.UTF-8
106
109
ENV LANGUAGE=en_US:en
107
110
ENV LC_ALL=en_US.UTF-8
108
111
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
+
109
120
# 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 \
114
122
-r https://raw.githubusercontent.com/zephyrproject-rtos/zephyr/main/scripts/requirements.txt \
115
123
-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 \
117
125
pylint sh statistics west \
118
126
nrf-regtool~=9.0.1
119
127
# Run pip check on x86 only for now, it fails on arm.
0 commit comments