Skip to content

Commit

Permalink
[ASR] implement docker best practices (project-chip#26561)
Browse files Browse the repository at this point in the history
  • Loading branch information
tx2rx committed May 16, 2023
1 parent 6a82676 commit 83ca91f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
22 changes: 13 additions & 9 deletions integrations/docker/images/chip-build-asr/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
ARG VERSION=latest
FROM connectedhomeip/chip-build:${VERSION}

# Setup ASR
ARG ASR_DIR=/opt/asr
RUN set -x \
&& apt-get update \
&& apt-get install -y git git-lfs \
&& DEBIAN_FRONTEND=noninteractive apt-get install -fy --no-install-recommends \
wget \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/ \
&& : # last line

# Setup toolchain for ASR582X
ARG ASR_DIR=/opt/asr
RUN set -x \
&& mkdir ${ASR_DIR} \
&& cd ${ASR_DIR} \
&& git clone --depth=1 https://github.com/asriot/Tools.git \
&& cd Tools \
&& git lfs pull \
&& cd toolchain \
&& mkdir -p Tools/toolchain \
&& cd Tools/toolchain \
&& wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2019q4/RC2.1/gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2 \
&& tar -jxvf gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2 \
&& mkdir -p asr_riscv_gnu_toolchain_10.2_ubuntu-16.04 \
&& tar -jxvf asr_riscv_gnu_toolchain_10.2_ubuntu-16.04.tar.bz2 -C asr_riscv_gnu_toolchain_10.2_ubuntu-16.04/ \
&& rm gcc-arm-none-eabi-9-2019-q4-major-x86_64-linux.tar.bz2 \
&& : # last line

ENV ASR_TOOLCHAIN_PATH=${ASR_DIR}/Tools/toolchain/gcc-arm-none-eabi-9-2019-q4-major/bin/
2 changes: 1 addition & 1 deletion integrations/docker/images/chip-build/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.9 Version bump reason: Fix path for sysroot for crosscompile image
0.7.10 Version bump reason: [ASR] implement docker best practices

0 comments on commit 83ca91f

Please sign in to comment.