diff --git a/docker/centos-6.7/Dockerfile b/docker/centos-6.7/Dockerfile index 0ec4244c..6fe32357 100644 --- a/docker/centos-6.7/Dockerfile +++ b/docker/centos-6.7/Dockerfile @@ -2,21 +2,30 @@ FROM centos:6.7 MAINTAINER Colm Ryan -#install gcc toolchain +# install gcc toolchain RUN yum update -y RUN yum install -y centos-release-scl-rh RUN yum install -y devtoolset-3-gcc devtoolset-3-gcc-c++ -#a few other tools +# a few other tools RUN yum install -y git cmake wget tar bzip2 -#default to the devtools toolchain +# default to the devtools toolchain RUN echo "source /opt/rh/devtoolset-3/enable" >> /root/.bashrc -#install hdf5 +# install hdf5 RUN source /opt/rh/devtoolset-3/enable && mkdir hdf5 && cd /hdf5 && \ wget http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.17.tar.bz2 && \ - tar xjf hdf5-1.8.17.tar.bz2 && \ + tar xf hdf5-1.8.17.tar.bz2 && \ cd hdf5-1.8.17 && \ ./configure --prefix=/usr/local/hdf5 --enable-cxx && \ make install + +# install a newer cmake +RUN source /opt/rh/devtoolset-3/enable && mkdir cmake && cd /cmake && \ + wget https://cmake.org/files/v3.6/cmake-3.6.3.tar.gz && \ + tar xf cmake-3.6.3.tar.gz && \ + cd cmake-3.6.3 && \ + cmake . && \ + make && \ + make install