Merge "debian: remove LAT SDK installer after running"

This commit is contained in:
Zuul 2022-05-05 20:51:11 +00:00 committed by Gerrit Code Review
commit fcf645e3d9
1 changed files with 5 additions and 4 deletions

View File

@ -38,10 +38,11 @@ COPY stx/toCOPY/builder/pubkey.rsa /opt/LAT/
# Prepare executables
COPY stx/toCOPY/lat-tool/lat/ /opt/LAT/lat
# Prepare LAT SDK.
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
# Download & install LAT SDK.
RUN wget --quiet ${LAT_BINARY_RESOURCE_PATH}/lat-sdk.sh --output-document=/opt/LAT/AppSDK.sh && \
chmod +x /opt/LAT/AppSDK.sh && \
/opt/LAT/AppSDK.sh -d /opt/LAT/SDK -y && \
rm -f /opt/LAT/AppSDK.sh
# Fix: Use Debian CDN address for geo-frendly servers
RUN sed -i 's/ftp.cn.debian.org/deb.debian.org/g' /opt/LAT/SDK/sysroots/x86_64-wrlinuxsdk-linux/usr/lib/python3.10/site-packages/genimage/debian_constant.py