Private
Public Access
2
0

travis: improve docker images generation for building

Make a build heriarchy to reduce images size.
Add Android Thing Build.

Signed-off-by: Nicolas Oliver <dario.n.oliver@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Nicolas Oliver
2017-07-04 10:44:13 -07:00
committed by Brendan Le Foll
parent 3d77c86634
commit 4bedd68c4e
12 changed files with 423 additions and 197 deletions

43
docker/Dockerfile.base Normal file
View File

@@ -0,0 +1,43 @@
FROM ubuntu:16.04
ENV DEBIAN_FRONTEND noninteractive
# Update apt-get
RUN apt-get -y update && \
# Install apt-utils
apt-get -y --no-install-recommends install apt-utils && \
# Main Build Dependencies
apt-get -y --no-install-recommends install git build-essential cmake clang-3.8 \
g++-4.8 wget ca-certificates libpcre3 libpcre3-dev python unzip \
# Docs Build Dependencies
python-sphinx doxygen graphviz \
# Json Platform Build Dependencies
pkg-config libjson0 libjson0-dev \
# Imraa Platform Build Dependencies
libudev-dev \
# Doc Build Dependencies
python-sphinx doxygen graphviz
# Set library download folder to /opt
WORKDIR /opt
# Swig Build Dependencies
ARG SWIG_VERSION=3.0.10
RUN wget -q http://iotdk.intel.com/misc/tr/swig-$SWIG_VERSION.tar.gz && \
tar xf swig-$SWIG_VERSION.tar.gz && cd swig-$SWIG_VERSION && \
./configure --prefix=/usr/ && make -j8 && make -j8 install && cd .. && \
rm -fr /opt/swig-$SWIG_VERSION.tar.gz
# FTDI4222 Build Dependencies
ARG FTDI4222_VERSION=linux-1.3.1.117
RUN mkdir libft4222-$FTDI4222_VERSION && cd libft4222-$FTDI4222_VERSION && \
wget -q http://www.ftdichip.com/Support/SoftwareExamples/libft4222-$FTDI4222_VERSION.tgz && \
tar xf libft4222-$FTDI4222_VERSION.tgz && ./install4222.sh && \
rm -fr libft4222-$FTDI4222_VERSION.tgz
# Set Workdir
ARG MRAA_SRC_DIR=/usr/src/app
ENV MRAA_SRC_DIR $MRAA_SRC_DIR
WORKDIR $MRAA_SRC_DIR
CMD bash