@@ -4,7 +4,8 @@ RUN apt-get update \
44 && apt-get install -y \
55 curl \
66 xz-utils \
7- unzip
7+ unzip \
8+ wget
89
910ARG GCC_URI=https://armkeil.blob.core.windows.net/developer/Files/downloads/gnu/11.3.rel1/binrel/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi.tar.xz
1011RUN mkdir -p /tmp/dc-downloads /tmp/dc-extracted/gcc \
@@ -19,6 +20,14 @@ RUN mkdir -p /tmp/dc-extracted/titools \
1920 && curl -o /tmp/dc-downloads/titools.zip $TI_TOOL_URL -L \
2021 && unzip -d /tmp/dc-extracted/titools /tmp/dc-downloads/titools.zip
2122
23+ ARG CMAKE_SCRIPT=https://cmake.org/files/v3.24/cmake-3.24.0-linux-x86_64.sh
24+ RUN wget $CMAKE_SCRIPT \
25+ -q -O /tmp/cmake-install.sh \
26+ && chmod u+x /tmp/cmake-install.sh \
27+ && mkdir /tmp/dc-extracted/cmake \
28+ && /tmp/cmake-install.sh --skip-license --prefix=/tmp/dc-extracted/cmake \
29+ && rm /tmp/cmake-install.sh
30+
2231FROM ghcr.io/linuxcontainers/debian-slim:latest AS devcontainer
2332
2433# Avoid warnings by switching to noninteractive
@@ -90,7 +99,9 @@ ENV PATH=$ARM_GCC_PATH/bin:${PATH}
9099# Copy from our other container
91100COPY --from=downloader /tmp/dc-extracted/gcc $ARM_GCC_PATH
92101COPY --from=downloader /tmp/dc-extracted/titools/xdctools_3_62_00_08_core /usr/local/bin/titools
93- # COPY ./scripts/git-pull-repos.sh /usr/local/git-pull-repos.sh
102+ COPY --from=downloader /tmp/dc-extracted/cmake /usr/bin/cmake
103+
104+ ENV PATH=/usr/bin/cmake/bin:${PATH}
94105
95106# Putting hex2dfu in the container
96107ENV HEX2DFU_PATH=/usr/local/bin/hex2dfu
@@ -104,16 +115,6 @@ RUN mkdir -p $HEX2DFU_PATH \
104115RUN ln -fs /usr/bin/python3 /usr/bin/python \
105116 && pip3 install pyserial
106117
107- ARG CMAKE_VERSION=3.24.0
108- RUN wget https://cmake.org/files/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-x86_64.sh \
109- -q -O /tmp/cmake-install.sh \
110- && chmod u+x /tmp/cmake-install.sh \
111- && mkdir /usr/bin/cmake \
112- && /tmp/cmake-install.sh --skip-license --prefix=/usr/bin/cmake \
113- && rm /tmp/cmake-install.sh
114-
115- ENV PATH=/usr/bin/cmake/bin:${PATH}
116-
117118# Install ESP-IDF
118119ENV IDF_PATH=/sources/esp-idf
119120ENV ESP_PATCH_VER=esp-2021r2-patch5-8.4.0
0 commit comments