-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
58 lines (49 loc) · 1.29 KB
/
Dockerfile
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
56
57
58
FROM ubuntu:latest
ENV HOME /root
# Install dependencies
RUN apt-get -y update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
git \
gcc \
sudo \
build-essential \
libgtk-3-dev \
python3 \
python3-pip \
python3-setuptools \
python3-serial \
wget \
flex \
bison \
cmake \
ninja-build \
gperf \
libncurses5-dev
# Link python
RUN ln -s /usr/bin/python3 /usr/bin/python
# Install Moddable
ENV MODDABLE $HOME/moddable
WORKDIR $HOME
RUN git clone -b OS201230 https://github.com/Moddable-OpenSource/moddable.git
WORKDIR $HOME/moddable/build/makefiles/lin
RUN make
ENV PATH $PATH:$MODDABLE/build/bin/lin/release
RUN make install
# Install ESP-IDF
ENV IDF_PATH $HOME/esp32/esp-idf
RUN mkdir $HOME/esp32
WORKDIR $HOME/esp32
RUN git clone -b v3.3.2 --recursive https://github.com/espressif/esp-idf.git
RUN python -m pip install --user -r $IDF_PATH/requirements.txt
ENV PATH $PATH:$IDF_PATH/tools
# Xtensa toolchain
ENV PATH $PATH:$HOME/esp32/xtensa-esp32-elf/bin
WORKDIR $HOME/esp32
RUN wget https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz && \
tar xvzf xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz
RUN ls $HOME/esp32/xtensa-esp32-elf/bin
# Build Folder
RUN mkdir /source
VOLUME ["/source"]
WORKDIR /source
ENTRYPOINT ["mcconfig"]