module file tutorial: rebuilt docker image and updated the script

This commit is contained in:
Massimiliano Culpo
2018-04-20 14:49:07 +02:00
committed by Todd Gamblin
parent 576f0c98d2
commit 7cbe1aedb7
2 changed files with 216 additions and 171 deletions

View File

@@ -36,8 +36,7 @@ RUN spack install lmod && spack clean -a
# Build a compiler
RUN spack install gcc@7.2.0 && spack clean -a
RUN /bin/bash -l -c ' \
spack load gcc@7.2.0 \
&& spack compiler add'
spack compiler add $(spack location -i gcc@7.2.0)/bin'
# Build the software on top of the compiler
RUN spack install netlib-scalapack ^openmpi ^openblas %gcc@7.2.0 \