Skip to content

Commit

Permalink
try using conda compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
joezuntz committed Sep 3, 2024
1 parent 9f2a0a6 commit f3e42de
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions txpipe-min-failing/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,11 @@ ENV MPI_VERSION=4.0.2
# Show some linux version info
RUN cat /etc/*-release

# Install make
RUN apt-get update -y \
&& DEBIAN_FRONTEND="noninteractive" apt-get install -y make \
&& apt-get clean all
RUN mamba install compilers=1.7.0 make

# We need a C compiler temporarily to install MPICH.
# Then we install following instructions at
# Following:
# https://docs.nersc.gov/development/containers/shifter/how-to-use/#using-mpi-in-shifter
# We remove the installation afterwards
RUN apt-get update -y \
&& DEBIAN_FRONTEND="noninteractive" apt-get install -y gcc gfortran \
&& mkdir /opt/mpich \
&& cd /opt/mpich \
&& wget http://www.mpich.org/static/downloads/${MPI_VERSION}/mpich-${MPI_VERSION}.tar.gz \
Expand All @@ -26,6 +20,7 @@ RUN apt-get update -y \
&& make \
&& make install \
&& rm -rf /opt/mpich

RUN /sbin/ldconfig

# check we are using the conda python
Expand Down

0 comments on commit f3e42de

Please sign in to comment.