@@ -4,7 +4,8 @@ RUN apt-get update \
4
4
&& apt-get install -y \
5
5
curl \
6
6
xz-utils \
7
- unzip
7
+ unzip \
8
+ wget
8
9
9
10
ARG 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
10
11
RUN mkdir -p /tmp/dc-downloads /tmp/dc-extracted/gcc \
@@ -19,6 +20,14 @@ RUN mkdir -p /tmp/dc-extracted/titools \
19
20
&& curl -o /tmp/dc-downloads/titools.zip $TI_TOOL_URL -L \
20
21
&& unzip -d /tmp/dc-extracted/titools /tmp/dc-downloads/titools.zip
21
22
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
+
22
31
FROM ghcr.io/linuxcontainers/debian-slim:latest AS devcontainer
23
32
24
33
# Avoid warnings by switching to noninteractive
@@ -90,7 +99,9 @@ ENV PATH=$ARM_GCC_PATH/bin:${PATH}
90
99
# Copy from our other container
91
100
COPY --from=downloader /tmp/dc-extracted/gcc $ARM_GCC_PATH
92
101
COPY --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}
94
105
95
106
# Putting hex2dfu in the container
96
107
ENV HEX2DFU_PATH=/usr/local/bin/hex2dfu
@@ -104,16 +115,6 @@ RUN mkdir -p $HEX2DFU_PATH \
104
115
RUN ln -fs /usr/bin/python3 /usr/bin/python \
105
116
&& pip3 install pyserial
106
117
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
-
117
118
# Install ESP-IDF
118
119
ENV IDF_PATH=/sources/esp-idf
119
120
ENV ESP_PATCH_VER=esp-2021r2-patch5-8.4.0
0 commit comments