Skip to content

Instantly share code, notes, and snippets.

@hoihu
Last active May 8, 2016 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hoihu/bebcb195287233b7c6ff477e235d2fc4 to your computer and use it in GitHub Desktop.
Save hoihu/bebcb195287233b7c6ff477e235d2fc4 to your computer and use it in GitHub Desktop.
Docker file for ESPOpen Development (8266)
FROM ubuntu:14.04
# Don't ask user options when installing
env DEBIAN_FRONTEND noninteractive
RUN echo APT::Install-Recommends "0"; >> /etc/apt/apt.conf
RUN echo APT::Install-Suggests "0"; >> /etc/apt/apt.conf
# multiverse is required by unrar
RUN apt-get -y update && apt-get install -y \
git \
software-properties-common \
python-software-properties \
&& add-apt-repository -y "deb http://archive.ubuntu.com/ubuntu precise multiverse"
RUN apt-get update && apt-get install -y \
unrar \
make \
autoconf \
automake \
libtool \
gcc \
g++ \
gperf \
flex \
bison \
texinfo \
gawk \
ncurses-dev \
libexpat-dev \
python \
python-serial sed \
unzip \
bash \
wget
## Clean apt cache
RUN apt-get -y autoremove && \
apt-get -y clean && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /tmp/*
# create user xtensa
RUN useradd -ms /bin/bash xtensa
USER xtensa
WORKDIR /home/xtensa
ENV PATH /home/xtensa/esp-open-sdk/xtensa-lx106-elf/bin:$PATH
# GIT checkout and make toolchain
RUN git clone --recursive https://github.com/pfalcon/esp-open-sdk.git
WORKDIR /home/xtensa/esp-open-sdk
RUN make
## if you want to build the 8266 uPy fw:
WORKDIR /home/xtensa
RUN git clone --recursive https://github.com/micropython/micropython.git
WORKDIR /home/xtensa/micropython/esp8266
RUN make axtls
RUN make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment