Created
March 2, 2019 20:28
-
-
Save swanav/3426f1c6a1e07fb0f09fd5e09569a028 to your computer and use it in GitHub Desktop.
Dockerfile for swanav/esp-idf:ebdcbe8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:cosmic-20190131 | |
LABEL maintainer=Swanav<[email protected]> | |
WORKDIR /home/ | |
RUN apt-get update | |
RUN apt-get install -y gcc git wget make libncurses-dev flex bison gperf python python-pip python-setuptools python-serial python-cryptography python-future python-pyparsing | |
# Install the xtensa esp32 toolchain for compilation | |
RUN mkdir -p /root/esp | |
WORKDIR /root/esp | |
RUN wget https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz | |
RUN tar xfvz xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz | |
RUN rm xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz | |
ENV PATH "$PATH:/root/esp/xtensa-esp32-elf/bin" | |
RUN echo "export PATH=$PATH:/root/esp/xtensa-esp32-elf/bin" >> /root/.bashrc | |
# Install the ESP-IDF | |
RUN git clone https://github.com/espressif/esp-idf.git | |
WORKDIR /root/esp/esp-idf | |
RUN git reset --hard ebdcbe8 | |
RUN git submodule update --init --recursive | |
ENV IDF_PATH "/root/esp/esp-idf" | |
RUN echo "export IDF_PATH=/root/esp/esp-idf" >> /root/.bashrc | |
RUN mkdir -p /root/esp/projects | |
WORKDIR /root/esp/projects |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment