Skip to content

Commit 0fa456b

Browse files
committed
Updated chip-cert-bins Dockerfile
1 parent 878fbb7 commit 0fa456b

File tree

1 file changed

+10
-14
lines changed
  • integrations/docker/images/chip-cert-bins

1 file changed

+10
-14
lines changed

integrations/docker/images/chip-cert-bins/Dockerfile

+10-14
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ RUN set -x \
8989
wget \
9090
git-lfs \
9191
zlib1g-dev \
92-
&& rm -rf /var/lib/apt/lists/ \
9392
&& git lfs install \
9493
&& : # last line
9594

@@ -119,13 +118,12 @@ RUN case ${TARGETPLATFORM} in \
119118

120119
# Python 3 and PIP
121120
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 \
125124
&& add-apt-repository universe \
126125
&& curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
127126
&& python3 get-pip.py \
128-
&& rm -rf /var/lib/apt/lists/ \
129127
&& : # last line
130128

131129
RUN set -x \
@@ -148,9 +146,9 @@ RUN set -x \
148146
&& git clone https://github.com/google/bloaty.git \
149147
&& mkdir -p bloaty/build \
150148
&& cd bloaty/build \
151-
&& cmake ../ \
152-
&& make -j8 \
153-
&& make install \
149+
&& cmake -G Ninja ../ \
150+
&& ninja \
151+
&& ninja install \
154152
&& cd ../.. \
155153
&& rm -rf bloaty \
156154
&& : # last line
@@ -194,7 +192,6 @@ RUN case ${TARGETPLATFORM} in \
194192
--target linux-x64-lit-icd-ipv6only \
195193
--target linux-x64-energy-management-ipv6only \
196194
--target linux-x64-microwave-oven-ipv6only \
197-
--target linux-x64-rvc-ipv6only \
198195
build \
199196
&& mv out/linux-x64-chip-tool-ipv6only-platform-mdns/chip-tool out/chip-tool \
200197
&& mv out/linux-x64-shell-ipv6only-platform-mdns/chip-shell out/chip-shell \
@@ -214,7 +211,6 @@ RUN case ${TARGETPLATFORM} in \
214211
&& mv out/linux-x64-lit-icd-ipv6only/lit-icd-app out/lit-icd-app \
215212
&& mv out/linux-x64-energy-management-ipv6only/chip-energy-management-app out/chip-energy-management-app \
216213
&& 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 \
218214
;; \
219215
"linux/arm64")\
220216
set -x \
@@ -257,7 +253,6 @@ RUN case ${TARGETPLATFORM} in \
257253
&& mv out/linux-arm64-lit-icd-ipv6only/lit-icd-app out/lit-icd-app \
258254
&& mv out/linux-arm64-energy-management-ipv6only/chip-energy-management-app out/chip-energy-management-app \
259255
&& 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 \
261256
;; \
262257
*) ;; \
263258
esac
@@ -290,18 +285,19 @@ COPY --from=chip-build-cert-bins /root/connectedhomeip/out/chip-app1 chip-app1
290285
COPY --from=chip-build-cert-bins /root/connectedhomeip/out/lit-icd-app lit-icd-app
291286
COPY --from=chip-build-cert-bins /root/connectedhomeip/out/chip-energy-management-app chip-energy-management-app
292287
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
294288

295289
# Stage 3.1: Setup the Matter Python environment
296290
COPY --from=chip-build-cert-bins /root/connectedhomeip/out/python_lib python_lib
297291
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
300293

301294
COPY --from=chip-build-cert-bins /root/connectedhomeip/scripts/tests/requirements.txt /tmp/requirements.txt
302295
RUN pip install -r /tmp/requirements.txt && rm /tmp/requirements.txt
303296

304297
COPY --from=chip-build-cert-bins /root/connectedhomeip/src/python_testing/requirements.txt /tmp/requirements.txt
305298
RUN pip install -r /tmp/requirements.txt && rm /tmp/requirements.txt
306299

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+
307303
RUN pip install --no-cache-dir python_lib/controller/python/chip*.whl

0 commit comments

Comments
 (0)