Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@ FROM amazonlinux:2023
ENV PIP_ROOT_USER_ACTION ignore
ENV LANG C.UTF-8

# Install HDF5 from source for Opensearch Benchmark compatibility with ARM
ARG HDF5_VERSION=1.14.4
RUN curl -L -o /tmp/hdf5.tar.gz https://github.com/HDFGroup/hdf5/archive/refs/tags/hdf5_${HDF5_VERSION}.tar.gz

# procps-ng used for enabling 'watch' command on console
RUN dnf install -y --setopt=install_weak_deps=False \
curl-minimal \
diffutils \
gcc \
gcc-c++\
clang \
git \
glibc-devel \
hostname \
Expand All @@ -32,15 +35,22 @@ RUN dnf install -y --setopt=install_weak_deps=False \
dnf clean all && \
rm -rf /var/cache/dnf

# Install HDF5 from source for Opensearch Benchmark compatibility with ARM
ARG HDF5_VERSION=1.14.4
ADD https://github.com/HDFGroup/hdf5/archive/refs/tags/hdf5_${HDF5_VERSION}.tar.gz /tmp/hdf5.tar.gz
ENV CFLAGS "-w"
ENV CC clang
ENV CXX clang++
RUN mkdir /tmp/hdf5 && \
tar -xzf /tmp/hdf5.tar.gz -C /tmp/hdf5 --strip-components=1 && \
rm /tmp/hdf5.tar.gz
WORKDIR /tmp/hdf5
RUN CFLAGS="-w" ./configure --prefix=/usr/local --disable-tests --disable-tools && \
make -j$(nproc) && \

RUN ./configure --prefix=/usr/local \
--disable-tests \
--disable-dependency-tracking \
--disable-fortran \
--disable-static \
--disable-parallel \
--disable-tools && \
make -s -j$(nproc) && \
make install && \
rm -rf /tmp/hdf5

Expand Down
Loading