Skip to content

Commit

Permalink
Get HDF5 source archive from Github tag
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver committed Aug 14, 2024
1 parent 29b118a commit 052b405
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile_aarch64
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM quay.io/pypa/manylinux2014_aarch64

ENV HDF5_VERSION 1.14.2
ENV HDF5_VERSION 1.14.4.3
ENV HDF5_DIR /usr/local

COPY install_libaec.sh /tmp/install_libaec.sh
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile_x86_64
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM quay.io/pypa/manylinux2014_x86_64

ENV HDF5_VERSION 1.14.2
ENV HDF5_VERSION 1.14.4.3
ENV HDF5_DIR /usr/local

COPY install_libaec.sh /tmp/install_libaec.sh
Expand Down
12 changes: 6 additions & 6 deletions install_hdf5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ pushd /tmp
ldconfig

echo "Downloading & unpacking HDF5 ${HDF5_VERSION}"
# Remove trailing .*, to get e.g. '1.12' ↓
curl -fsSLO "https://www.hdfgroup.org/ftp/HDF5/releases/hdf5-${HDF5_VERSION%.*}/hdf5-$HDF5_VERSION/src/hdf5-$HDF5_VERSION.tar.gz"
tar -xzvf hdf5-$HDF5_VERSION.tar.gz
pushd hdf5-$HDF5_VERSION
HDF5_TAG="hdf5_${HDF5_VERSION}"
curl -fsSLO "https://github.com/HDFGroup/hdf5/archive/refs/tags/${HDF5_TAG}.tar.gz"
tar -xzvf $HDF5_TAG.tar.gz
pushd hdf5-$HDF5_TAG
chmod u+x autogen.sh

echo "Configuring, building & installing HDF5 ${HDF5_VERSION} to ${HDF5_DIR}"
Expand All @@ -23,7 +23,7 @@ popd

# Clean up to limit the size of the Docker image
echo "Cleaning up unnecessary files"
rm -r hdf5-$HDF5_VERSION
rm hdf5-$HDF5_VERSION.tar.gz
rm -r hdf5-$HDF5_TAG
rm $HDF5_TAG.tar.gz

yum -y erase zlib-devel

0 comments on commit 052b405

Please sign in to comment.