Skip to content

Commit

Permalink
Build a newer cmake in Docker image.
Browse files Browse the repository at this point in the history
  • Loading branch information
blakejohnson committed Nov 9, 2016
1 parent ee745fa commit b91d663
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions docker/centos-6.7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,30 @@ FROM centos:6.7

MAINTAINER Colm Ryan <[email protected]>

#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

0 comments on commit b91d663

Please sign in to comment.