Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM archlinux/base
- # add user esp
- RUN useradd --user-group --create-home --shell /bin/false esp
- ENV HOME=/home/esp
- WORKDIR $HOME/toolchain
- RUN pacman --noconfirm -Sy archlinux-keyring && \
- pacman --noconfirm -Syu && \
- pacman --noconfirm -S glibc wget git gperf python2 python2-pyserial openssh core/sudo binutils gcc awk make fakeroot flex which bison python2-cryptography python2-future python2-pyparsing python2-pyelftools
- RUN git clone https://aur.archlinux.org/ncurses5-compat-libs.git && \
- chown -R esp ncurses5-compat-libs && \
- cd ncurses5-compat-libs && \
- sudo -u esp bash -c '/usr/bin/makepkg -s --skippgpcheck' && \
- pacman --noconfirm -U *.pkg.tar.xz
- RUN wget https://dl.espressif.com/dl/xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz && \
- tar -xzf xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz && \
- rm xtensa-esp32-elf-linux64-1.22.0-80-g6c4433a-5.2.0.tar.gz && \
- git clone https://github.com/espressif/esp-idf.git && \
- cd esp-idf && \
- git submodule update --init --recursive && \
- ENV PATH "$PATH:$HOME/toolchain/xtensa-esp32-elf/bin"
- ENV IDF_PATH "$HOME/toolchain/esp-idf"
- # RUN chown -R esp $HOME/toolchain
- # Basic es setup
- WORKDIR /home/esp/app
- # Setup directories
- RUN mkdir -p /home/esp/app
- RUN ln -s /usr/bin/python2 /usr/bin/python
- # Use user esp
- # USER esp
- ENTRYPOINT /bin/bash
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement