From b91d663c4d12605b21e8fa66eb3456da9b726a10 Mon Sep 17 00:00:00 2001 From: "Blake R. Johnson" Date: Wed, 9 Nov 2016 14:56:32 -0500 Subject: [PATCH] Build a newer cmake in Docker image. --- docker/centos-6.7/Dockerfile | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) 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