Skip to content

Commit

Permalink
build: Don't reuse HPCX_DISTRIBUTION as an ARG variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Eta0 committed Oct 31, 2024
1 parent 8d39e97 commit e0dd612
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Dockerfile.ubuntu20
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ RUN apt-get -qq update \
ARG HPCX_DISTRIBUTION="hpcx-v2.20-gcc-mlnx_ofed-ubuntu20.04-cuda12"
ARG _HPCX_ARCH="${TARGETARCH/amd64/x86_64}"
ARG _HPCX_ARCH="${_HPCX_ARCH/arm64/aarch64}"
ARG HPCX_DISTRIBUTION="${HPCX_DISTRIBUTION}-${_HPCX_ARCH}"
ARG _HPCX_NAME="${HPCX_DISTRIBUTION}-${_HPCX_ARCH}"
RUN cd /tmp && \
export HPCX_DIR="/opt/hpcx" && \
wget -q -O - https://blobstore.object.ord1.coreweave.com/drivers/${HPCX_DISTRIBUTION}.tbz | tar xjf - && \
grep -IrlF "/build-result/${HPCX_DISTRIBUTION}" ${HPCX_DISTRIBUTION} | xargs -rd'\n' sed -i -e "s:/build-result/${HPCX_DISTRIBUTION}:${HPCX_DIR}:g" && \
mv ${HPCX_DISTRIBUTION} ${HPCX_DIR}
wget -q -O - https://blobstore.object.ord1.coreweave.com/drivers/${_HPCX_NAME}.tbz | tar xjf - && \
grep -IrlF "/build-result/${_HPCX_NAME}" ${_HPCX_NAME} | xargs -rd'\n' sed -i -e "s:/build-result/${_HPCX_NAME}:${HPCX_DIR}:g" && \
mv ${_HPCX_NAME} ${HPCX_DIR}

#FROM base as gdrcopy
#RUN apt-get -qq update && \
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile.ubuntu22
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ RUN apt-get -qq update \
ARG HPCX_DISTRIBUTION="hpcx-v2.20-gcc-mlnx_ofed-ubuntu22.04-cuda12"
ARG _HPCX_ARCH="${TARGETARCH/amd64/x86_64}"
ARG _HPCX_ARCH="${_HPCX_ARCH/arm64/aarch64}"
ARG HPCX_DISTRIBUTION="${HPCX_DISTRIBUTION}-${_HPCX_ARCH}"
ARG _HPCX_NAME="${HPCX_DISTRIBUTION}-${_HPCX_ARCH}"
RUN cd /tmp && \
export HPCX_DIR="/opt/hpcx" && \
wget -q -O - https://blobstore.object.ord1.coreweave.com/drivers/${HPCX_DISTRIBUTION}.tbz | tar xjf - && \
grep -IrlF "/build-result/${HPCX_DISTRIBUTION}" ${HPCX_DISTRIBUTION} | xargs -rd'\n' sed -i -e "s:/build-result/${HPCX_DISTRIBUTION}:${HPCX_DIR}:g" && \
mv ${HPCX_DISTRIBUTION} ${HPCX_DIR}
wget -q -O - https://blobstore.object.ord1.coreweave.com/drivers/${_HPCX_NAME}.tbz | tar xjf - && \
grep -IrlF "/build-result/${_HPCX_NAME}" ${_HPCX_NAME} | xargs -rd'\n' sed -i -e "s:/build-result/${_HPCX_NAME}:${HPCX_DIR}:g" && \
mv ${_HPCX_NAME} ${HPCX_DIR}

#FROM base as gdrcopy
#RUN apt-get -qq update && \
Expand Down

0 comments on commit e0dd612

Please sign in to comment.