StanfordCosyne/pancakes:spm12
$ singularity pull shub://StanfordCosyne/pancakes:spm12
Singularity Recipe
Bootstrap: docker
From: continuumio/miniconda3
#
# sudo singularity build spm12 Singularity.spm12
# sudo singularity build --sandbox spm12-dev Singularity.spm12
#
################################################################################
# Global
%labels
MATLAB_VERSION R2017b
SPM_VERSION 12
%environment
#############################
# Software Paths
#############################
MATLAB_VERSION=R2017b
MCR_VERSION=v93
LD_LIBRARY_PATH=/opt/mcr/${MCR_VERSION}/runtime/glnxa64:/opt/mcr/${MCR_VERSION}/bin/glnxa64:/opt/mcr/${MCR_VERSION}/sys/os/glnxa64:/opt/mcr/${MCR_VERSION}/sys/opengl/lib/glnxa64
MCR_INHIBIT_CTF_LOCK=1
SPM_VERSION=12
SPM_REVISION=r7244
SPM_DIR=/opt/spm${SPM_VERSION}
SPM_EXEC=${SPM_DIR}/spm${SPM_VERSION}
export MATLAB_VERSION MCR_VERSION LD_LIBRARY_PATH MCR_INHIBIT_CTF_LOCK
export SPM_DIR SPM_EXEC SPM_VERSION SPM_REVISION
%post
apt-get -qq update && apt-get -qq install -y \
unzip \
xorg \
wget
#############################
# Matlab Environment
#############################
MATLAB_VERSION=R2017b
export MATLAB_VERSION
mkdir -p /opt/mcr_install && \
mkdir -p /opt/mcr && \
wget -P /opt/mcr_install http://www.mathworks.com/supportfiles/downloads/${MATLAB_VERSION}/deployment_files/${MATLAB_VERSION}/installers/glnxa64/MCR_${MATLAB_VERSION}_glnxa64_installer.zip && \
unzip -q /opt/mcr_install/MCR_${MATLAB_VERSION}_glnxa64_installer.zip -d /opt/mcr_install && \
/opt/mcr_install/install -destinationFolder /opt/mcr -agreeToLicense yes -mode silent && \
rm -rf /opt/mcr_install
MCR_VERSION=v93
LD_LIBRARY_PATH=/opt/mcr/${MCR_VERSION}/runtime/glnxa64:/opt/mcr/${MCR_VERSION}/bin/glnxa64:/opt/mcr/${MCR_VERSION}/sys/os/glnxa64:/opt/mcr/${MCR_VERSION}/sys/opengl/lib/glnxa64
MCR_INHIBIT_CTF_LOCK=1
export MATLAB_VERSION MCR_VERSION LD_LIBRARY_PATH MCR_INHIBIT_CTF_LOCK
#############################
# SPM
#############################
SPM_VERSION=12
SPM_REVISION=r7244
SPM_DIR=/opt/spm${SPM_VERSION}
SPM_EXEC=${SPM_DIR}/spm${SPM_VERSION}
export SPM_DIR SPM_EXEC SPM_VERSION SPM_REVISION
wget -P /opt http://www.fil.ion.ucl.ac.uk/spm/download/restricted/bids/spm${SPM_VERSION}_${SPM_REVISION}_Linux_${MATLAB_VERSION}.zip && \
unzip -q /opt/spm${SPM_VERSION}_${SPM_REVISION}_Linux_${MATLAB_VERSION}.zip -d /opt && \
rm -f /opt/spm${SPM_VERSION}_${SPM_REVISION}_Linux_${MATLAB_VERSION}.zip && \
${SPM_EXEC} function exit
chmod 0755 ${SPM_EXEC}
%runscript
HOME=$(mktemp -d --suffix=.matlab)
exec ${SPM_EXEC} script $@
Collection
- Name: StanfordCosyne/pancakes
- License: None
View on Datalad
Metrics
key | value |
---|---|
id | /containers/StanfordCosyne-pancakes-spm12 |
collection name | StanfordCosyne/pancakes |
branch | master |
tag | spm12 |
commit | 599d0ad5fba9ac24932650f569df856fe6556459 |
version (container hash) | 46635421c55a6ddb552d4f73e319c74e |
build date | 2018-02-13T08:25:31.518Z |
size (MB) | 4327 |
size (bytes) | 1861881887 |
SIF | Download URL (please use pull with shub://) |
Datalad URL | View on Datalad |
Singularity Recipe | Singularity Recipe on Datalad |
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.