Files
babic_a 026114ff37 Separate base phdf5 image
Now the base phdf5 image is separated from the jf-live-writer
build. This is to allow for debug images of jf-live-writer to
be created without the need to go over the base image creation
process.
2021-04-08 12:54:59 +02:00

19 lines
682 B
Docker

FROM centos:centos7
RUN yum -y install centos-release-scl epel-release && \
yum -y update && \
yum -y install devtoolset-9 git cmake3 mpich-devel wget zeromq-devel
ENV PATH="/usr/lib64/mpich/bin:${PATH}"
ENV LD_LIBRARY_PATH="/usr/lib64/mpich/lib:${LD_LIBRARY_PATH}"
SHELL ["scl", "enable", "devtoolset-9"]
RUN wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.12/hdf5-1.12.0/src/hdf5-1.12.0.tar.gz && \
tar -xzf hdf5-1.12.0.tar.gz
WORKDIR /hdf5-1.12.0
RUN ./configure --enable-parallel && make install
RUN ln -v -s `pwd`/hdf5/lib/* /usr/lib64/ && \
ln -v -s `pwd`/hdf5/include/* /usr/include/ && \
ln -v -s /usr/include/mpich-x86_64/* /usr/include/