1
1
# Base Image (ci-base)
2
2
3
- FROM ubuntu:22 .04
3
+ FROM ubuntu:24 .04
4
4
5
5
ARG UID=1000
6
6
ARG GID=1000
7
+ ARG PYTHON_VENV_PATH=/opt/python/venv
8
+
9
+ # this conflicts with uid 1000, remove it
10
+ RUN userdel -r ubuntu || true
7
11
8
12
# Set default shell during Docker image build to bash
9
13
SHELL ["/bin/bash", "-c"]
@@ -42,7 +46,6 @@ RUN apt-get -y update && \
42
46
git-core \
43
47
gnupg \
44
48
gperf \
45
- gtk-sharp2 \
46
49
help2man \
47
50
iproute2 \
48
51
lcov \
@@ -70,7 +73,7 @@ RUN apt-get -y update && \
70
73
python3-ply \
71
74
python3-setuptools \
72
75
python-is-python3 \
73
- qemu \
76
+ python3-venv \
74
77
rsync \
75
78
socat \
76
79
srecord \
@@ -96,7 +99,7 @@ RUN if [ "${HOSTTYPE}" = "x86_64" ]; then \
96
99
apt-get -y update && \
97
100
apt-get -y upgrade && \
98
101
apt-get install --no-install-recommends -y \
99
- libsdl2-dev:i386 libfuse-dev:i386 libc6-dbg:i386 \
102
+ libsdl2-dev:i386 libfuse-dev:i386 libc6-dbg:i386 python3 \
100
103
; fi
101
104
102
105
# Initialise system locale
@@ -105,11 +108,16 @@ ENV LANG=en_US.UTF-8
105
108
ENV LANGUAGE=en_US:en
106
109
ENV LC_ALL=en_US.UTF-8
107
110
111
+ RUN mkdir -p ${PYTHON_VENV_PATH} && \
112
+ python3 -m venv ${PYTHON_VENV_PATH}
113
+
114
+ ENV PATH=${PYTHON_VENV_PATH}/bin:$PATH
115
+
116
+ RUN cd ${PYTHON_VENV_PATH}/bin && \
117
+ pip install --no-cache-dir --upgrade pip setuptools wheel
118
+
108
119
# Install Python dependencies
109
- RUN python3 -m pip install -U --no-cache-dir pip && \
110
- pip3 install -U --no-cache-dir wheel setuptools && \
111
- pip3 install --no-cache-dir pygobject && \
112
- pip3 install --no-cache-dir \
120
+ RUN pip3 install --no-cache-dir \
113
121
-r https://raw.githubusercontent.com/zephyrproject-rtos/zephyr/main/scripts/requirements.txt \
114
122
-r https://raw.githubusercontent.com/zephyrproject-rtos/mcuboot/main/scripts/requirements.txt \
115
123
GitPython imgtool junitparser junit2html numpy protobuf PyGithub \
0 commit comments