Skip to content

Commit

Permalink
update name
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanbez committed Aug 15, 2024
1 parent 3ae9dd0 commit 9b17ba6
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 79 deletions.
79 changes: 0 additions & 79 deletions docker/ubuntu-20.04-hdf5-1.14.1-compress/Dockerfile

This file was deleted.

76 changes: 76 additions & 0 deletions docker/ubuntu-20.04-hdf5-1.14.1-compression/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
FROM ubuntu:focal

LABEL Description="Ubuntu 20.04 environment with HDF5 1.14.1 (compression filters)"

ENV DEBIAN_FRONTEND=noninteractive
ENV HDF5_LIBTOOL=/usr/bin/libtoolize

RUN apt-get update \
&& apt-get install -y \
git \
curl \
wget \
sudo \
gpg \
ca-certificates \
m4 \
autoconf \
automake \
libtool \
pkg-config \
cmake \
libtool \
zlib1g-dev \
python3 \
python3-pip \
python3-dev \
python3-setuptools \
gcc \
g++ \
libopenmpi-dev \
software-properties-common
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 \
&& apt-get install cmake -y \
&& pip3 install psutil
RUN wget https://github.com/HDFGroup/hdf5/archive/refs/tags/hdf5-1_14_1.tar.gz \
&& tar zxvf 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 \
&& make -j 8 \
&& make install
RUN cd ~ \
&& export PATH=/opt/hdf5/bin:$PATH \
&& export LD_LIBRARY_PATH=/opt/hdf5/lib:$LD_LIBRARY_PATH \
&& export HDF5_HOME=/opt/hdf5 \
&& git clone https://github.com/szcompressor/SZ3 \
&& cd SZ3 \
&& mkdir build \
&& cd build \
&& cmake -DCMAKE_INSTALL_PREFIX=/opt/SZ3 -DBUILD_H5Z_FILTER=ON .. \
&& make \
&& make install
RUN cd ~ \
&& git clone https://github.com/LLNL/zfp \
&& cd zfp \
&& mkdir build \
&& cd build \
&& cmake -DCMAKE_INSTALL_PREFIX=/opt/zfp -DZFP_BIT_STREAM_WORD_SIZE=8 .. \
&& make \
&& make install
RUN cd ~ \
&& export HDF5_DIR=/opt/hdf5 \
&& export ZFP_DIR=/opt/zfp/lib64/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" .. \
&& make \
&& make install
RUN rm -rf /var/lib/apt/lists/* \
&& apt-get clean \
&& apt-get autoclean

0 comments on commit 9b17ba6

Please sign in to comment.