diff --git a/scripts/build-ubuntu-16.4-ppa-docker.sh b/scripts/build-ubuntu-16.4-ppa-docker.sh new file mode 100755 index 0000000000..ae807afd9c --- /dev/null +++ b/scripts/build-ubuntu-16.4-ppa-docker.sh @@ -0,0 +1,25 @@ +#!/bin/bash +# Copyright (c) 2018, Intel Corporation +# +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included +# in all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR +# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +# OTHER DEALINGS IN THE SOFTWARE. + +git fetch -t +git clone ../compute-runtime neo +docker build -f scripts/docker/Dockerfile-ubuntu-16.04-ppa-gcc-5 -t neo-ubuntu-16.04-ppa-gcc-5:ci . + diff --git a/scripts/docker/Dockerfile-ubuntu-16.04-ppa-gcc-5 b/scripts/docker/Dockerfile-ubuntu-16.04-ppa-gcc-5 new file mode 100644 index 0000000000..083572d24c --- /dev/null +++ b/scripts/docker/Dockerfile-ubuntu-16.04-ppa-gcc-5 @@ -0,0 +1,13 @@ +FROM docker.io/ubuntu:16.04 +MAINTAINER Jacek Danecki + +COPY neo /root/neo + +RUN echo "deb http://ppa.launchpad.net/jdanecki/intel-opencl/ubuntu xenial main" >> /etc/apt/sources.list; \ + apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 7B77841DF9C7FE04; \ + apt-get -y update ; apt-get install -y --allow-unauthenticated cmake g++-5 git pkg-config ninja-build intel-igc-opencl-dev +RUN cd /root; git clone --depth 1 https://github.com/intel/gmmlib gmmlib +RUN mkdir /root/build; cd /root/build ; cmake -G Ninja -DBUILD_TYPE=Release -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_C_COMPILER=gcc-5 -DCMAKE_CXX_COMPILER=g++-5 ../neo; \ + ninja -j `nproc` +CMD ["/bin/bash"]