-
Notifications
You must be signed in to change notification settings - Fork 35
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
1 parent
6d40956
commit c52c7f0
Showing
4 changed files
with
76 additions
and
62 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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Generated by Neurodocker version 0.4.2-3-gf7055a1 | ||
# Timestamp: 2020-06-26 19:59:47 UTC | ||
# Timestamp: 2020-06-29 16:04:35 UTC | ||
# | ||
# Thank you for using Neurodocker. If you discover any issues | ||
# or ways to improve this software, please submit an issue or | ||
|
@@ -43,11 +43,6 @@ apt-get install -y -q --no-install-recommends \ | |
perl-modules \ | ||
wget \ | ||
curl \ | ||
python3 \ | ||
python3-pip \ | ||
python3-pandas \ | ||
python-pip \ | ||
python3-setuptools \ | ||
libsm-dev \ | ||
libx11-dev \ | ||
libxt-dev \ | ||
|
@@ -85,7 +80,30 @@ curl -fsSL --retry 5 ftp://surfer.nmr.mgh.harvard.edu/pub/dist/freesurfer/6.0.1/ | |
--exclude='freesurfer/trctrain' | ||
sed -i '$isource "/opt/freesurfer/SetUpFreeSurfer.sh"' "$ND_ENTRYPOINT" | ||
|
||
bash -c 'pip3 install nibabel pandas==0.21.0' | ||
export PATH="/opt/miniconda-latest/bin:$PATH" | ||
echo "Downloading Miniconda installer ..." | ||
conda_installer="/tmp/miniconda.sh" | ||
curl -fsSL --retry 5 -o "$conda_installer" https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh | ||
bash "$conda_installer" -b -p /opt/miniconda-latest | ||
rm -f "$conda_installer" | ||
conda update -yq -nbase conda | ||
conda config --system --prepend channels conda-forge | ||
conda config --system --set auto_update_conda false | ||
conda config --system --set show_channel_urls true | ||
sync && conda clean -tipsy && sync | ||
conda install -y -q --name base \ | ||
'python=3' \ | ||
'pip' \ | ||
'pandas' \ | ||
'setuptools' \ | ||
'pandas=0.21.0' | ||
sync && conda clean -tipsy && sync | ||
bash -c "source activate base | ||
pip install --no-cache-dir \ | ||
'nibabel'" | ||
rm -rf ~/.cache/pip/* | ||
sync | ||
|
||
|
||
bash -c 'curl -sL https://deb.nodesource.com/setup_6.x | bash -' | ||
|
||
|
@@ -97,8 +115,6 @@ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
|
||
bash -c 'npm install -g [email protected]' | ||
|
||
bash -c 'PATH=/usr/lib/fsl/5.0:$PATH' | ||
|
||
mkdir root/matlab && touch root/matlab/startup.m | ||
|
||
mkdir /scratch | ||
|
@@ -131,11 +147,6 @@ echo '{ | |
\n "perl-modules", | ||
\n "wget", | ||
\n "curl", | ||
\n "python3", | ||
\n "python3-pip", | ||
\n "python3-pandas", | ||
\n "python-pip", | ||
\n "python3-setuptools", | ||
\n "libsm-dev", | ||
\n "libx11-dev", | ||
\n "libxt-dev", | ||
|
@@ -151,8 +162,20 @@ echo '{ | |
\n } | ||
\n ], | ||
\n [ | ||
\n "run_bash", | ||
\n "pip3 install nibabel pandas==0.21.0" | ||
\n "miniconda", | ||
\n { | ||
\n "use_env": "base", | ||
\n "conda_install": [ | ||
\n "python=3", | ||
\n "pip", | ||
\n "pandas", | ||
\n "setuptools", | ||
\n "pandas=0.21.0" | ||
\n ], | ||
\n "pip_install": [ | ||
\n "nibabel" | ||
\n ] | ||
\n } | ||
\n ], | ||
\n [ | ||
\n "run_bash", | ||
|
@@ -181,10 +204,6 @@ echo '{ | |
\n } | ||
\n ], | ||
\n [ | ||
\n "run_bash", | ||
\n "PATH=/usr/lib/fsl/5.0:$PATH" | ||
\n ], | ||
\n [ | ||
\n "env", | ||
\n { | ||
\n "OS": "Linux", | ||
|
@@ -202,7 +221,7 @@ echo '{ | |
\n "FMRI_ANALYSIS_DIR": "/opt/freesurfer/fsfast", | ||
\n "PERL5LIB": "/opt/freesurfer/mni/share/perl5", | ||
\n "MNI_PERL5LIB": "/opt/freesurfer/mni/share/perl5/", | ||
\n "PATH": "/opt/freesurfer/bin:/opt/freesurfer/fsfast/bin:/opt/freesurfer/tktools:/opt/freesurfer/mni/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", | ||
\n "PATH": "/opt/miniconda-latest/bin:/opt/freesurfer/bin:/opt/freesurfer/fsfast/bin:/opt/freesurfer/tktools:/opt/freesurfer/mni/bin:/usr/lib/fsl/5.0:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", | ||
\n "PYTHONPATH": "" | ||
\n } | ||
\n ], | ||
|
@@ -249,6 +268,8 @@ export LC_ALL="en_US.UTF-8" | |
export ND_ENTRYPOINT="/neurodocker/startup.sh" | ||
export FREESURFER_HOME="/opt/freesurfer" | ||
export PATH="/opt/freesurfer/bin:$PATH" | ||
export CONDA_DIR="/opt/miniconda-latest" | ||
export PATH="/opt/miniconda-latest/bin:$PATH" | ||
export FSLDIR="/usr/share/fsl/5.0" | ||
export FSLOUTPUTTYPE="NIFTI_GZ" | ||
export FSLMULTIFILEQUIT="TRUE" | ||
|
@@ -271,7 +292,7 @@ export MNI_DATAPATH="/opt/freesurfer/mni/data" | |
export FMRI_ANALYSIS_DIR="/opt/freesurfer/fsfast" | ||
export PERL5LIB="/opt/freesurfer/mni/share/perl5" | ||
export MNI_PERL5LIB="/opt/freesurfer/mni/share/perl5/" | ||
export PATH="/opt/freesurfer/bin:/opt/freesurfer/fsfast/bin:/opt/freesurfer/tktools:/opt/freesurfer/mni/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | ||
export PATH="/opt/miniconda-latest/bin:/opt/freesurfer/bin:/opt/freesurfer/fsfast/bin:/opt/freesurfer/tktools:/opt/freesurfer/mni/bin:/usr/lib/fsl/5.0:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | ||
export PYTHONPATH="" | ||
|
||
%files | ||
|
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
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