Skip to content

Commit d668898

Browse files
committed
Enhance Dockerfile verification step for ESP-IDF
- Update the verification command to source the environment before checking Python and tool versions, improving compatibility and reliability. - Ensure successful installation verification of ESP-IDF by executing commands in a single bash context.
1 parent 8c38727 commit d668898

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

images/esp-idf/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,15 @@ WORKDIR /workspace
9292

9393
# Verify installation
9494
ARG ESP_IDF_VERSION
95-
RUN python --version && \
95+
RUN bash -c '. ${IDF_PATH}/export.sh && \
96+
python --version && \
9697
pytest --version && \
9798
jq --version && \
9899
qemu-system-xtensa --version && \
99100
qemu-system-riscv32 --version && \
100101
gcovr --version && \
101102
ccache --version && \
102-
echo "ESP-IDF ${ESP_IDF_VERSION} installation verified successfully"
103+
echo "ESP-IDF ${ESP_IDF_VERSION} installation verified successfully"'
103104

104105
CMD ["/bin/bash"]
105106

0 commit comments

Comments
 (0)