|
1 | 1 | # Stage 1: Setup dependencies (based on chip-build).
|
2 |
| -FROM ubuntu:24.04 as chip-build-cert |
3 |
| -LABEL org.opencontainers.image.source https://github.com/project-chip/connectedhomeip |
| 2 | +FROM ubuntu:24.04 AS chip-build-cert |
| 3 | +LABEL org.opencontainers.image.source=https://github.com/project-chip/connectedhomeip |
4 | 4 | ARG TARGETPLATFORM
|
5 | 5 | # COMMITHASH defines the target commit to build from. May be passed in using --build-arg.
|
6 | 6 | ARG COMMITHASH=c1ec2d777456924dcaa59b53351b00d73caf378f
|
@@ -123,11 +123,11 @@ RUN set -x \
|
123 | 123 | software-properties-common \
|
124 | 124 | && add-apt-repository universe \
|
125 | 125 | && curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
|
126 |
| - && python3 get-pip.py \ |
| 126 | + && python3 get-pip.py --break-system-packages \ |
127 | 127 | && : # last line
|
128 | 128 |
|
129 | 129 | RUN set -x \
|
130 |
| - && pip3 install attrs coloredlogs PyGithub pygit future portpicker mobly click cxxfilt ghapi pandas tabulate \ |
| 130 | + && pip3 install attrs coloredlogs PyGithub pygit future portpicker mobly click cxxfilt ghapi pandas tabulate --break-system-packages \ |
131 | 131 | && : # last line
|
132 | 132 |
|
133 | 133 | # build and install gn
|
@@ -162,7 +162,7 @@ RUN ./scripts/checkout_submodules.py --allow-changing-global-git-config --shallo
|
162 | 162 | RUN bash scripts/bootstrap.sh
|
163 | 163 |
|
164 | 164 | # Stage 2: Build.
|
165 |
| -FROM chip-build-cert as chip-build-cert-bins |
| 165 | +FROM chip-build-cert AS chip-build-cert-bins |
166 | 166 |
|
167 | 167 | SHELL ["/bin/bash", "-c"]
|
168 | 168 |
|
@@ -260,7 +260,7 @@ RUN case ${TARGETPLATFORM} in \
|
260 | 260 | RUN source scripts/activate.sh && scripts/build_python.sh -m platform -d true -i out/python_env
|
261 | 261 |
|
262 | 262 | # Stage 3: Copy relevant cert bins to a minimal image to reduce size.
|
263 |
| -FROM ubuntu:22.04 |
| 263 | +FROM ubuntu:24.04 |
264 | 264 | ENV TZ=Etc/UTC
|
265 | 265 | RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
266 | 266 | RUN apt-get update -y
|
|
0 commit comments