Skip to content

Commit bd5521d

Browse files
networkfusionjosesimoesEllerbach
authored
ESP32 Devcontainer fixes (#2474)
Co-authored-by: José Simões <jose.simoes@eclo.solutions> Co-authored-by: Laurent Ellerbach <laurelle@microsoft.com>
1 parent 4efd852 commit bd5521d

File tree

4 files changed

+24
-6
lines changed

4 files changed

+24
-6
lines changed

.devcontainer/Dockerfile.All

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
FROM ghcr.io/nanoframework/dev-container-all:v2.23
1+
FROM ghcr.io/nanoframework/dev-container-all:v2.24

.devcontainer/Dockerfile.ESP32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
FROM ghcr.io/nanoframework/dev-container-esp32:v2.18
1+
FROM ghcr.io/nanoframework/dev-container-esp32:v2.19

.devcontainer/sources/Dockerfile.All

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,19 @@ RUN ln -fs /usr/bin/python3 /usr/bin/python \
112112

113113
# Install ESP-IDF
114114
ENV IDF_PATH=/sources/esp-idf
115+
ENV ESP_PATCH_VER=esp-2021r2-patch5-8.4.0
115116
RUN python -m pip install -r $IDF_PATH/requirements.txt
116117
RUN $IDF_PATH/install.sh
117-
ENV PATH=$PATH:$IDF_PATH/components/esptool_py/esptool:$IDF_PATH/components/espcoredump:$IDF_PATH/components/partition_table/:$IDF_PATH/tools/:$IDF_PATH/components/app_update:/root/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin:/root/.espressif/tools/xtensa-esp32s2-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s2-elf/bin:/root/.espressif/tools/riscv32-esp-elf/esp-2021r2-patch3-8.4.0/riscv32-esp-elf/bin
118+
119+
ENV PATH=$PATH:\
120+
$IDF_PATH/components/esptool_py/esptool:\
121+
$IDF_PATH/components/espcoredump:\
122+
$IDF_PATH/components/partition_table/:\
123+
$IDF_PATH/tools/:\
124+
$IDF_PATH/components/app_update:\
125+
/root/.espressif/tools/xtensa-esp32-elf/$ESP_PATCH_VER/xtensa-esp32-elf/bin:\
126+
/root/.espressif/tools/xtensa-esp32s2-elf/$ESP_PATCH_VER/xtensa-esp32s2-elf/bin:\
127+
/root/.espressif/tools/riscv32-esp-elf/$ESP_PATCH_VER/riscv32-esp-elf/bin
118128

119129
# Clean up downloaded files
120130
RUN apt-get autoremove -y \

.devcontainer/sources/Dockerfile.ESP32

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,27 @@ RUN git clone --branch mbedtls-2.28.1 https://github.com/ARMmbed/mbedtls.git --d
4949
RUN git clone --branch v4.4.3 https://github.com/espressif/esp-idf --depth 1 --recursive ./sources/esp-idf
5050

5151
# Copy from our other container
52-
COPY --from=downloader /tmp/dc-extracted/gcc /usr/local/bin/gcc
5352
COPY --from=downloader /tmp/dc-extracted/cmake /usr
54-
# COPY ./scripts/git-pull-repos.sh /usr/local/git-pull-repos.sh
5553

5654
# Creating static link python for pyhton3
5755
RUN ln -fs /usr/bin/python3 /usr/bin/python \
5856
&& pip3 install pyserial
5957

6058
# Install ESP-IDF
6159
ENV IDF_PATH=/sources/esp-idf
60+
ENV ESP_PATCH_VER=esp-2021r2-patch5-8.4.0
6261
RUN python -m pip install -r $IDF_PATH/requirements.txt
6362
RUN $IDF_PATH/install.sh
64-
ENV PATH=$PATH:$IDF_PATH/components/esptool_py/esptool:$IDF_PATH/components/espcoredump:$IDF_PATH/components/partition_table/:$IDF_PATH/tools/:$IDF_PATH/components/app_update:/root/.espressif/tools/xtensa-esp32-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32-elf/bin:/root/.espressif/tools/xtensa-esp32s2-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s2-elf/bin:/root/.espressif/tools/riscv32-esp-elf/esp-2021r2-patch3-8.4.0/riscv32-esp-elf/bin
63+
64+
ENV PATH=$PATH:\
65+
$IDF_PATH/components/esptool_py/esptool:\
66+
$IDF_PATH/components/espcoredump:\
67+
$IDF_PATH/components/partition_table/:\
68+
$IDF_PATH/tools/:\
69+
$IDF_PATH/components/app_update:\
70+
/root/.espressif/tools/xtensa-esp32-elf/$ESP_PATCH_VER/xtensa-esp32-elf/bin:\
71+
/root/.espressif/tools/xtensa-esp32s2-elf/$ESP_PATCH_VER/xtensa-esp32s2-elf/bin:\
72+
/root/.espressif/tools/riscv32-esp-elf/$ESP_PATCH_VER/riscv32-esp-elf/bin
6573

6674
# Clean up downloaded files
6775
RUN apt-get autoremove -y \

0 commit comments

Comments
 (0)