示例#1
0
    def test_singularity(self):
        specs = {
            'pkg_manager':
            'apt',
            'instructions': [
                ('base', 'docker://debian:stretch-slim'),
                ('user', 'neuro'),
                ('workdir', '/home/neuro'),
                ('miniconda', {
                    'version': '4.6.14',
                    'create_env': 'default',
                    'conda_install': ['python=3.6.5', 'traits'],
                    'pip_install': ['nipype'],
                    'activate': True,
                }),
                ('miniconda', {
                    'use_env': 'default',
                    'pip_install': ['pylsl']
                }),
            ],
        }

        bash_test_file = "test_miniconda.sh"
        utils.test_singularity_container_from_specs(
            specs=specs, bash_test_file=bash_test_file)
示例#2
0
    def test_singularity(self):
        specs = {
            "pkg_manager":
            "apt",
            "instructions": [
                ("base", "docker://debian:stretch-slim"),
                ("user", "neuro"),
                ("workdir", "/home/neuro"),
                (
                    "miniconda",
                    {
                        "version": "4.6.14",
                        "create_env": "default",
                        "conda_install": ["python=3.6.5", "traits"],
                        "pip_install": ["nipype"],
                        "activate": True,
                    },
                ),
                ("miniconda", {
                    "use_env": "default",
                    "pip_install": ["pylsl"]
                }),
            ],
        }

        bash_test_file = "test_miniconda.sh"
        utils.test_singularity_container_from_specs(
            specs=specs, bash_test_file=bash_test_file)
示例#3
0
 def test_singularity(self):
     specs = {
         'pkg_manager': 'apt',
         'instructions': [
             ('base', 'docker://ubuntu:16.04'),
             ('freesurfer', {'version': '6.0.0-min'}),
             ('user', 'neuro'),
         ]
     }
     bash_test_file = "test_freesurfer.sh"
     utils.test_singularity_container_from_specs(
         specs=specs, bash_test_file=bash_test_file)
示例#4
0
    def test_singularity(self):
        specs = {
            "pkg_manager": "apt",
            "instructions": [
                ("base", "docker://ubuntu:xenial"),
                ("petpvc", {"version": "1.2.2"}),
                ("user", "neuro"),
            ],
        }

        bash_test_file = "test_petpvc.sh"
        utils.test_singularity_container_from_specs(
            specs=specs, bash_test_file=bash_test_file
        )
示例#5
0
    def test_singularity(self):
        specs = {
            "pkg_manager": "yum",
            "instructions": [
                ("base", "docker://centos:7"),
                ("mrtrix3", {"version": "3.0_RC2"}),
                ("user", "neuro"),
            ],
        }

        bash_test_file = "test_mrtrix.sh"
        utils.test_singularity_container_from_specs(
            specs=specs, bash_test_file=bash_test_file
        )
示例#6
0
 def test_singularity(self):
     specs = {
         "pkg_manager":
         "apt",
         "instructions": [
             ("base", "docker://ubuntu:20.04"),
             ("freesurfer", {
                 "version": "7.1.1-min"
             }),
             ("user", "neuro"),
         ],
     }
     bash_test_file = "test_freesurfer.sh"
     utils.test_singularity_container_from_specs(
         specs=specs, bash_test_file=bash_test_file)
示例#7
0
 def test_singularity(self):
     specs = {
         'pkg_manager':
         'yum',
         'instructions': [
             ('base', 'docker://centos:7'),
             ('minc', {
                 'version': '1.9.15'
             }),
             ('user', 'neuro'),
         ]
     }
     bash_test_file = "test_minc.sh"
     utils.test_singularity_container_from_specs(
         specs=specs, bash_test_file=bash_test_file)
示例#8
0
    def test_singularity(self):
        specs = {
            'pkg_manager':
            'apt',
            'instructions': [
                ('base', 'docker://ubuntu:xenial'),
                ('petpvc', {
                    'version': '1.2.2'
                }),
                ('user', 'neuro'),
            ]
        }

        bash_test_file = "test_petpvc.sh"
        utils.test_singularity_container_from_specs(
            specs=specs, bash_test_file=bash_test_file)
示例#9
0
    def test_singularity(self):
        specs = {
            "pkg_manager":
            "apt",
            "instructions": [
                ("base", "docker://debian:stretch"),
                ("spm12", {
                    "version": "r7219"
                }),
                ("user", "neuro"),
            ],
        }

        bash_test_file = "test_spm12.sh"
        utils.test_singularity_container_from_specs(
            specs=specs, bash_test_file=bash_test_file)
示例#10
0
 def test_singularity(self):
     specs = {
         "pkg_manager":
         "apt",
         "instructions": [
             ("base", "docker://debian:stretch"),
             ("afni", {
                 "version": "latest",
                 "method": "binaries"
             }),
             ("user", "neuro"),
         ],
     }
     bash_test_file = "test_afni.sh"
     utils.test_singularity_container_from_specs(
         specs=specs, bash_test_file=bash_test_file)
示例#11
0
    def test_singularity(self):
        specs = {
            'pkg_manager':
            'apt',
            'instructions': [
                ('base', 'docker://debian:stretch'),
                ('spm12', {
                    'version': 'r7219'
                }),
                ('user', 'neuro'),
            ],
        }

        bash_test_file = "test_spm12.sh"
        utils.test_singularity_container_from_specs(
            specs=specs, bash_test_file=bash_test_file)
示例#12
0
    def test_singularity(self):
        specs = {
            "pkg_manager":
            "apt",
            "instructions": [
                ("base", "docker://ubuntu:16.04"),
                ("convert3d", {
                    "version": "1.0.0"
                }),
                ("user", "neuro"),
            ],
        }

        bash_test_file = "test_convert3d.sh"
        utils.test_singularity_container_from_specs(
            specs=specs, bash_test_file=bash_test_file)
示例#13
0
    def test_singularity(self):
        specs = {
            "pkg_manager":
            "yum",
            "instructions": [
                ("base", "docker://centos:7"),
                ("dcm2niix", {
                    "version": "master",
                    "method": "source"
                }),
                ("user", "neuro"),
            ],
        }

        bash_test_file = "test_dcm2niix.sh"
        utils.test_singularity_container_from_specs(
            specs=specs, bash_test_file=bash_test_file)
示例#14
0
    def test_singularity(self):
        specs = {
            'pkg_manager':
            'yum',
            'instructions': [
                ('base', 'docker://centos:7'),
                ('dcm2niix', {
                    'version': 'master',
                    'method': 'source'
                }),
                ('user', 'neuro'),
            ],
        }

        bash_test_file = "test_dcm2niix.sh"
        utils.test_singularity_container_from_specs(
            specs=specs, bash_test_file=bash_test_file)
示例#15
0
    def test_singularity(self):
        specs = {
            "pkg_manager": "apt",
            "instructions": [
                ("base", "docker://ubuntu:16.04"),
                (
                    "neurodebian",
                    {"os_codename": "stretch", "server": "usa-nh", "full": True},
                ),
                ("install", ["dcm2niix"]),
                ("user", "neuro"),
            ],
        }

        bash_test_file = "test_neurodebian.sh"
        utils.test_singularity_container_from_specs(
            specs=specs, bash_test_file=bash_test_file
        )
示例#16
0
    def test_singularity(self):
        specs = {
            'pkg_manager': 'apt',
            'instructions': [
                ('base', 'docker://ubuntu:16.04'),
                (
                    'neurodebian',
                    {
                        'os_codename': 'stretch',
                        'server': 'usa-nh',
                        'full': True,
                    }
                ),
                ('install', ['dcm2niix']),
                ('user', 'neuro'),
            ]
        }

        bash_test_file = "test_neurodebian.sh"
        utils.test_singularity_container_from_specs(
            specs=specs, bash_test_file=bash_test_file)