Skip to content

Instantly share code, notes, and snippets.

@akkornel
Last active April 16, 2017 22:31
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 akkornel/d43b65b7017ce69f269093b9d471052e to your computer and use it in GitHub Desktop.
Save akkornel/d43b65b7017ce69f269093b9d471052e to your computer and use it in GitHub Desktop.
Updated bootstrap, with unzip package being installed
# vim: ts=4 sw=4 noet
# Stanford Quake Lab bufferbox workflow container bootstrap
BootStrap: yum
OSVersion: 7
MirrorURL: http://yum.stanford.edu/mrepo/centos%{OSVERSION}-x86_64/RPMS.all/
Include: perl unzip
%setup
echo 'Downloading the workflow software...'
curl -o ${SINGULARITY_ROOTFS}/tmp/quake-bufferbox-workflow.zip 'https://code.stanford.edu/research-computing-public/quake-bufferbox-workflow/repository/archive.zip?ref=release%2F1'
%post
echo 'Unpacking and moving workflow software...'
mkdir /workflow
unzip /tmp/quake-bufferbox-workflow.zip
mv quake-bufferbox-workflow-release*/* /workflow/
echo 'Removing workflow archive...'
rmdir quake-bufferbox-workflow-release*
rm /tmp/quake-bufferbox-workflow.zip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment