From d5e68c64335899c56f557cd619e6e8d71e15d5a6 Mon Sep 17 00:00:00 2001 From: Hongxu Jia Date: Mon, 28 Mar 2022 11:32:31 +0800 Subject: [PATCH] stx/dockerfiles/stx-lat-tool.Dockerfile: fix download lat-sdk.sh failed Using the Dockerfile 'ADD' command to download lat-sdk.sh fails ... Step 6/13 : ADD ${LAT_BINARY_RESOURCE_PATH}/lat-sdk.sh /opt/LAT/AppSDK.sh Downloading [==============================> ] 353.5MB/585.7MB ADD failed: unexpected EOF ... It seems ADD command does not work if network is not stable, use wget instead of 'ADD'. Story: 2008846 Task: 44796 Signed-off-by: Hongxu Jia Change-Id: I0034ee072ca1a9d4f3f329cf2acb509acfd05bbe --- stx/dockerfiles/stx-lat-tool.Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stx/dockerfiles/stx-lat-tool.Dockerfile b/stx/dockerfiles/stx-lat-tool.Dockerfile index f8e2be27..5a08e569 100644 --- a/stx/dockerfiles/stx-lat-tool.Dockerfile +++ b/stx/dockerfiles/stx-lat-tool.Dockerfile @@ -26,6 +26,7 @@ RUN apt-get -y update && apt-get --no-install-recommends -y install \ bzip2 \ procps \ tini \ + wget \ locales-all \ python3-yaml && \ apt-get clean && \ @@ -35,7 +36,7 @@ RUN apt-get -y update && apt-get --no-install-recommends -y install \ # Prepare executables COPY stx/toCOPY/lat-tool/lat/ /opt/LAT/lat # Prepare LAT SDK. -ADD ${LAT_BINARY_RESOURCE_PATH}/lat-sdk.sh /opt/LAT/AppSDK.sh +RUN wget --quiet ${LAT_BINARY_RESOURCE_PATH}/lat-sdk.sh --output-document=/opt/LAT/AppSDK.sh RUN chmod +x /opt/LAT/AppSDK.sh RUN /opt/LAT/AppSDK.sh -d /opt/LAT/SDK -y