Skip to content

Commit 4ee2e74

Browse files
authored
Merge pull request #2204 from kjamison/add_no_tty_option
ENH: Add --no-tty option to fmriprep-docker.py
2 parents 8480eab + b8e893c commit 4ee2e74

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.zenodo.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
"title": "fMRIPrep: a robust preprocessing pipeline for functional MRI",
33
"description": "<p>fMRIPrep is a robust and easy-to-use pipeline for preprocessing of diverse fMRI data. The transparent workflow dispenses of manual intervention, thereby ensuring the reproducibility of the results.</p>",
44
"contributors": [
5+
6+
{
7+
"affiliation": "Department of Radiology, Weill Cornell Medicine",
8+
"name": "Jamison, Keith W.",
9+
"orcid": "0000-0001-7139-6661",
10+
"type": "Researcher"
11+
},
512
{
613
"affiliation": "Department of Psychology, Florida International University",
714
"name": "Salo, Taylor",

wrapper/fmriprep_docker.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,8 @@ def _is_file(path, parser):
325325
g_dev.add_argument('--network', action='store',
326326
help='Run container with a different network driver '
327327
'("none" to simulate no internet connection)')
328+
g_dev.add_argument('--no-tty', action='store_true',
329+
help='Run docker without TTY flag -it')
328330

329331
return parser
330332

@@ -393,9 +395,12 @@ def main():
393395
stdout=subprocess.PIPE)
394396
docker_version = ret.stdout.decode('ascii').strip()
395397

396-
command = ['docker', 'run', '--rm', '-it', '-e',
398+
command = ['docker', 'run', '--rm', '-e',
397399
'DOCKER_VERSION_8395080871=%s' % docker_version]
398400

401+
if not opts.no_tty:
402+
command.append('-it')
403+
399404
# Patch working repositories into installed package directories
400405
if opts.patch:
401406
for pkg, repo_path in opts.patch.items():

0 commit comments

Comments
 (0)