Skip to content

Commit

Permalink
Install system specific hdf5 h5py
Browse files Browse the repository at this point in the history
  • Loading branch information
steffengraber authored Jul 5, 2023
1 parent 88d8235 commit 50caa9e
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions src/base/Dockerfile-build-base
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libboost-dev \
libgomp1 \
libgsl-dev \
libhdf5-dev \
libltdl7 \
libltdl-dev \
libmusic1v5 \
Expand All @@ -30,6 +31,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
pandoc \
pep8 \
python3-dev \
python3-h5py \
python3-ipython \
python3-jupyter-core \
python3-matplotlib \
Expand All @@ -49,7 +51,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
# update-alternatives --remove-all python && \
update-alternatives --install /usr/bin/python python /usr/bin/python3 10 && \
update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 10 && \
python3 -m pip install --upgrade pip setuptools wheel mock h5py
python3 -m pip install --upgrade pip setuptools wheel mock


# Install music
Expand All @@ -63,9 +65,9 @@ RUN cd . && wget https://github.com/INCF/MUSIC/archive/master.tar.gz && \
make install

# Install HDF5
RUN cd . && rm -f hdf5-1_8_12.tar.gz && wget https://github.com/HDFGroup/hdf5/archive/refs/tags/hdf5-1_8_12.tar.gz && \
gunzip < hdf5-1_8_12.tar.gz | tar xf - && \
rm -f hdf5-1_8_12..tar.gz && cd hdf5-hdf5-1_8_12 && \
./configure --prefix=/opt/hdf5 --enable-cxx && \
make && \
make install
# RUN cd . && rm -f hdf5-1_12_2.tar.gz && wget https://github.com/HDFGroup/hdf5/archive/refs/tags/hdf5-1_12_2.tar.gz && \
# gunzip < hdf5-1_12_2.tar.gz | tar xf - && \
# rm -f hdf5-1_12_2..tar.gz && cd hdf5-hdf5-1_12_2 && \
# ./configure --prefix=/opt/hdf5 --enable-cxx && \
# make && \
# make install

0 comments on commit 50caa9e

Please sign in to comment.