-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
110 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
Bootstrap: shub | ||
From: khanlab/neuroglia-dwi | ||
|
||
%labels | ||
Maintainer "Ali Khan" | ||
|
||
######### | ||
%setup | ||
######### | ||
mkdir -p $SINGULARITY_ROOTFS/opt/vasst-dev | ||
cp -Rv . $SINGULARITY_ROOTFS/opt/vasst-dev | ||
|
||
######### | ||
%post | ||
######### | ||
|
||
SINGULARITY_TAG=${SINGULARITY_BUILDDEF#Singularity.} | ||
|
||
cd /opt/vasst-dev | ||
if [ ! "$SINGULARITY_TAG" = "Singularity" ] | ||
then | ||
git checkout $SINGULARITY_TAG | ||
fi | ||
|
||
echo addpath\(genpath\(\'${PIPELINE_TOOL_DIR}/matlab\'\)\)\; >> /etc/octave.conf | ||
|
||
cd /opt/vasst-dev/install_scripts | ||
export DEBIAN_FRONTEND=noninteractive | ||
|
||
bash 05.install_MCR.sh /opt v92 R2017a | ||
bash 27.install_vasst_dev_atlases_by_source.sh /opt | ||
|
||
|
||
######### | ||
%environment | ||
|
||
|
||
|
||
#vasst-dev | ||
export VASST_DEV_HOME=/opt/vasst-dev | ||
export PIPELINE_ATLAS_DIR=/opt/atlases | ||
export PIPELINE_DIR=$VASST_DEV_HOME/pipeline | ||
export PIPELINE_TOOL_DIR=$VASST_DEV_HOME/tools | ||
MIAL_DEPENDS_DIR=$VASST_DEV_HOME/mial-depends | ||
#MIAL_DEPENDS_LIBS=$VASST_DEV_HOME/mial-depends/lib | ||
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MIAL_DEPENDS_LIBS | ||
export PIPELINE_CFG_DIR=$PIPELINE_DIR/cfg | ||
export PATH=$PIPELINE_TOOL_DIR:$MIAL_DEPENDS_DIR:$PATH | ||
export MCRBINS=$VASST_DEV_HOME/mcr/v92 | ||
for name in `ls -d $PIPELINE_DIR/*`; do export PATH=$name:$PATH; done | ||
#mcr - vasst-dev dependency | ||
export MCRROOT=/opt/mcr/v92 | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
Bootstrap: shub | ||
From: khanlab/neuroglia-dwi | ||
|
||
%labels | ||
Maintainer "Ali Khan" | ||
|
||
######### | ||
%setup | ||
######### | ||
mkdir -p $SINGULARITY_ROOTFS/opt/vasst-dev | ||
cp -Rv . $SINGULARITY_ROOTFS/opt/vasst-dev | ||
|
||
######### | ||
%post | ||
######### | ||
|
||
SINGULARITY_TAG=${SINGULARITY_BUILDDEF#Singularity.} | ||
|
||
cd /opt/vasst-dev | ||
if [ ! "$SINGULARITY_TAG" = "Singularity" ] | ||
then | ||
git checkout $SINGULARITY_TAG | ||
fi | ||
|
||
echo addpath\(genpath\(\'${PIPELINE_TOOL_DIR}/matlab\'\)\)\; >> /etc/octave.conf | ||
|
||
cd /opt/vasst-dev/install_scripts | ||
export DEBIAN_FRONTEND=noninteractive | ||
|
||
bash 05.install_MCR.sh /opt v92 R2017a | ||
bash 27.install_vasst_dev_atlases_by_source.sh /opt | ||
|
||
|
||
######### | ||
%environment | ||
|
||
|
||
|
||
#vasst-dev | ||
export VASST_DEV_HOME=/opt/vasst-dev | ||
export PIPELINE_ATLAS_DIR=/opt/atlases | ||
export PIPELINE_DIR=$VASST_DEV_HOME/pipeline | ||
export PIPELINE_TOOL_DIR=$VASST_DEV_HOME/tools | ||
MIAL_DEPENDS_DIR=$VASST_DEV_HOME/mial-depends | ||
#MIAL_DEPENDS_LIBS=$VASST_DEV_HOME/mial-depends/lib | ||
#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$MIAL_DEPENDS_LIBS | ||
export PIPELINE_CFG_DIR=$PIPELINE_DIR/cfg | ||
export PATH=$PIPELINE_TOOL_DIR:$MIAL_DEPENDS_DIR:$PATH | ||
export MCRBINS=$VASST_DEV_HOME/mcr/v92 | ||
for name in `ls -d $PIPELINE_DIR/*`; do export PATH=$name:$PATH; done | ||
#mcr - vasst-dev dependency | ||
export MCRROOT=/opt/mcr/v92 | ||
|
||
|
||
|