Skip to content

Instantly share code, notes, and snippets.

@icaoberg
Last active April 23, 2021 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icaoberg/65118b1b27146a809e8165b55141a4f8 to your computer and use it in GitHub Desktop.
Save icaoberg/65118b1b27146a809e8165b55141a4f8 to your computer and use it in GitHub Desktop.
Basic Spack+Singularity recipe
Bootstrap: docker
From: spack/ubuntu-bionic
%labels
MAINTAINER icaoberg
EMAIL icaoberg@psc.edu
WEBSITE http://github.com/icaoberg/singularity-<PACKAGE-NAME>
COPYRIGHT Copyright © 2021 Pittsburgh Supercomputing Center. All Rights Reserved.
VERSION <PACKAGE-VERSION>
%environment
export PATH=/opt/spack/bin/:$PATH
source /etc/profile.d/modules.sh
source /opt/spack/share/spack/setup-env.sh
spack load gromacs
%post
export PATH=/opt/spack/bin/:$PATH
apt-get update
#Insert Spack commands below
spack install <PACKAGE-NAME>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment