2021-08-13 05:46:05 +01:00
|
|
|
FROM espressif/idf-rust
|
2021-08-12 07:16:13 +01:00
|
|
|
|
2021-08-13 05:46:05 +01:00
|
|
|
# Some tools to make life with examples easier
|
|
|
|
|
RUN apt update \
|
|
|
|
|
&& apt install -y vim nano
|
2021-08-12 07:16:13 +01:00
|
|
|
|
2021-08-13 05:46:05 +01:00
|
|
|
# Dependency for Cargo first example
|
2021-09-07 14:32:47 +01:00
|
|
|
RUN cargo install cargo-pio ldproxy espflash
|
2021-06-30 07:20:58 +01:00
|
|
|
|
2021-08-13 05:46:05 +01:00
|
|
|
COPY support/idf-rust-examples/entrypoint.sh /opt/esp/entrypoint.sh
|
|
|
|
|
COPY support/idf-rust-examples/motd /etc/motd
|
2021-06-30 07:20:58 +01:00
|
|
|
|
2021-08-13 05:46:05 +01:00
|
|
|
RUN if [ ! -e /opt/rust-esp32-example ]; then git clone https://github.com/espressif/rust-esp32-example.git /opt/rust-esp32-example; fi \
|
|
|
|
|
&& git clone https://github.com/ivmarkov/rust-esp32-std-hello.git /opt/rust-esp32-std-hello
|
2021-06-30 07:20:58 +01:00
|
|
|
|
2021-08-13 05:46:05 +01:00
|
|
|
WORKDIR /opt/
|
2021-06-30 07:20:58 +01:00
|
|
|
|