-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathDockerfile
28 lines (22 loc) · 1.48 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
FROM ubuntu:14.04
MAINTAINER Hisanari Otsu <hi2p.perim@gmail.com>
# Install some packages
RUN apt-get update -qq
RUN apt-get install -qq -y git software-properties-common
RUN add-apt-repository -y ppa:george-edison55/cmake-3.x
RUN apt-get update -qq
RUN apt-get install -qq -y python cmake build-essential libfreeimage-dev libboost-dev libboost-regex-dev libboost-program-options-dev libboost-system-dev libboost-filesystem-dev libboost-coroutine-dev libboost-context-dev freeglut3-dev libxmu-dev libxi-dev libglm-dev libyaml-cpp-dev libtbb-dev libeigen3-dev libctemplate-dev
# Install assimp
RUN git clone --depth=1 --branch v3.1.1 https://github.com/assimp/assimp.git assimp
RUN mkdir -p assimp/build && cd assimp/build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j 1 && make install
# Install embree
RUN git clone --depth=1 --branch v2.5.1 https://github.com/embree/embree.git embree
RUN mkdir -p embree/build && cd embree/build && cmake -D CMAKE_BUILD_TYPE=Release -D ENABLE_ISPC_SUPPORT=OFF -D RTCORE_TASKING_SYSTEM=INTERNAL -D ENABLE_TUTORIALS=OFF .. && make -j 1 && make install && cp libembree.so /usr/local/lib
# Add a project file to the container
COPY . /nanogi/
# Avois clock skew detected warning
RUN find /nanogi -print0 | xargs -0 touch
# Build nanogi
RUN mkdir -p nanogi/build && cd nanogi/build && BOOST_ROOT="" BOOST_INCLUDEDIR="/usr/include" BOOST_LIBRARYDIR="/usr/lib/x86_64-linux-gnu" cmake -DCMAKE_BUILD_TYPE=Release .. && make -j
ENV PATH /nanogi/build/bin:$PATH
#ENTRYPOINT ["nanogi"]