From f7ebf12c6b0144ee600c392e85f581831559c0c6 Mon Sep 17 00:00:00 2001 From: mkardous-silabs <84793247+mkardous-silabs@users.noreply.github.com> Date: Fri, 13 Oct 2023 12:23:46 -0400 Subject: [PATCH] Fix docker image (#29758) --- integrations/docker/images/base/chip-build/version | 2 +- .../docker/images/stage-2/chip-build-efr32/Dockerfile | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/integrations/docker/images/base/chip-build/version b/integrations/docker/images/base/chip-build/version index 956aab67064756..dcb1e104fdb4a5 100644 --- a/integrations/docker/images/base/chip-build/version +++ b/integrations/docker/images/base/chip-build/version @@ -1 +1 @@ -18 : [Silabs] Adds bugfix for symlink for docker use and optimize SDK download +19 : [Silabs] Remove unnecessary files from the gecko-sdk for the docker image diff --git a/integrations/docker/images/stage-2/chip-build-efr32/Dockerfile b/integrations/docker/images/stage-2/chip-build-efr32/Dockerfile index e8004c77c46929..eb94585076910a 100644 --- a/integrations/docker/images/stage-2/chip-build-efr32/Dockerfile +++ b/integrations/docker/images/stage-2/chip-build-efr32/Dockerfile @@ -17,6 +17,11 @@ RUN set -x \ RUN wget https://github.com/SiliconLabs/gecko_sdk/releases/download/v4.3.2/gecko-sdk.zip -O /tmp/gecko_sdk.zip \ && unzip /tmp/gecko_sdk.zip -d /tmp/gecko_sdk \ && rm -rf /tmp/gecko_sdk.zip \ + # Deleting files that are not needed to save space + && rm -rf /tmp/gecko_sdk/protocol/flex /tmp/gecko_sdk/protocol/z-wave /tmp/gecko_sdk/protocol/zigbee /tmp/gecko_sdk/protocol/wisun \ + && find /tmp/gecko_sdk/protocol/bluetooth /tmp/gecko_sdk/platform -name "*.a" -type f -delete \ + && find /tmp/gecko_sdk/protocol/openthread -name "*efr32mg21*" -delete \ + && find /tmp/gecko_sdk/protocol/openthread -name "*efr32mg13*" -delete \ && : # last line # Clone WiSeConnect Wi-Fi and Bluetooth Software 2.8.2 (4fa5c5f)