File tree Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Expand file tree Collapse file tree 2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM debian:stretch-slim
2+
3+ ENV OPENMPI_VERSION=3.1.3 \
4+ LD_LIBRARY_PATH=/usr/local/lib
5+
6+ RUN apt-get update && apt-get install -y gcc ssh wget curl
7+
8+ RUN build_packages="build-essential" \
9+ && apt-get update \
10+ && apt-get install -y ${build_packages} \
11+ && repo="https://www.open-mpi.org/software/ompi/v3.1/downloads" \
12+ && curl --location --silent --show-error --output openmpi.tar.gz \
13+ "${repo}/openmpi-${OPENMPI_VERSION}.tar.gz" \
14+ && echo '2cf91c5fb8f18acab239f6a8df4c0f0cd4da760b openmpi.tar.gz' | sha1sum -c - \
15+ && tar xzf openmpi.tar.gz -C /tmp/ \
16+ && cd /tmp/openmpi-${OPENMPI_VERSION} \
17+ && ./configure --prefix=/usr/local \
18+ && make \
19+ && make install \
20+ && ldconfig \
21+ && cd / \
22+ && rm -rf /tmp/openmpi-${OPENMPI_VERSION} /openmpi.tar.gz \
23+ && apt-get purge -y --auto-remove ${build_packages}
Original file line number Diff line number Diff line change 1+ FROM debian:stretch-slim
2+
3+ ENV OPENMPI_VERSION=4.0.0 \
4+ LD_LIBRARY_PATH=/usr/local/lib
5+
6+ RUN apt-get update && apt-get install -y gcc ssh wget curl
7+
8+ RUN build_packages="build-essential" \
9+ && apt-get update \
10+ && apt-get install -y ${build_packages} \
11+ && repo="https://www.open-mpi.org/software/ompi/v4.0/downloads" \
12+ && curl --location --silent --show-error --output openmpi.tar.gz \
13+ "${repo}/openmpi-${OPENMPI_VERSION}.tar.gz" \
14+ && echo '951a6c18bd5117403455f5a1dd21e6e1157ef1d4 openmpi.tar.gz' | sha1sum -c - \
15+ && tar xzf openmpi.tar.gz -C /tmp/ \
16+ && cd /tmp/openmpi-${OPENMPI_VERSION} \
17+ && ./configure --prefix=/usr/local \
18+ && make \
19+ && make install \
20+ && ldconfig \
21+ && cd / \
22+ && rm -rf /tmp/openmpi-${OPENMPI_VERSION} /openmpi.tar.gz \
23+ && apt-get purge -y --auto-remove ${build_packages}
You can’t perform that action at this time.
0 commit comments