@@ -89,7 +89,6 @@ RUN set -x \
89
89
wget \
90
90
git-lfs \
91
91
zlib1g-dev \
92
- && rm -rf /var/lib/apt/lists/ \
93
92
&& git lfs install \
94
93
&& : # last line
95
94
@@ -119,13 +118,12 @@ RUN case ${TARGETPLATFORM} in \
119
118
120
119
# Python 3 and PIP
121
120
RUN set -x \
122
- && DEBIAN_FRONTEND=noninteractive apt-get update \
123
- && DEBIAN_FRONTEND=noninteractive apt-get install -y libgirepository1.0-dev \
124
- && DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common \
121
+ && DEBIAN_FRONTEND=noninteractive apt-get install -y \
122
+ libgirepository1.0-dev \
123
+ software-properties-common \
125
124
&& add-apt-repository universe \
126
125
&& curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
127
126
&& python3 get-pip.py \
128
- && rm -rf /var/lib/apt/lists/ \
129
127
&& : # last line
130
128
131
129
RUN set -x \
@@ -148,9 +146,9 @@ RUN set -x \
148
146
&& git clone https://github.com/google/bloaty.git \
149
147
&& mkdir -p bloaty/build \
150
148
&& cd bloaty/build \
151
- && cmake ../ \
152
- && make -j8 \
153
- && make install \
149
+ && cmake -G Ninja ../ \
150
+ && ninja \
151
+ && ninja install \
154
152
&& cd ../.. \
155
153
&& rm -rf bloaty \
156
154
&& : # last line
@@ -194,7 +192,6 @@ RUN case ${TARGETPLATFORM} in \
194
192
--target linux-x64-lit-icd-ipv6only \
195
193
--target linux-x64-energy-management-ipv6only \
196
194
--target linux-x64-microwave-oven-ipv6only \
197
- --target linux-x64-rvc-ipv6only \
198
195
build \
199
196
&& mv out/linux-x64-chip-tool-ipv6only-platform-mdns/chip-tool out/chip-tool \
200
197
&& mv out/linux-x64-shell-ipv6only-platform-mdns/chip-shell out/chip-shell \
@@ -214,7 +211,6 @@ RUN case ${TARGETPLATFORM} in \
214
211
&& mv out/linux-x64-lit-icd-ipv6only/lit-icd-app out/lit-icd-app \
215
212
&& mv out/linux-x64-energy-management-ipv6only/chip-energy-management-app out/chip-energy-management-app \
216
213
&& mv out/linux-x64-microwave-oven-ipv6only/chip-microwave-oven-app out/chip-microwave-oven-app \
217
- && mv out/linux-x64-rvc-ipv6only/chip-rvc-app out/chip-rvc-app \
218
214
;; \
219
215
"linux/arm64" )\
220
216
set -x \
@@ -257,7 +253,6 @@ RUN case ${TARGETPLATFORM} in \
257
253
&& mv out/linux-arm64-lit-icd-ipv6only/lit-icd-app out/lit-icd-app \
258
254
&& mv out/linux-arm64-energy-management-ipv6only/chip-energy-management-app out/chip-energy-management-app \
259
255
&& mv out/linux-arm64-microwave-oven-ipv6only/chip-microwave-oven-app out/chip-microwave-oven-app \
260
- && mv out/linux-arm64-rvc-ipv6only/chip-rvc-app out/chip-rvc-app \
261
256
;; \
262
257
*) ;; \
263
258
esac
@@ -290,18 +285,19 @@ COPY --from=chip-build-cert-bins /root/connectedhomeip/out/chip-app1 chip-app1
290
285
COPY --from=chip-build-cert-bins /root/connectedhomeip/out/lit-icd-app lit-icd-app
291
286
COPY --from=chip-build-cert-bins /root/connectedhomeip/out/chip-energy-management-app chip-energy-management-app
292
287
COPY --from=chip-build-cert-bins /root/connectedhomeip/out/chip-microwave-oven-app chip-microwave-oven-app
293
- COPY --from=chip-build-cert-bins /root/connectedhomeip/out/chip-rvc-app chip-rvc-app
294
288
295
289
# Stage 3.1: Setup the Matter Python environment
296
290
COPY --from=chip-build-cert-bins /root/connectedhomeip/out/python_lib python_lib
297
291
COPY --from=chip-build-cert-bins /root/connectedhomeip/out/python_env python_env
298
- COPY --from=chip-build-cert-bins /root/connectedhomeip/src/python_testing python_testing/scripts/sdk
299
- COPY --from=chip-build-cert-bins /root/connectedhomeip/data_model python_testing/data_model
292
+ COPY --from=chip-build-cert-bins /root/connectedhomeip/src/python_testing python_testing
300
293
301
294
COPY --from=chip-build-cert-bins /root/connectedhomeip/scripts/tests/requirements.txt /tmp/requirements.txt
302
295
RUN pip install -r /tmp/requirements.txt && rm /tmp/requirements.txt
303
296
304
297
COPY --from=chip-build-cert-bins /root/connectedhomeip/src/python_testing/requirements.txt /tmp/requirements.txt
305
298
RUN pip install -r /tmp/requirements.txt && rm /tmp/requirements.txt
306
299
300
+ # PIP requires MASON package compilation, which seems to require a JDK
301
+ RUN set -x && DEBIAN_FRONTEND=noninteractive apt-get install -fy openjdk-8-jdk
302
+
307
303
RUN pip install --no-cache-dir python_lib/controller/python/chip*.whl
0 commit comments