@@ -4,8 +4,8 @@ FROM espressif/rust-std-training
4
4
USER esp
5
5
ENV USER=esp
6
6
7
- RUN git clone https://github.com/ferrous-systems/espressif-trainings .git espressif-trainings \
8
- && rm -rf espressif-trainings /book
7
+ RUN git clone https://github.com/esp-rs/std-training .git std-training \
8
+ && rm -rf std-training /book
9
9
10
10
ENV IDF_TOOLS_PATH=/home/esp/.espressif
11
11
RUN echo "source /home/esp/.espressif/frameworks/esp-idf/export.sh > /dev/null 2>&1" >> ~/.bashrc
@@ -14,15 +14,21 @@ ENV PATH=${PATH}:/home/esp/.cargo/bin
14
14
COPY sdkconfig.defaults /home/esp/
15
15
COPY cfg.toml /home/esp/
16
16
COPY compile.sh /home/esp/
17
+ COPY fetch.sh /home/esp/
17
18
18
19
RUN mkdir -p /home/esp/build-in /home/esp/build-out
19
20
21
+ RUN WOKWI_MCU=esp32-c3 ./fetch.sh advanced/button-interrupt
22
+ RUN WOKWI_MCU=esp32-c3 ./fetch.sh advanced/i2c-driver
23
+ RUN WOKWI_MCU=esp32-c3 ./fetch.sh advanced/i2c-sensor-reading
24
+ RUN WOKWI_MCU=esp32-c3 ./fetch.sh intro/hardware-check
25
+ RUN WOKWI_MCU=esp32-c3 ./fetch.sh intro/http-client
26
+ RUN WOKWI_MCU=esp32-c3 ./fetch.sh intro/http-server
27
+ RUN WOKWI_MCU=esp32-c3 ./fetch.sh intro/mqtt/exercise
28
+
29
+
20
30
ENV HEXI_SRC_DIR="/home/esp/build-in"
21
31
ENV HEXI_SRC_FILES="*.rs"
22
32
ENV HEXI_BUILD_CMD="bash /home/esp/compile.sh"
23
33
ENV HEXI_OUT_HEX="/home/esp/build-out/project.bin"
24
34
ENV HEXI_OUT_ELF="/home/esp/build-out/project.elf"
25
-
26
- EXPOSE 8080
27
- COPY --from=wokwi/mini-hexi /wokwi-hexi /wokwi-hexi
28
- CMD /wokwi-hexi
0 commit comments