Skip to content

Commit 7db43ed

Browse files
committed
[skip docs][skip ds054][skip ds210][skip tests] update fmriprep-docker
1 parent 1621dd1 commit 7db43ed

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.circleci/config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ jobs:
201201
name: Run fMRIPrep tests
202202
no_output_timeout: 2h
203203
command: |
204-
docker run -u 1000 -ti --rm=false \
204+
docker run -ti --rm=false \
205205
--entrypoint="py.test" poldracklab/fmriprep:latest \
206206
/root/src/fmriprep/ --doctest-modules --ignore=docs --ignore=setup.py
207207
- run:
@@ -264,7 +264,7 @@ jobs:
264264
name: Build fMRIPrep documentation
265265
no_output_timeout: 2h
266266
command: |
267-
docker run -u 1000 -ti --rm=false -v $PWD:/_build_html \
267+
docker run -ti --rm=false -v $PWD:/_build_html \
268268
--entrypoint=sphinx-build poldracklab/fmriprep:latest \
269269
-T -E -b html -d _build/doctrees-readthedocs -W -D \
270270
language=en /root/src/fmriprep/docs/ /_build_html 2>&1 \
@@ -326,7 +326,7 @@ jobs:
326326
sudo setfacl -d -m group:$(id -gn):rwx /tmp/ds005/work && \
327327
sudo setfacl -m group:$(id -gn):rwx /tmp/ds005/work
328328
fmriprep-docker -i poldracklab/fmriprep:latest \
329-
-e FMRIPREP_DEV 1 \
329+
-e FMRIPREP_DEV 1 -u $(id -u) \
330330
--config $PWD/nipype.cfg -w /tmp/ds005/work \
331331
/tmp/data/ds005 /tmp/ds005/derivatives participant \
332332
--debug --write-graph --mem_mb 4096 \
@@ -346,7 +346,7 @@ jobs:
346346
sudo setfacl -d -m group:$(id -gn):rwx /tmp/ds005/work && \
347347
sudo setfacl -m group:$(id -gn):rwx /tmp/ds005/work
348348
fmriprep-docker -i poldracklab/fmriprep:latest \
349-
-e FMRIPREP_DEV 1 \
349+
-e FMRIPREP_DEV 1 -u $(id -u) \
350350
--config $PWD/nipype.cfg -w /tmp/ds005/work \
351351
/tmp/data/ds005 /tmp/ds005/derivatives participant \
352352
--debug --write-graph --use-syn-sdc --mem_mb 4096 \
@@ -373,7 +373,7 @@ jobs:
373373
command: |
374374
rm /tmp/data/ds005/sub-01/func/*_run-02_*
375375
fmriprep-docker -i poldracklab/fmriprep:latest \
376-
-e FMRIPREP_DEV 1 \
376+
-e FMRIPREP_DEV 1 -u $(id -u) \
377377
--config $PWD/nipype.cfg -w /tmp/ds005/work \
378378
/tmp/data/ds005 /tmp/ds005/derivatives_partial participant \
379379
--debug --write-graph --use-syn-sdc --mem_mb 4096 \

wrapper/fmriprep_docker.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,8 @@ def get_parser():
286286
type=os.path.abspath, help='Use custom nipype.cfg file')
287287
g_dev.add_argument('-e', '--env', action='append', nargs=2, metavar=('ENV_VAR', 'value'),
288288
help='Set custom environment variable within container')
289+
g_dev.add_argument('-u', '--user', action='store',
290+
help='Run container as a given user/uid')
289291

290292
return parser
291293

@@ -363,6 +365,9 @@ def main():
363365
for envvar in opts.env:
364366
command.extend(['-e', '%s=%s' % tuple(envvar)])
365367

368+
if opts.user:
369+
command.extend(['-e', opts.user])
370+
366371
if opts.fs_license_file:
367372
command.extend([
368373
'-v', '{}:/opt/freesurfer/license.txt:ro'.format(

0 commit comments

Comments
 (0)