-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(rust-training-esp32c3): broken builder #56
This should fix the builder and will make esp-rs/std-training#168 simpler
- Loading branch information
1 parent
810fd42
commit 28a25f3
Showing
3 changed files
with
53 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,28 @@ | ||
# Base image | ||
FROM espressif/rust-std-training | ||
|
||
USER esp | ||
ENV USER=esp | ||
|
||
RUN git clone https://github.com/ferrous-systems/espressif-trainings.git espressif-trainings \ | ||
&& rm -rf espressif-trainings/book \ | ||
&& rm espressif-trainings/intro/hardware-check/Cargo.toml | ||
&& rm -rf espressif-trainings/book | ||
|
||
ENV IDF_TOOLS_PATH=/home/esp/.espressif | ||
RUN echo "source /home/esp/.espressif/frameworks/esp-idf/export.sh > /dev/null 2>&1" >> ~/.bashrc | ||
ENV PATH=${PATH}:/home/esp/.cargo/bin | ||
|
||
COPY Cargo.toml espressif-trainings/intro/hardware-check/Cargo.toml | ||
COPY sdkconfig.defaults espressif-trainings/intro/hardware-check/sdkconfig.defaults | ||
COPY cfg.toml espressif-trainings/intro/hardware-check/cfg.toml | ||
|
||
# Fetch | ||
COPY fetch.sh /home/esp/ | ||
RUN bash fetch.sh | ||
|
||
# Copy compilation script | ||
COPY sdkconfig.defaults /home/esp/ | ||
COPY cfg.toml /home/esp/ | ||
COPY compile.sh /home/esp/ | ||
|
||
RUN mkdir -p /home/esp/build-in /home/esp/build-out | ||
|
||
ENV HEXI_SRC_DIR="/home/esp/build-in" | ||
ENV HEXI_SRC_FILES="*.rs" | ||
ENV HEXI_BUILD_CMD="bash /home/esp/compile.sh" | ||
ENV HEXI_OUT_HEX="/home/esp/build-out/project.bin" | ||
ENV HEXI_OUT_ELF="/home/esp/build-out/project.elf" | ||
|
||
EXPOSE 8080 | ||
COPY --from=wokwi/mini-hexi /wokwi-hexi /wokwi-hexi | ||
CMD /wokwi-hexi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.