Skip to content

Commit

Permalink
update Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanbez committed Aug 22, 2024
1 parent 9861e1c commit 6147b12
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions docker/ubuntu-20.04-hdf5-1.14.1-compression/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,18 @@ RUN apt-get update \
pkg-config \
cmake \
libtool \
zlib1g-dev \
zlib1g-dev \
libaec0 \
libaec-dev \
python3 \
python3-pip \
python3-dev \
python3-setuptools \
gcc \
g++ \
libopenmpi-dev \
software-properties-common
software-properties-common \
&& ldconfig
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null \
&& sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ focal main' \
&& apt-get update \
Expand All @@ -39,7 +42,7 @@ RUN wget https://github.com/HDFGroup/hdf5/archive/refs/tags/hdf5-1_14_1.tar.gz \
&& mv hdf5-hdf5-1_14_1 hdf5 \
&& cd hdf5 \
&& ./autogen.sh \
&& CC=mpicc ./configure --prefix=/opt/hdf5 --enable-parallel --enable-threadsafe --enable-shared --enable-unsupported \
&& CC=mpicc CXX=mpicxx ./configure --prefix=/opt/hdf5 --enable-parallel --enable-cxx --enable-threadsafe --enable-shared --disable-static --enable-unsupported --with-zlib=yes --with-szlib=yes \
&& make -j 8 \
&& make install
RUN cd ~ \
Expand All @@ -63,12 +66,14 @@ RUN cd ~ \
&& make install
RUN cd ~ \
&& export HDF5_DIR=/opt/hdf5 \
&& export ZFP_DIR=/opt/zfp/lib64/cmake/zfp \
&& export PATH=/opt/hdf5/bin:$PATH \
&& export LD_LIBRARY_PATH=/opt/hdf5/lib:$LD_LIBRARY_PATH \
&& export ZFP_DIR=/opt/zfp/lib/cmake/zfp \
&& git clone https://github.com/LLNL/H5Z-ZFP \
&& cd H5Z-ZFP \
&& mkdir build \
&& cd build \
&& CC=mpicc cmake -DCMAKE_INSTALL_PREFIX=/opt/H5Z-ZFP -DFORTRAN_INTERFACE=OFF -DCMAKE_PREFIX_PATH="/opt/hdf5;/opt/zfp" .. \
&& CC=mpicc cmake -DCMAKE_INSTALL_PREFIX=/opt/H5Z-ZFP -DFORTRAN_INTERFACE=OFF .. \
&& make \
&& make install
RUN rm -rf /var/lib/apt/lists/* \
Expand Down

0 comments on commit 6147b12

Please sign in to comment.