-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile.micropython.1.17.esp32
47 lines (32 loc) · 1.31 KB
/
Dockerfile.micropython.1.17.esp32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
FROM --platform=linux/x86_64 python:3.10
RUN apt-get update && \
apt-get install -y git cmake wget make libncurses-dev flex bison gperf libusb-1.0-0 libusb-1.0-0-dev
WORKDIR /opt/app
ENV PATH=${PATH}:/root/.local/bin
RUN git clone https://github.com/micropython/micropython && \
git clone -b v4.0.2 --recursive https://github.com/espressif/esp-idf.git && \
cd esp-idf && \
bash /opt/app/esp-idf/install.sh && \
bash -c "source export.sh" && \
cd /opt/app/micropython && \
git checkout v1.17 && \
git submodule update --init && \
pip install -U pip && \
pip install pyparsing==2.3.1 && \
pip install esptool==3.0 && \
pip install pyserial==3.5 && \
pip install --user -r /opt/app/esp-idf/requirements.txt
ENV ESPIDF "/opt/app/esp-idf"
ENV IDF_PATH "/opt/app/esp-idf"
ENV BOARD "MDNS"
RUN python "${IDF_PATH}/tools/idf_tools.py" export && \
python "${IDF_PATH}/tools/check_python_dependencies.py"
ADD config/boards/ /opt/app/micropython/ports/esp32/boards/
WORKDIR /opt/app/micropython
RUN make -C mpy-cross
WORKDIR /opt/app/micropython/ports/esp32
RUN bash -c "source ${IDF_PATH}/export.sh && make submodules && make"
WORKDIR /opt/app/
WORKDIR /opt/app/micropython/ports/esp32
ADD src/mdns_client modules/mdns_client
RUN bash -c "source ${IDF_PATH}/export.sh && make"