11# Generated by Neurodocker version 0.4.2-3-gf7055a1
2- # Timestamp: 2020-06-04 13:51:09 UTC
3- #
2+ # Timestamp: 2020-06-29 18:20:45 UTC
3+ #
44# Thank you for using Neurodocker. If you discover any issues
55# or ways to improve this software, please submit an issue or
66# pull request on our GitHub repository:
7- #
7+ #
88# https://github.com/kaczmarj/neurodocker
99
1010Bootstrap : docker
@@ -43,15 +43,12 @@ apt-get install -y -q --no-install-recommends \
4343 perl-modules \
4444 wget \
4545 curl \
46- python3 \
47- python3-pip \
48- python3-pandas \
49- python-pip \
5046 libsm-dev \
5147 libx11-dev \
5248 libxt-dev \
5349 libxext-dev \
54- libglu1-mesa
50+ libglu1-mesa \
51+ libpython2.7-stdlib
5552apt-get clean
5653rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
5754
@@ -84,7 +81,30 @@ curl -fsSL --retry 5 ftp://surfer.nmr.mgh.harvard.edu/pub/dist/freesurfer/6.0.1/
8481 --exclude=' freesurfer/trctrain'
8582sed -i ' $isource "/opt/freesurfer/SetUpFreeSurfer.sh"' " $ND_ENTRYPOINT "
8683
87- bash -c ' pip3 install nibabel pandas==0.21.0'
84+ export PATH=" /opt/miniconda-latest/bin:$PATH "
85+ echo " Downloading Miniconda installer ..."
86+ conda_installer=" /tmp/miniconda.sh"
87+ curl -fsSL --retry 5 -o " $conda_installer " https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
88+ bash " $conda_installer " -b -p /opt/miniconda-latest
89+ rm -f " $conda_installer "
90+ conda update -yq -nbase conda
91+ conda config --system --prepend channels conda-forge
92+ conda config --system --set auto_update_conda false
93+ conda config --system --set show_channel_urls true
94+ sync && conda clean -tipsy && sync
95+ conda install -y -q --name base \
96+ ' python=3' \
97+ ' pip' \
98+ ' pandas' \
99+ ' setuptools' \
100+ ' pandas=0.21.0'
101+ sync && conda clean -tipsy && sync
102+ bash -c " source activate base
103+ pip install --no-cache-dir \
104+ 'nibabel'"
105+ rm -rf ~/.cache/pip/*
106+ sync
107+
88108
89109bash -c ' curl -sL https://deb.nodesource.com/setup_6.x | bash -'
90110
@@ -96,8 +116,6 @@ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
96116
97117bash -c ' npm install -g bids-validator@0.19.8'
98118
99- bash -c ' PATH=/usr/lib/fsl/5.0:$PATH'
100-
101119mkdir root/matlab && touch root/matlab/startup.m
102120
103121mkdir /scratch
@@ -130,16 +148,12 @@ echo '{
130148\n "perl-modules",
131149\n "wget",
132150\n "curl",
133- \n "python3",
134- \n "python3-pip",
135- \n "python3-pandas",
136- \n "python2.7",
137- \n "python-pip",
138151\n "libsm-dev",
139152\n "libx11-dev",
140153\n "libxt-dev",
141154\n "libxext-dev",
142- \n "libglu1-mesa"
155+ \n "libglu1-mesa",
156+ \n "libpython2.7-stdlib"
143157\n ]
144158\n ],
145159\n [
@@ -150,8 +164,20 @@ echo '{
150164\n }
151165\n ],
152166\n [
153- \n "run_bash",
154- \n "pip3 install nibabel pandas==0.21.0"
167+ \n "miniconda",
168+ \n {
169+ \n "use_env": "base",
170+ \n "conda_install": [
171+ \n "python=3",
172+ \n "pip",
173+ \n "pandas",
174+ \n "setuptools",
175+ \n "pandas=0.21.0"
176+ \n ],
177+ \n "pip_install": [
178+ \n "nibabel"
179+ \n ]
180+ \n }
155181\n ],
156182\n [
157183\n "run_bash",
@@ -180,10 +206,6 @@ echo '{
180206\n }
181207\n ],
182208\n [
183- \n "run_bash",
184- \n "PATH=/usr/lib/fsl/5.0:$PATH"
185- \n ],
186- \n [
187209\n "env",
188210\n {
189211\n "OS": "Linux",
@@ -201,7 +223,7 @@ echo '{
201223\n "FMRI_ANALYSIS_DIR": "/opt/freesurfer/fsfast",
202224\n "PERL5LIB": "/opt/freesurfer/mni/share/perl5",
203225\n "MNI_PERL5LIB": "/opt/freesurfer/mni/share/perl5/",
204- \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",
226+ \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",
205227\n "PYTHONPATH": ""
206228\n }
207229\n ],
@@ -248,6 +270,8 @@ export LC_ALL="en_US.UTF-8"
248270export ND_ENTRYPOINT=" /neurodocker/startup.sh"
249271export FREESURFER_HOME=" /opt/freesurfer"
250272export PATH=" /opt/freesurfer/bin:$PATH "
273+ export CONDA_DIR=" /opt/miniconda-latest"
274+ export PATH=" /opt/miniconda-latest/bin:$PATH "
251275export FSLDIR=" /usr/share/fsl/5.0"
252276export FSLOUTPUTTYPE=" NIFTI_GZ"
253277export FSLMULTIFILEQUIT=" TRUE"
@@ -270,7 +294,7 @@ export MNI_DATAPATH="/opt/freesurfer/mni/data"
270294export FMRI_ANALYSIS_DIR=" /opt/freesurfer/fsfast"
271295export PERL5LIB=" /opt/freesurfer/mni/share/perl5"
272296export MNI_PERL5LIB=" /opt/freesurfer/mni/share/perl5/"
273- 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"
297+ 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"
274298export PYTHONPATH=" "
275299
276300% files
0 commit comments