Skip to content

Commit a943092

Browse files
committed
ci: Update FIH docker to Ubuntu Plucky (25.04)
This distribution includes a newer version (14.2) of the GNU Arm toolchain. Use Python virtual environment for package installation because system-wide installation is now disallowed by default settings. Change-Id: Iea583fca586b54a2c984c04164289603313c81d7 Signed-off-by: David Vincze <[email protected]>
1 parent e4fc5ae commit a943092

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed
Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2020 Arm Limited
1+
# Copyright (c) 2020-2025 Arm Limited
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM ubuntu:jammy
15+
FROM ubuntu:plucky
1616

1717
# Get dependencies for retrieving and building TF-M with MCUBoot, and QEMU.
1818
RUN apt-get update && \
@@ -23,23 +23,29 @@ RUN apt-get update && \
2323
gcc-arm-none-eabi \
2424
gdb-multiarch \
2525
git \
26-
libncurses5 \
26+
libncurses6 \
2727
python3 \
2828
python3-pip \
29+
python3-venv \
2930
qemu-system-arm \
3031
file &&\
3132
apt-get clean all
3233

33-
# Installing python packages
34-
RUN python3 -m pip install \
34+
# Add tfm work directory
35+
WORKDIR /root/work/tfm
36+
37+
# Get rid of spurious git ownership errors
38+
RUN git config --global --add safe.directory '*'
39+
40+
# Create Python virtual environment since PEP 668 protection is present
41+
RUN python3 -m venv .venv
42+
43+
# Activate Python environment and install Python packages
44+
RUN . .venv/bin/activate && python3 -m pip install \
3545
imgtool>=1.9.0 \
3646
Jinja2>=2.10.3 \
3747
PyYAML \
3848
pyasn1
3949

40-
# Add tfm work directory && get rid of spurious git ownership errors
41-
RUN mkdir -p /root/work/tfm &&\
42-
git config --global --add safe.directory '*'
43-
4450
# run the command
4551
CMD ["bash"]

0 commit comments

Comments
 (0)