-
Notifications
You must be signed in to change notification settings - Fork 15
/
Dockerfile.micropython.1.24.esp32
52 lines (38 loc) · 1.58 KB
/
Dockerfile.micropython.1.24.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
48
49
50
51
52
FROM --platform=linux/x86_64 python:3.11
RUN apt-get update && \
apt-get install -y git wget flex bison gperf python3 python3-pip python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0 quilt
WORKDIR /opt/app
ENV PATH=${PATH}:/root/.local/bin
RUN git clone https://github.com/micropython/micropython && \
git clone -b v5.2.2 --recursive https://github.com/espressif/esp-idf.git && \
cd /opt/app/micropython && \
git checkout v1.24.1 && \
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 'click>=7.0' \
'future>=0.15.2' \
'pyelftools>=0.22' \
'idf-component-manager~=1.2' \
'urllib3<2' \
'pygdbmi<=0.9.0.2' \
'kconfiglib==13.7.1' \
'bitstring>=3.1.6,<4' \
'construct==2.10.54'
ENV ESPIDF "/opt/app/esp-idf"
ENV IDF_PATH "/opt/app/esp-idf"
ENV BOARD "MDNS"
WORKDIR ${ESPIDF}
RUN ./install.sh esp32
ADD config/boards-after-micropython-1-20/ /opt/app/micropython/ports/esp32/boards/
WORKDIR /opt/app/micropython
RUN make -C mpy-cross
WORKDIR /opt/app/micropython/ports/esp32
# WARNING: This is a special fix for ESP32 and only Micropython 1.24.0 - 1.24.1 as disabling MDNS otherwise fails on the builds
# See: https://github.com/micropython/micropython/pull/16349 for details
RUN git checkout b20687d0e71360bf76eccedbb9d2c1f73697693a
RUN bash -c "source ${IDF_PATH}/export.sh && make submodules && make"
ADD src/mdns_client modules/mdns_client
RUN bash -c "source ${IDF_PATH}/export.sh && make"