-
Notifications
You must be signed in to change notification settings - Fork 54
/
build.sh
51 lines (40 loc) · 1.5 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/usr/bin/env bash
set -e
# this template file builds cat12, new versions here: http://141.35.69.218/cat12/?C=M;O=D
export toolName='cat12'
export toolVersion='r2166'
# Don't forget to update version change in README.md!!!!!
# inspired by: https://github.com/m-wierzba/cat-container/blob/master/Singularity
# discussed here: https://github.com/ReproNim/neurodocker/issues/407
if [ "$1" != "" ]; then
echo "Entering Debug mode"
export debug=$1
fi
source ../main_setup.sh
# once this is working contribute this to neurodocker project:
yes | pip uninstall neurodocker
pip install --no-cache-dir https://github.com/NeuroDesk/neurodocker/tarball/update_cat --upgrade
export MATLAB_VERSION=2017b
export MCR_VERSION=v93
export MCR_UPDATE=9
export CAT_VERSION=12.8
export CAT_REVISION=$toolVersion
neurodocker generate ${neurodocker_buildMode} \
--base-image ubuntu:16.04 \
--pkg-manager apt \
--run="printf '#!/bin/bash\nls -la' > /usr/bin/ll" \
--run="chmod +x /usr/bin/ll" \
--run="mkdir -p ${mountPointList}" \
--matlabmcr version=${MATLAB_VERSION} install_path=/opt/mcr \
--miniconda \
version=latest \
conda_install='python=3.8 traits nipype numpy scipy h5py scikit-image' \
pip_install='osfclient' \
--cat12 version=${toolVersion}_R${MATLAB_VERSION} install_path=/opt/cat12 \
--env DEPLOY_BINS=run_spm12.sh:spm12 \
--copy README.md /README.md \
> ${toolName}_${toolVersion}.${neurodocker_buildExt}
if [ "$1" != "" ]; then
./../main_build.sh
fi
# TESTS: