Skip to content

Commit bd8967b

Browse files
committed
zephyr-lite: update base to zephyr-build v0.28.4
Update base to zephyr-build v0.28.4 and: - Remove python3.12 installation as it's already supplied by new docker base - Remove sysroots from toolchains to free up space - Install python3-jsonschema - Update SDK to 0.17.4 Signed-off-by: Mateusz Redzynia <mateuszx.redzynia@intel.com>
1 parent efbc7c4 commit bd8967b

1 file changed

Lines changed: 12 additions & 16 deletions

File tree

scripts/docker_build/zephyr_lite/Dockerfile

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,27 @@
22
# Copyright(c) 2025 Intel Corporation. All rights reserved.
33

44
# Use zephyr-build as base image
5-
FROM ghcr.io/zephyrproject-rtos/zephyr-build:v0.27.4 as base
5+
FROM ghcr.io/zephyrproject-rtos/zephyr-build:v0.28.4 as base
66

77
# Remove additional toolchains.
88
# As this is not ideal solution there is a plan to build docker image without zephyr-build as the base
99
# and install only needeed toolchains in the future.
10-
RUN cd /opt/toolchains/zephyr-sdk-0.17.0 && \
11-
sudo rm -rvf arc* \
10+
USER root
11+
12+
RUN cd /opt/toolchains/zephyr-sdk-0.17.4 && \
13+
rm -rvf arc* \
1214
micro* \
1315
mips* \
1416
nios* \
1517
risc* \
1618
sparc* \
19+
sysroots \
1720
x86* \
1821
xtensa-espressif* \
1922
xtensa-sample* \
2023
xtensa-dc233c*
2124

22-
# Some of tests require python 3.12 - instll it from source
23-
RUN cd /tmp && wget -q --show-progress --progress=bar:force:noscroll --no-check-certificate https://www.python.org/ftp/python/3.12.9/Python-3.12.9.tgz && \
24-
tar -xf Python-3.12.9.tgz && \
25-
cd Python-3.12.9 && \
26-
./configure && \
27-
sudo make -j$(nproc) && \
28-
sudo make install && \
29-
sudo rm -rf /tmp/Python-3*
30-
31-
# Reinstall python3.10 packages with python3.12
32-
RUN python3.10 -m pip freeze > /tmp/python3.10.pip.txt && \
33-
cat /tmp/python3.10.pip.txt | xargs -n 1 python3.12 -m pip install || true
25+
RUN apt-get update && apt-get install -yq python3-jsonschema
3426

3527
# Use ubuntu24.04 as base for zephyr-lite
3628
FROM ubuntu:24.04 as zephyr-lite
@@ -42,6 +34,7 @@ FROM ubuntu:24.04 as zephyr-lite
4234
COPY --from=base /opt /opt
4335
COPY --from=base /usr /usr
4436
COPY --from=base /home /home
37+
COPY --from=base /etc/ssl /etc/ssl
4538

4639
USER root
4740

@@ -53,6 +46,9 @@ RUN useradd -ms /bin/bash user && \
5346

5447
USER user
5548

49+
RUN pip install --break-system-packages 'cmake>=3.21'
50+
5651
# Set zephyr env variables
57-
ENV ZEPHYR_SDK_INSTALL_DIR=/opt/toolchains/zephyr-sdk-0.17.0
52+
ENV PATH=$PATH:/home/user/.local/bin
53+
ENV ZEPHYR_SDK_INSTALL_DIR=/opt/toolchains/zephyr-sdk-0.17.4
5854
ENV ZEPHYR_TOOLCHAIN_VARIANT=zephyr

0 commit comments

Comments
 (0)