ResearchIT/spack-singularity:spack

$ singularity pull shub://ResearchIT/spack-singularity:spack

Singularity Recipe

Bootstrap:docker
From:centos:7

%labels
MAINTAINER baber@iastate.edu
spack

%environment
SPACK_ROOT=/opt/spack
export SPACK_ROOT
export PATH=$SPACK_ROOT/bin:$PATH
source /etc/profile.d/modules.sh
source $SPACK_ROOT/share/spack/setup-env.sh

%post
export SPACK_ROOT=/opt/spack
export SPACK_ROOT
export PATH=$SPACK_ROOT/bin:$PATH

#spack dependencies
yum -y install git python \
gcc gcc-c++ gcc-gfortran curl \
gnupg2 sed patch \
unzip gzip bzip2 \
findutils make vim \
environment-modules

yum clean all

#get spack
git clone https://github.com/spack/spack.git $SPACK_ROOT

#setup compilers.yaml
spack compiler find --scope system $(which gcc)
spack compiler find --scope system $(which g++)
spack compiler find --scope system $(which gfortran)

#setup modules config file
echo "modules:" >> /opt/spack/etc/spack/modules.yaml
echo "  tcl:" >> /opt/spack/etc/spack/modules.yaml
echo "    naming_scheme: '\${PACKAGE}/\${VERSION}'" >> /opt/spack/etc/spack/modules.yaml

source $SPACK_ROOT/share/spack/setup-env.sh

%runscript
spack help

Collection


View on Datalad

Metrics

key value
id /containers/ResearchIT-spack-singularity-spack
collection name ResearchIT/spack-singularity
branch master
tag spack
commit 1ec19eecb63e90753778fbeaf9f850d1d827d420
version (container hash) 0a6cb0d7ff00f05dc956f6e289a3c7d8
build date 2021-03-03T11:41:10.994Z
size (MB) 489
size (bytes) 201273375
SIF Download URL (please use pull with shub://)
Datalad URL View on Datalad
Singularity Recipe Singularity Recipe on Datalad
We cannot guarantee that all containers will still exist on GitHub.