-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build a newer cmake in Docker image.
- Loading branch information
1 parent
ee745fa
commit b91d663
Showing
1 changed file
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |