diff --git a/TrafficCapture/dockerSolution/src/main/docker/elasticsearchTestConsole/Dockerfile b/TrafficCapture/dockerSolution/src/main/docker/elasticsearchTestConsole/Dockerfile index c3593132a5..deb56ef95a 100644 --- a/TrafficCapture/dockerSolution/src/main/docker/elasticsearchTestConsole/Dockerfile +++ b/TrafficCapture/dockerSolution/src/main/docker/elasticsearchTestConsole/Dockerfile @@ -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 \ @@ -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