Skip to content

Commit 12b8044

Browse files
committed
first commit
0 parents  commit 12b8044

7 files changed

+349
-0
lines changed

Dockerfile-1.0.4

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
FROM ubuntu:18.04
2+
3+
ARG DEBIAN_FRONTEND=noninteractive
4+
5+
RUN apt-get update && apt-get install -y \
6+
apt-utils \
7+
bison \
8+
ca-certificates \
9+
ccache \
10+
check \
11+
curl \
12+
flex \
13+
git \
14+
gperf \
15+
lcov \
16+
libncurses-dev \
17+
libusb-1.0-0-dev \
18+
make \
19+
ninja-build \
20+
python3 \
21+
python3-pip \
22+
unzip \
23+
wget \
24+
xz-utils \
25+
zip \
26+
&& apt-get autoremove -y \
27+
&& rm -rf /var/lib/apt/lists/* \
28+
&& update-alternatives --install /usr/bin/python python /usr/bin/python3 10
29+
30+
RUN python -m pip install --upgrade pip virtualenv
31+
COPY shallow_clone /usr/bin/
32+
33+
ENV IDF_TOOLS_PATH=/opt/esp
34+
ENV IDF_PATH=/opt/esp/idf
35+
ENV LIB_BUILDER_PATH=/opt/esp/lib-builder
36+
37+
RUN shallow_clone https://github.com/espressif/esp-idf 4e27cbb89f89dcdd32c99074854058f03b2c25d4 $IDF_PATH \
38+
&& cd $IDF_PATH && git submodule update --progress --depth 1 --init --recursive \
39+
&& rm $IDF_PATH/components/expat/expat/testdata/largefiles/* \
40+
&& python -m pip install -r $IDF_PATH/requirements.txt
41+
42+
RUN curl https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz | tar -xzC $IDF_TOOLS_PATH
43+
44+
RUN shallow_clone https://github.com/espressif/esp32-arduino-lib-builder dca3e75157bc87c74430c6228adb3120dd0f5d8e $LIB_BUILDER_PATH
45+
RUN sed -i '40s!^!source tools/config.sh\n\n!; 41,46{s/^/#/}' $LIB_BUILDER_PATH/build.sh
46+
47+
RUN shallow_clone https://github.com/espressif/arduino-esp32 1.0.4 $LIB_BUILDER_PATH/components/arduino \
48+
&& rm -rf $LIB_BUILDER_PATH/components/arduino/tools/sdk
49+
RUN shallow_clone https://github.com/espressif/esp32-camera/ 8a365ee27240756cdd5a5e009db41ddd983b1e0e $LIB_BUILDER_PATH/components/esp32-camera
50+
RUN shallow_clone https://github.com/espressif/esp-face/ 0e119fea44b042e0f10c1e2003b9ae662efa1bfa $LIB_BUILDER_PATH/components/esp-face
51+
52+
RUN echo "PATH=$IDF_TOOLS_PATH/xtensa-esp32-elf/bin:$PATH\ncd $LIB_BUILDER_PATH" >> /root/.bashrc
53+
54+
CMD [ "/bin/bash" ]

Dockerfile-1.0.5

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
FROM ubuntu:18.04
2+
3+
ARG DEBIAN_FRONTEND=noninteractive
4+
5+
RUN apt-get update && apt-get install -y \
6+
apt-utils bison ca-certificates ccache check cmake curl \
7+
flex git gperf lcov libncurses-dev libusb-1.0-0-dev \
8+
locales make nano ninja-build python3 python3-pip \
9+
unzip vim wget xz-utils zip \
10+
&& apt-get autoremove -y \
11+
&& rm -rf /var/lib/apt/lists/* \
12+
&& update-alternatives --install /usr/bin/python python /usr/bin/python3 10
13+
14+
RUN python -m pip install --no-cache-dir --upgrade pip virtualenv
15+
COPY shallow_clone /usr/bin/
16+
17+
ENV IDF_TOOLS_PATH=/opt/esp
18+
ENV IDF_PATH=/opt/esp/idf
19+
ENV LIB_BUILDER_PATH=/opt/esp/lib-builder
20+
RUN mkdir -p $LIB_BUILDER_PATH
21+
22+
#ADD dist/xtensa-esp32-elf-linux64-1.22.0-97-gc752ad5-5.2.0.tar.gz $IDF_TOOLS_PATH
23+
RUN curl https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-97-gc752ad5-5.2.0.tar.gz | tar -xzC $IDF_TOOLS_PATH
24+
25+
RUN shallow_clone https://github.com/espressif/esp-idf 7a85334d80f90b1d60b5861452db691240546037 $IDF_PATH \
26+
&& cd $IDF_PATH && git submodule update --progress --depth 1 --init --recursive \
27+
&& rm $IDF_PATH/components/expat/expat/testdata/largefiles/* \
28+
&& python -m pip install --no-cache-dir -r $IDF_PATH/requirements.txt
29+
30+
RUN shallow_clone https://github.com/espressif/esp32-arduino-lib-builder 3fa59d5715d09ff1a499ae8ba3abc65a5d6a4d8e $LIB_BUILDER_PATH
31+
RUN sed -i '40s!^!source tools/config.sh\n\n!; 41,46{s/^/#/}' $LIB_BUILDER_PATH/build.sh
32+
33+
RUN shallow_clone https://github.com/espressif/arduino-esp32 419ba32432a34b3299edb61b942a9f3edc801f57 $LIB_BUILDER_PATH/components/arduino \
34+
&& rm -rf $LIB_BUILDER_PATH/components/arduino/tools/sdk
35+
RUN shallow_clone https://github.com/espressif/esp32-camera/ a5ccbecf08f98eb84c7443d8aebe4a529ba737a7 $LIB_BUILDER_PATH/components/esp32-camera
36+
RUN shallow_clone https://github.com/espressif/esp-face/ 420fc7e219ba98e40a5493b9d4be270db2f2d724 $LIB_BUILDER_PATH/components/esp-face
37+
38+
RUN echo "PATH=$IDF_TOOLS_PATH/xtensa-esp32-elf/bin:$PATH\ncd $LIB_BUILDER_PATH" >> /root/.bashrc
39+

Dockerfile-1.0.6

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
FROM ubuntu:18.04
2+
3+
ARG DEBIAN_FRONTEND=noninteractive
4+
5+
RUN apt-get update && apt-get install -y \
6+
apt-utils bison ca-certificates ccache check cmake curl \
7+
flex git gperf lcov libncurses-dev libusb-1.0-0-dev \
8+
locales make nano ninja-build python3 python3-pip \
9+
unzip vim wget xz-utils zip \
10+
&& apt-get autoremove -y \
11+
&& rm -rf /var/lib/apt/lists/* \
12+
&& update-alternatives --install /usr/bin/python python /usr/bin/python3 10
13+
14+
RUN python -m pip install --no-cache-dir --upgrade pip virtualenv
15+
COPY shallow_clone /usr/bin/
16+
17+
ENV IDF_TOOLS_PATH=/opt/esp
18+
ENV IDF_PATH=/opt/esp/idf
19+
ENV LIB_BUILDER_PATH=/opt/esp/lib-builder
20+
RUN mkdir -p $LIB_BUILDER_PATH
21+
22+
ADD dist/xtensa-esp32-elf-linux64-1.22.0-97-gc752ad5-5.2.0.tar.gz $IDF_TOOLS_PATH
23+
#RUN curl https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-97-gc752ad5-5.2.0.tar.gz | tar -xzC $IDF_TOOLS_PATH
24+
25+
RUN shallow_clone https://github.com/espressif/esp-idf 85c43024cb133cd81d3e3a95c1da49d51291d306 $IDF_PATH \
26+
&& cd $IDF_PATH && git submodule update --progress --depth 1 --init --recursive \
27+
&& rm $IDF_PATH/components/expat/expat/testdata/largefiles/* \
28+
&& python -m pip install --no-cache-dir -r $IDF_PATH/requirements.txt
29+
30+
RUN shallow_clone https://github.com/espressif/esp32-arduino-lib-builder 9036908331c9a3803b022c2a030594be1daa2572 $LIB_BUILDER_PATH
31+
RUN sed -i '40s!^!source tools/config.sh\n\n!; 41,46{s/^/#/}' $LIB_BUILDER_PATH/build.sh
32+
33+
RUN shallow_clone https://github.com/espressif/arduino-esp32 46d5afb17fb91965632dc5fef237117e1fe947fc $LIB_BUILDER_PATH/components/arduino \
34+
&& rm -rf $LIB_BUILDER_PATH/components/arduino/tools/sdk
35+
RUN shallow_clone https://github.com/espressif/esp32-camera/ 488c308b79af2a66c285f4319b746943d6b2f893 $LIB_BUILDER_PATH/components/esp32-camera
36+
RUN shallow_clone https://github.com/espressif/esp-face/ 420fc7e219ba98e40a5493b9d4be270db2f2d724 $LIB_BUILDER_PATH/components/esp-face
37+
38+
RUN echo "PATH=$IDF_TOOLS_PATH/xtensa-esp32-elf/bin:$PATH\ncd $LIB_BUILDER_PATH" >> /root/.bashrc
39+

Dockerfile-idfmaster

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
FROM ubuntu:18.04
2+
3+
ARG DEBIAN_FRONTEND=noninteractive
4+
5+
RUN apt-get update && apt-get install -y \
6+
apt-utils bison ca-certificates ccache check cmake curl \
7+
flex git gperf lcov libncurses-dev libusb-1.0-0-dev \
8+
locales make nano ninja-build python3 python3-pip \
9+
unzip vim wget xz-utils zip \
10+
&& apt-get autoremove -y \
11+
&& rm -rf /var/lib/apt/lists/* \
12+
&& update-alternatives --install /usr/bin/python python /usr/bin/python3 10
13+
14+
RUN locale-gen en_US.UTF-8
15+
ENV LANG=en_US.UTF-8
16+
ENV LC_ALL=en_US.UTF-8
17+
18+
RUN python -m pip install --no-cache-dir --upgrade pip virtualenv
19+
20+
COPY shallow_clone /usr/bin/
21+
ENV IDF_PATH=/opt/esp/idf
22+
ENV LIB_BUILDER_PATH=/opt/esp/lib-builder
23+
ENV NO_GIT=1
24+
25+
RUN mkdir -p /opt/esp/tools
26+
ADD dist/xtensa-esp32-elf-gcc8_4_0-esp-2020r3-linux-amd64.tar.gz /opt/esp/tools/
27+
ADD dist/xtensa-esp32s2-elf-gcc8_4_0-esp-2020r3-linux-amd64.tar.gz /opt/esp/tools/
28+
ADD dist/riscv32-esp-elf-gcc8_4_0-crosstool-ng-1.24.0-123-g64eb9ff-linux-amd64.tar.gz /opt/esp/tools/
29+
ADD dist/binutils-esp32s2ulp-linux-amd64-2.28.51-esp-20191205.tar.gz /opt/esp/tools/
30+
ADD dist/binutils-esp32ulp-linux-amd64-2.28.51-esp-20191205.tar.gz /opt/esp/tools/
31+
ADD dist/openocd-esp32-linux64-0.10.0-esp32-20200709.tar.gz /opt/esp/tools/
32+
33+
RUN shallow_clone https://github.com/espressif/esp-idf master $IDF_PATH \
34+
&& cd $IDF_PATH && git submodule update --progress --depth 1 --init --recursive \
35+
&& rm $IDF_PATH/components/expat/expat/testdata/largefiles/* \
36+
&& rm -rf $IDF_PATH/components/tinyusb/tinyusb/examples \
37+
&& rm -rf $IDF_PATH/docs \
38+
&& if [ $NO_GIT ]; then \
39+
rm -rf $IDF_PATH/.git && find $IDF_PATH -name .git -delete; fi
40+
41+
42+
RUN sed -i 's/"install.*/"install": "never",/' $IDF_PATH/tools/tools.json
43+
RUN sed -i "s/'--no-site-packages',//" $IDF_PATH/tools/idf_tools.py \
44+
&& $IDF_PATH/install.sh \
45+
&& rm -rf /root/.cache /root/.local \
46+
&& true
47+
# && rm /opt/esp/dist/*
48+
49+
RUN shallow_clone https://github.com/espressif/esp32-arduino-lib-builder 55e381fadc6fac6d87053eff975abca61a2a8587 $LIB_BUILDER_PATH \
50+
&& if [ $NO_GIT ]; then find $LIB_BUILDER_PATH/.git -delete; fi
51+
52+
RUN shallow_clone https://github.com/espressif/arduino-esp32 idf-master $LIB_BUILDER_PATH/components/arduino \
53+
&& mv $LIB_BUILDER_PATH/components/arduino/tools/sdk/esp32/sdkconfig $LIB_BUILDER_PATH/sdkconfig.esp32 \
54+
&& mv $LIB_BUILDER_PATH/components/arduino/tools/sdk/esp32s2/sdkconfig $LIB_BUILDER_PATH/sdkconfig.esp32s2 \
55+
&& rm -rf $LIB_BUILDER_PATH/components/arduino/tools/sdk \
56+
&& if [ $NO_GIT ]; then find $LIB_BUILDER_PATH/components/arduino/.git -delete; fi
57+
58+
RUN shallow_clone https://github.com/espressif/esp32-camera/ master $LIB_BUILDER_PATH/components/esp32-camera \
59+
&& if [ $NO_GIT ]; then find $LIB_BUILDER_PATH/components/esp32-camera/.git -delete; fi
60+
RUN shallow_clone https://github.com/espressif/esp-face/ master $LIB_BUILDER_PATH/components/esp-face \
61+
&& if [ $NO_GIT ]; then find $LIB_BUILDER_PATH/components/esp-face/.git -delete; fi
62+
RUN shallow_clone https://github.com/joltwallet/esp_littlefs master $LIB_BUILDER_PATH/components/esp_littlefs \
63+
&& git -C $LIB_BUILDER_PATH/components/esp_littlefs submodule update --progress --depth 1 --init --recursive \
64+
&& if [ $NO_GIT ]; then find $LIB_BUILDER_PATH/components/esp_littlefs/.git -delete; fi
65+
RUN shallow_clone https://github.com/espressif/esp-rainmaker master $LIB_BUILDER_PATH/components/esp-rainmaker \
66+
&& git -C $LIB_BUILDER_PATH/components/esp-rainmaker submodule update --progress --depth 1 --init --recursive \
67+
&& if [ $NO_GIT ]; then find $LIB_BUILDER_PATH/components/esp-rainmaker/.git -delete; fi
68+
69+
RUN echo "PATH=$PATH:/opt/esp/tools/xtensa-esp32-elf/bin:/opt/esp/tools/xtensa-esp32s2-elf/bin:/opt/esp/tools/riscv32-esp-elf/bin\n \
70+
cd $LIB_BUILDER_PATH\n \
71+
source $IDF_PATH/export.sh &> /dev/null" >> /root/.bashrc
72+
73+
RUN sed -i '16,21s/^/#/;/version.txt/d' $LIB_BUILDER_PATH/build.sh
74+
#RUN echo esp32s2-0-baaff84 > $LIB_BUILDER_PATH/version.txt
75+
76+
# All the little fixes
77+
RUN rm $LIB_BUILDER_PATH/components/esp32-camera/idf_component.yml
78+
RUN shallow_clone https://github.com/hathach/tinyusb ab4d30fd6bca02c73eb9b4ff82db0b2b0f403344 $LIB_BUILDER_PATH/components/arduino_tinyusb/tinyusb \
79+
&& if [ $NO_GIT ]; then find $LIB_BUILDER_PATH/components/arduino_tinyusb/tinyusb/.git -delete; fi
80+
81+
#COPY tinyusb/ $IDF_PATH/components/tinyusb/

Dockerfile-v40

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
FROM ubuntu:18.04
2+
3+
ARG DEBIAN_FRONTEND=noninteractive
4+
5+
RUN apt-get update && apt-get install -y \
6+
apt-utils bison ca-certificates ccache check cmake \
7+
curl flex git gperf lcov libncurses-dev libusb-1.0-0-dev \
8+
locales make nano ninja-build python3 python3-pip \
9+
rsync unzip vim wget xz-utils zip \
10+
&& apt-get autoremove -y \
11+
&& rm -rf /var/lib/apt/lists/* \
12+
&& update-alternatives --install /usr/bin/python python /usr/bin/python3 10
13+
14+
RUN locale-gen en_US.UTF-8
15+
ENV LC_ALL=en_US.UTF-8
16+
ENV LANG=en_US.UTF-8
17+
18+
RUN python -m pip install --upgrade pip virtualenv
19+
COPY shallow_clone /usr/bin/
20+
21+
ENV IDF_TOOLS_PATH=/opt/esp
22+
ENV IDF_PATH=/opt/esp/idf
23+
ENV LIB_BUILDER_PATH=/opt/esp/lib-builder
24+
ENV NO_GIT=1
25+
26+
RUN shallow_clone https://github.com/espressif/esp-idf 08219f3cf5689e5d0f6c8a0f150c842237b92271 $IDF_PATH
27+
# tinydtls has made the shallow pull fail
28+
RUN cd $IDF_PATH && git submodule update --progress --depth 1 --init --recursive \
29+
; rm $IDF_PATH/components/expat/expat/testdata/largefiles/* \
30+
&& if [ $NO_GIT ]; then \
31+
rm -rf $IDF_PATH/.git && find $IDF_PATH -name .git -delete; fi
32+
33+
RUN cd $IDF_PATH/components/coap/libcoap/ext \
34+
&& rm -rf tinydtls && git clone https://github.com/eclipse/tinydtls \
35+
&& cd tinydtls && git checkout 3b24a701ed5b0785306aa732e739ecb1eb3d03f8 \
36+
&& if [ $NO_GIT ]; then \
37+
rm -rf $IDF_PATH/components/coap/libcoap/ext/tinydtls/.git; fi
38+
39+
RUN sed -i "s/'--no-site-packages',//" $IDF_PATH/tools/idf_tools.py \
40+
&& $IDF_PATH/install.sh \
41+
&& rm -rf /root/.cache /root/.local \
42+
&& rm -rf /opt/esp/dist
43+
44+
RUN shallow_clone https://github.com/espressif/esp32-arduino-lib-builder release/v4.0 $LIB_BUILDER_PATH \
45+
&& sed -i '40s|^|source tools/config.sh\n\n|;41,46{s/^/#/}' $LIB_BUILDER_PATH/build.sh \
46+
&& sed -i 's|.*make.*|idf.py build\ntools/prepare-libs.sh|' $LIB_BUILDER_PATH/tools/build-libs.sh \
47+
&& sed -i 's|AR_INC=|rsync -amv $IDF_PATH/components/ out/tools/sdk/include/ --include "*/" --include "*.h" --exclude "*"\nAR_INC=|' $LIB_BUILDER_PATH/tools/prepare-libs.sh \
48+
&& sed 's/blink/lib-builder/' $IDF_PATH/examples/get-started/blink/CMakeLists.txt > $LIB_BUILDER_PATH/CMakeLists.txt \
49+
&& if [ $NO_GIT ]; then rm -rf .git; fi
50+
51+
RUN shallow_clone https://github.com/espressif/arduino-esp32 idf-release/v4.0 $LIB_BUILDER_PATH/components/arduino \
52+
&& cp $LIB_BUILDER_PATH/components/arduino/tools/sdk/sdkconfig $LIB_BUILDER_PATH \
53+
&& rm -rf $LIB_BUILDER_PATH/components/arduino/tools/sdk
54+
RUN sed -i "/setup()/d ; /loop()/d" $LIB_BUILDER_PATH/components/arduino/cores/esp32/main.cpp \
55+
&& if [ $NO_GIT ]; then rm -rf $LIB_BUILDER_PATH/components/arduino/.git; fi
56+
57+
RUN shallow_clone https://github.com/espressif/esp32-camera/ 452df1d0d151821fc724c561d261593053f43ef3 $LIB_BUILDER_PATH/components/esp32-camera \
58+
&& if [ $NO_GIT ]; then rm -rf $LIB_BUILDER_PATH/components/camera/.git; fi
59+
RUN shallow_clone https://github.com/espressif/esp-face/ b4a2ef17043b5d62564cdb71d190d1f36f38f171 $LIB_BUILDER_PATH/components/esp-face \
60+
&& if [ $NO_GIT ]; then rm -rf $LIB_BUILDER_PATH/components/esp-face/.git; fi
61+
62+
RUN echo "PATH=$IDF_TOOLS_PATH/xtensa-esp32-elf/bin:$PATH\n \
63+
cd $LIB_BUILDER_PATH\n \
64+
source $IDF_PATH/export.sh &> /dev/null" >> /root/.bashrc

Dockerfile-v42

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
FROM ubuntu:18.04
2+
3+
ARG DEBIAN_FRONTEND=noninteractive
4+
5+
RUN apt-get update && apt-get install -y \
6+
apt-utils bison ca-certificates ccache check cmake curl \
7+
flex git gperf lcov libncurses-dev libusb-1.0-0-dev \
8+
locales make nano ninja-build python3 python3-pip \
9+
unzip vim wget xz-utils zip \
10+
&& apt-get autoremove -y \
11+
&& rm -rf /var/lib/apt/lists/* \
12+
&& update-alternatives --install /usr/bin/python python /usr/bin/python3 10
13+
14+
RUN locale-gen en_US.UTF-8
15+
ENV LANG=en_US.UTF-8
16+
ENV LC_ALL=en_US.UTF-8
17+
18+
RUN python -m pip install --no-cache-dir --upgrade pip virtualenv
19+
20+
COPY shallow_clone /usr/bin/
21+
ENV IDF_PATH=/opt/esp/idf
22+
ENV LIB_BUILDER_PATH=/opt/esp/lib-builder
23+
ENV NO_GIT=1
24+
25+
RUN mkdir -p /opt/esp/tools
26+
ADD dist/xtensa-esp32-elf-gcc8_4_0-esp-2020r3-linux-amd64.tar.gz /opt/esp/tools/
27+
ADD dist/xtensa-esp32s2-elf-gcc8_4_0-esp-2020r3-linux-amd64.tar.gz /opt/esp/tools/
28+
ADD dist/binutils-esp32s2ulp-linux-amd64-2.28.51-esp-20191205.tar.gz /opt/esp/tools/
29+
ADD dist/binutils-esp32ulp-linux-amd64-2.28.51-esp-20191205.tar.gz /opt/esp/tools/
30+
ADD dist/openocd-esp32-linux64-0.10.0-esp32-20200709.tar.gz /opt/esp/tools/
31+
32+
RUN shallow_clone https://github.com/espressif/esp-idf master $IDF_PATH \
33+
&& cd $IDF_PATH && git submodule update --progress --depth 1 --init --recursive \
34+
&& rm $IDF_PATH/components/expat/expat/testdata/largefiles/* \
35+
&& if [ $NO_GIT ]; then \
36+
rm -rf $IDF_PATH/.git && find $IDF_PATH -name .git -delete; fi
37+
38+
39+
RUN sed -i 's/"install.*/"install": "never",/' $IDF_PATH/tools/tools.json
40+
RUN sed -i "s/'--no-site-packages',//" $IDF_PATH/tools/idf_tools.py \
41+
&& $IDF_PATH/install.sh \
42+
&& rm -rf /root/.cache /root/.local \
43+
&& true
44+
# && rm /opt/esp/dist/*
45+
46+
RUN shallow_clone https://github.com/espressif/esp32-arduino-lib-builder release/v4.2 $LIB_BUILDER_PATH \
47+
&& if [ $NO_GIT ]; then find $LIB_BUILDER_PATH/.git -delete; fi
48+
49+
RUN shallow_clone https://github.com/espressif/arduino-esp32 idf-release/v4.2 $LIB_BUILDER_PATH/components/arduino \
50+
&& mv $LIB_BUILDER_PATH/components/arduino/tools/sdk/esp32/sdkconfig $LIB_BUILDER_PATH/sdkconfig.esp32 \
51+
&& mv $LIB_BUILDER_PATH/components/arduino/tools/sdk/esp32s2/sdkconfig $LIB_BUILDER_PATH/sdkconfig.esp32s2 \
52+
&& rm -rf $LIB_BUILDER_PATH/components/arduino/tools/sdk \
53+
&& if [ $NO_GIT ]; then find $LIB_BUILDER_PATH/components/arduino/.git -delete; fi
54+
55+
RUN shallow_clone https://github.com/espressif/esp32-camera/ master $LIB_BUILDER_PATH/components/esp32-camera \
56+
&& if [ $NO_GIT ]; then find $LIB_BUILDER_PATH/components/esp32-camera/.git -delete; fi
57+
RUN shallow_clone https://github.com/espressif/esp-face/ master $LIB_BUILDER_PATH/components/esp-face \
58+
&& if [ $NO_GIT ]; then find $LIB_BUILDER_PATH/components/esp-face/.git -delete; fi
59+
RUN shallow_clone https://github.com/joltwallet/esp_littlefs master $LIB_BUILDER_PATH/components/esp_littlefs \
60+
&& git -C $LIB_BUILDER_PATH/components/esp_littlefs submodule update --progress --depth 1 --init --recursive \
61+
&& if [ $NO_GIT ]; then find $LIB_BUILDER_PATH/components/esp_littlefs/.git -delete; fi
62+
63+
RUN echo "PATH=$PATH:/opt/esp/tools/xtensa-esp32-elf/bin:/opt/esp/tools/xtensa-esp32s2-elf/bin\n \
64+
cd $LIB_BUILDER_PATH\n \
65+
source $IDF_PATH/export.sh &> /dev/null" >> /root/.bashrc
66+
67+
RUN sed -i '16,21s/^/#/;/version.txt/d' $LIB_BUILDER_PATH/build.sh
68+
RUN echo esp32s2-0-baaff84 > $LIB_BUILDER_PATH/version.txt
69+
70+
# All the little fixes
71+
COPY tinyusb/ $IDF_PATH/components/tinyusb/

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
These are the source scripts to build the docker images kept at https://hub.docker.com/r/lbernstone/esp32-arduino-lib-builder/

0 commit comments

Comments
 (0)