Skip to content

Commit

Permalink
Create a Dockerfile for the ESP8266 build
Browse files Browse the repository at this point in the history
This docker file contains both the Espressif SDK and the xtensa tools, and makes it super-easy to create builds for ESP8266
  • Loading branch information
urish committed Mar 13, 2016
1 parent 610accf commit 0d030d5
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Dockerfile-esp8266
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM ubuntu:14.04

RUN apt-get update && apt-get install -y software-properties-common && apt-get update \
&& add-apt-repository ppa:terry.guo/gcc-arm-embedded \
&& apt-get update \
&& apt-get install -y git gcc-arm-none-eabi build-essential python curl

RUN git clone https://github.com/espruino/Espruino espruino

RUN curl -Ls http://s3.voneicken.com/xtensa-lx106-elf.tgx | tar Jxf -
RUN curl -Ls http://s3.voneicken.com/esp_iot_sdk_v1.5.0.tgx | tar Jxf -

WORKDIR /espruino

ENV ESP8266_BOARD=1
ENV ESP8266_SDK_ROOT=/esp_iot_sdk_v1.5.0
ENV RELEASE=1

#ENV PICO_1V3 1

ENV PATH "/xtensa-lx106-elf/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"

CMD ["make"]

0 comments on commit 0d030d5

Please sign in to comment.