-
Notifications
You must be signed in to change notification settings - Fork 15
/
Dockerfile.micropython.1.20.esp32
55 lines (40 loc) · 1.48 KB
/
Dockerfile.micropython.1.20.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
53
54
55
FROM --platform=linux/x86_64 python:3.11
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.4.5 --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.20.0 && \
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"
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"