Created
May 31, 2020 21:43
-
-
Save zouzias/1493c6d3376486e136e5bfcf987b5269 to your computer and use it in GitHub Desktop.
Dockerfile for Embree Renderer in Ubuntu 20.04 (based on https://github.com/ospray/hdospray-docker-images/blob/master/ubuntu17.04/Dockerfile)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:20.04 | |
ENV DEBIAN_FRONTEND=noninteractive | |
ENV ISPC_VERSION="1.9.2" | |
ENV EMBREE2_VERSION="2.17.4" | |
ENV EMBREE3_VERSION="3.2.0" | |
RUN apt update | |
RUN apt -yq upgrade | |
RUN apt -yq install wget cmake g++ clang git libtbb-dev libglfw3-dev libopenmpi-dev alien unzip | |
RUN mkdir /gitlab | |
ENV HOME=/gitlab | |
# All builds will be done in home dir | |
WORKDIR $HOME | |
# Download and unpack ISPC | |
RUN wget https://downloads.sourceforge.net/project/ispcmirror/v$ISPC_VERSION/ispc-v$ISPC_VERSION-linux.tar.gz && tar -xaf ispc-v$ISPC_VERSION-linux.tar.gz && rm ispc-v$ISPC_VERSION-linux.tar.gz | |
ENV PATH $PATH:$HOME/ispc-v${ISPC_VERSION}-linux | |
# Download and install embree | |
RUN wget https://github.com/embree/embree/releases/download/v$EMBREE2_VERSION/embree-$EMBREE2_VERSION.x86_64.rpm.tar.gz && \ | |
tar -xvf embree-$EMBREE2_VERSION.x86_64.rpm.tar.gz && \ | |
alien --scripts *.rpm && \ | |
dpkg -i *.deb && \ | |
rm embree-$EMBREE2_VERSION.x86_64.rpm.tar.gz *.rpm *.deb | |
RUN wget https://github.com/embree/embree/releases/download/v$EMBREE3_VERSION/embree-$EMBREE3_VERSION.x86_64.rpm.tar.gz && \ | |
tar -xvf embree-$EMBREE3_VERSION.x86_64.rpm.tar.gz && \ | |
alien --scripts *.rpm && \ | |
dpkg -i *.deb && \ | |
rm embree-$EMBREE3_VERSION.x86_64.rpm.tar.gz *.rpm *.deb | |
ENV CMAKE_PREFIX_PATH=/usr/lib64/cmake/embree-$EMBREE2_VERSION:/usr/lib64/cmake/embree-$EMBREE3_VERSION | |
# Embree is installed in /usr/lib64 so we have to add it to LD_LIBRARY_PATH | |
ENV LD_LIBRARY_PATH $LD_LIBRARY_PATH:/usr/lib64/ | |
# Install embree renderer | |
RUN wget http://github.com/embree/embree-renderer-bin/archive/v2.3.2_linux.zip && unzip v2.3.2_linux.zip | |
CMD ["/bin/bash"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
docker run -p 8484:8484 embree:latest /gitlab/embree-renderer-bin-2.3.2_linux/renderer_server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment