|
| 1 | +# |
| 2 | +# Centos 7 Dockerfile for OCIO |
| 3 | +# |
| 4 | + |
| 5 | +# Pull base image |
| 6 | +FROM centos:7 |
| 7 | + |
| 8 | +LABEL maintainer="sean@seancooper.xyz" |
| 9 | + |
| 10 | +# Install yum hosted dependencies |
| 11 | +RUN yum -y install epel-release && \ |
| 12 | + yum -y install gcc-c++ \ |
| 13 | + make \ |
| 14 | + cmake3 \ |
| 15 | + git \ |
| 16 | + wget \ |
| 17 | + bzip2 \ |
| 18 | + file \ |
| 19 | + which \ |
| 20 | + patch \ |
| 21 | + python-devel.x86_64 \ |
| 22 | + python-sphinx \ |
| 23 | + glew-devel \ |
| 24 | + java \ |
| 25 | + libtiff-devel \ |
| 26 | + zlib \ |
| 27 | + libpng-devel \ |
| 28 | + libjpeg-turbo-devel \ |
| 29 | + bzip2-devel \ |
| 30 | + freeglut-devel \ |
| 31 | + libXmu-devel \ |
| 32 | + libXi-devel && \ |
| 33 | + yum -y clean all |
| 34 | + |
| 35 | +# Install Truelight library |
| 36 | +RUN mkdir /home/download && \ |
| 37 | + cd /home/download && \ |
| 38 | + wget -O truelight-4.0.7863_64.run --post-data 'access=public&download=truelight/4_0/truelight-4.0.7863_64.run&last_page=/support/customer-login/truelight_sp/truelight_40.php' https://www.filmlight.ltd.uk/resources/download.php && \ |
| 39 | + sh truelight-4.0.7863_64.run |
| 40 | + |
| 41 | +# Install Boost |
| 42 | +RUN cd /home/download && \ |
| 43 | + wget https://sourceforge.net/projects/boost/files/boost/1.61.0/boost_1_61_0.tar.gz && \ |
| 44 | + tar -xzf boost_1_61_0.tar.gz && \ |
| 45 | + cd boost_1_61_0 && \ |
| 46 | + sh bootstrap.sh && \ |
| 47 | + ./b2 install --prefix=/usr/local |
| 48 | + |
| 49 | +# Install OpenEXR |
| 50 | +RUN mkdir /home/git && \ |
| 51 | + cd /home/git && \ |
| 52 | + git clone https://github.com/openexr/openexr.git -b v2.2.1 && \ |
| 53 | + cd /home/git/openexr/IlmBase && \ |
| 54 | + mkdir /home/git/openexr/IlmBase/build && \ |
| 55 | + cd /home/git/openexr/IlmBase/build && \ |
| 56 | + cmake3 .. && \ |
| 57 | + make install -j2 && \ |
| 58 | + cd /home/git/openexr/OpenEXR && \ |
| 59 | + mkdir /home/git/openexr/OpenEXR/build && \ |
| 60 | + cd /home/git/openexr/OpenEXR/build && \ |
| 61 | + cmake3 -DILMBASE_PACKAGE_PREFIX=/usr/local .. && \ |
| 62 | + make install -j2 |
| 63 | + |
| 64 | +# Install OIIO |
| 65 | +RUN cd /home/git && \ |
| 66 | + git clone https://github.com/OpenImageIO/oiio.git -b RB-1.7 && \ |
| 67 | + cd /home/git/oiio && \ |
| 68 | + mkdir build && \ |
| 69 | + cd /home/git/oiio/build && \ |
| 70 | + cmake3 .. && \ |
| 71 | + make install -j2 |
| 72 | + |
| 73 | +# Remove cache |
| 74 | +RUN rm -rf /var/cache/yum && \ |
| 75 | + rm -R /home/git && \ |
| 76 | + rm -R /home/download |
0 commit comments