forked from particle-iot/buildpack-hal
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
30 lines (24 loc) · 1 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM particle/buildpack-base:0.3.6
MAINTAINER Digistump LLC <[email protected]>
# Get required packages to download the Oak libraries
RUN apt-get update && \
apt-get -y install wget unzip python make && \
apt-get clean
# Install OakCore libraries - note that this points to
# the latest "source code" zip release
RUN wget -O /oakCore.zip https://github.com/digistump/OakCore/archive/1.0.6.zip && \
unzip oakCore.zip && \
mv /OakCore-1.0.6 /oakCore
# Place supporting files into the right places
COPY bin /bin
RUN cp /oakCore/variants/oak/pins_arduino.* /oakCore/cores/oak/
# Run some setup scripts now to make subsequent processing a lot faster
# Setup tools required for building
RUN wget -O /oakCore/packages/package_digistump_index.json https://raw.githubusercontent.com/digistump/arduino-boards-index/1.0.6/package_digistump_index.json
RUN cd /oakCore/tools && \
python get.py
# Build pre-requsities
COPY makefile /oakCore/makefile
RUN cd /oakCore && \
. /bin/setup-env && \
make