Skip to content

Commit

Permalink
add lustre to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
bdevcich committed Feb 6, 2025
1 parent 071dd89 commit 16f66a8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,11 @@ RUN git clone https://github.com/Cray/lustre.git \
&& ./configure --disable-server --enable-client --disable-tests --enable-mpitests=no --disable-gss-keyring --enable-gss=no -with-linux=/usr/src/linux-headers-6.1.0-30-amd64 \
&& make -j $(nproc) \
&& make install
# && make debs -j $(nproc)

RUN mkdir -p /deps /mfu
WORKDIR /deps

# Stash the lustre libraries to make it easier to copy
# Stash the lustre libraries to make it easier to copy out of this stage
RUN mkdir -p /deps/lustre/lib \
&& cp -r /usr/lib/*lustre* /deps/lustre/lib/

Expand Down Expand Up @@ -123,6 +122,7 @@ RUN cd build \
-DWITH_DTCMP_PREFIX=/deps/dtcmp/lib \
-DWITH_LibArchive_PREFIX=/deps/libarchive/lib \
-DCMAKE_INSTALL_PREFIX=/mfu \
-DENABLE_LUSTRE=ON \
-DCMAKE_BUILD_TYPE=Debug \
&& make install

Expand All @@ -132,7 +132,7 @@ RUN [ $(md5sum openmpi-$OPENMPI_VERSION.tar.gz | awk '{print $1}') = "$OPENMPI_M
RUN gunzip -c openmpi-$OPENMPI_VERSION.tar.gz | tar xf - \
&& cd openmpi-$OPENMPI_VERSION \
&& ./configure --prefix=/opt/openmpi-$OPENMPI_VERSION-debug --enable-debug \
&& make all install
&& make -j $(nproc) all install

###############################################################################
FROM mpioperator/openmpi:v$MPI_OPERATOR_VERSION AS production
Expand All @@ -156,6 +156,7 @@ RUN apt-get remove -y openmpi-bin
COPY --from=builder /opt/openmpi-$OPENMPI_VERSION /opt/openmpi-$OPENMPI_VERSION
RUN cp -r /opt/openmpi-$OPENMPI_VERSION/* /usr && rm -rf /openmpi*

# libreadline8 is necessary for dcp with lustre support
RUN apt-get update && apt-get install -y \
libreadline8 \
&& rm -rf /var/lib/apt/lists/*
Expand Down

0 comments on commit 16f66a8

Please sign in to comment.