Ejemplo n.º 1
0
    def test_docker(self):
        specs = {
            "pkg_manager":
            "yum",
            "instructions": [
                ("base", "centos:7"),
                ("user", "neuro"),
                ("workdir", "/home/neuro"),
                (
                    "miniconda",
                    {
                        "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_docker_container_from_specs(specs=specs,
                                               bash_test_file=bash_test_file)
Ejemplo n.º 2
0
    def test_docker(self):
        specs = {
            'pkg_manager': 'yum',
            'instructions': [
                ('base', 'centos:7'),
                ('user', 'neuro'),
                (
                    'miniconda',
                    {
                        '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_docker_container_from_specs(
            specs=specs, bash_test_file=bash_test_file)
Ejemplo n.º 3
0
    def test_docker(self):
        specs = {
            'pkg_manager': 'apt',
            'instructions': [
                ('base', 'ubuntu:16.04'),
                ('freesurfer', {'version': '6.0.0-min'}),
                ('user', 'neuro'),
            ]
        }

        bash_test_file = "test_freesurfer.sh"
        utils.test_docker_container_from_specs(
            specs=specs, bash_test_file=bash_test_file)
Ejemplo n.º 4
0
    def test_docker(self):
        specs = {
            "pkg_manager": "yum",
            "instructions": [
                ("base", "centos:7"),
                ("mrtrix3", {"version": "3.0_RC3"}),
                ("user", "neuro"),
            ],
        }

        bash_test_file = "test_mrtrix.sh"
        utils.test_docker_container_from_specs(
            specs=specs, bash_test_file=bash_test_file
        )
Ejemplo n.º 5
0
    def test_docker(self):
        """Install PETPVC binaries on Ubuntu Xenial."""
        specs = {
            "pkg_manager": "apt",
            "instructions": [
                ("base", "ubuntu:xenial"),
                ("petpvc", {"version": "1.2.2"}),
                ("user", "neuro"),
            ],
        }

        bash_test_file = "test_petpvc.sh"
        utils.test_docker_container_from_specs(
            specs=specs, bash_test_file=bash_test_file
        )
Ejemplo n.º 6
0
    def test_docker(self):
        specs = {
            'pkg_manager':
            'apt',
            'instructions': [
                ('base', 'debian:stretch'),
                ('spm12', {
                    'version': 'r7219'
                }),
                ('user', 'neuro'),
            ],
        }

        bash_test_file = "test_spm12.sh"
        utils.test_docker_container_from_specs(specs=specs,
                                               bash_test_file=bash_test_file)
Ejemplo n.º 7
0
    def test_docker(self):
        specs = {
            'pkg_manager':
            'apt',
            'instructions': [
                ('base', 'ubuntu:18.04'),
                ('convert3d', {
                    'version': '1.0.0'
                }),
                ('user', 'neuro'),
            ]
        }

        bash_test_file = "test_convert3d.sh"
        utils.test_docker_container_from_specs(specs=specs,
                                               bash_test_file=bash_test_file)
Ejemplo n.º 8
0
    def test_docker(self):
        specs = {
            'pkg_manager':
            'yum',
            'instructions': [
                ('base', 'centos:7'),
                ('mrtrix3', {
                    'version': '3.0'
                }),
                ('user', 'neuro'),
            ],
        }

        bash_test_file = "test_mrtrix.sh"
        utils.test_docker_container_from_specs(specs=specs,
                                               bash_test_file=bash_test_file)
Ejemplo n.º 9
0
    def test_docker(self):
        specs = {
            "pkg_manager":
            "apt",
            "instructions": [
                ("base", "ubuntu:20.04"),
                ("freesurfer", {
                    "version": "7.1.1-min"
                }),
                ("user", "neuro"),
            ],
        }

        bash_test_file = "test_freesurfer.sh"
        utils.test_docker_container_from_specs(specs=specs,
                                               bash_test_file=bash_test_file)
Ejemplo n.º 10
0
    def test_docker(self):
        specs = {
            "pkg_manager":
            "apt",
            "instructions": [
                ("base", "ubuntu:18.04"),
                ("convert3d", {
                    "version": "1.0.0"
                }),
                ("user", "neuro"),
            ],
        }

        bash_test_file = "test_convert3d.sh"
        utils.test_docker_container_from_specs(specs=specs,
                                               bash_test_file=bash_test_file)
Ejemplo n.º 11
0
    def test_docker(self):
        specs = {
            'pkg_manager':
            'apt',
            'instructions': [
                ('base', 'ubuntu:xenial'),
                ('minc', {
                    'version': '1.9.15'
                }),
                ('user', 'neuro'),
            ]
        }

        bash_test_file = "test_minc.sh"
        utils.test_docker_container_from_specs(specs=specs,
                                               bash_test_file=bash_test_file)
Ejemplo n.º 12
0
    def test_docker(self):
        specs = {
            "pkg_manager":
            "apt",
            "instructions": [
                ("base", "ubuntu:xenial"),
                ("minc", {
                    "version": "1.9.15"
                }),
                ("user", "neuro"),
            ],
        }

        bash_test_file = "test_minc.sh"
        utils.test_docker_container_from_specs(specs=specs,
                                               bash_test_file=bash_test_file)
Ejemplo n.º 13
0
    def test_docker(self):
        specs = {
            "pkg_manager":
            "apt",
            "instructions": [
                ("base", "debian:stretch"),
                ("spm12", {
                    "version": "r7219"
                }),
                ("user", "neuro"),
            ],
        }

        bash_test_file = "test_spm12.sh"
        utils.test_docker_container_from_specs(specs=specs,
                                               bash_test_file=bash_test_file)
Ejemplo n.º 14
0
    def test_docker(self):
        specs = {
            "pkg_manager":
            "yum",
            "instructions": [
                ("base", "centos:7"),
                ("dcm2niix", {
                    "version": "master",
                    "method": "source"
                }),
                ("user", "neuro"),
            ],
        }

        bash_test_file = "test_dcm2niix.sh"
        utils.test_docker_container_from_specs(specs=specs,
                                               bash_test_file=bash_test_file)
Ejemplo n.º 15
0
    def test_docker(self):
        """Install PETPVC binaries on Ubuntu Xenial."""
        specs = {
            'pkg_manager':
            'apt',
            'instructions': [
                ('base', 'ubuntu:xenial'),
                ('petpvc', {
                    'version': '1.2.2'
                }),
                ('user', 'neuro'),
            ]
        }

        bash_test_file = "test_petpvc.sh"
        utils.test_docker_container_from_specs(specs=specs,
                                               bash_test_file=bash_test_file)
Ejemplo n.º 16
0
    def test_docker(self):
        specs = {
            "pkg_manager":
            "yum",
            "instructions": [
                ("base", "centos:7"),
                ("ants", {
                    "version": "2.2.0",
                    "method": "binaries"
                }),
                ("user", "neuro"),
            ],
        }

        bash_test_file = "test_ants.sh"
        utils.test_docker_container_from_specs(specs=specs,
                                               bash_test_file=bash_test_file)
Ejemplo n.º 17
0
    def test_docker(self):
        specs = {
            'pkg_manager':
            'yum',
            'instructions': [
                ('base', 'centos:7'),
                ('dcm2niix', {
                    'version': 'master',
                    'method': 'source'
                }),
                ('user', 'neuro'),
            ],
        }

        bash_test_file = "test_dcm2niix.sh"
        utils.test_docker_container_from_specs(specs=specs,
                                               bash_test_file=bash_test_file)
Ejemplo n.º 18
0
    def test_docker(self):
        specs = {
            'pkg_manager':
            'yum',
            'instructions': [
                ('base', 'centos:7'),
                ('ants', {
                    'version': '2.2.0',
                    'method': 'binaries'
                }),
                ('user', 'neuro'),
            ]
        }

        bash_test_file = "test_ants.sh"
        utils.test_docker_container_from_specs(specs=specs,
                                               bash_test_file=bash_test_file)
Ejemplo n.º 19
0
    def test_docker(self):
        specs = {
            "pkg_manager": "apt",
            "instructions": [
                ("base", "ubuntu:16.04"),
                (
                    "neurodebian",
                    {"os_codename": "stretch", "server": "usa-nh", "full": True},
                ),
                ("install", ["dcm2niix"]),
                ("user", "neuro"),
            ],
        }

        bash_test_file = "test_neurodebian.sh"
        utils.test_docker_container_from_specs(
            specs=specs, bash_test_file=bash_test_file
        )
Ejemplo n.º 20
0
    def test_docker(self):
        """Install latest AFNI binaries on Debian stretch."""
        specs = {
            "pkg_manager":
            "apt",
            "instructions": [
                ("base", "debian:stretch"),
                ("afni", {
                    "version": "latest",
                    "method": "binaries"
                }),
                ("user", "neuro"),
            ],
        }

        bash_test_file = "test_afni.sh"
        utils.test_docker_container_from_specs(specs=specs,
                                               bash_test_file=bash_test_file)
Ejemplo n.º 21
0
    def test_docker(self):
        specs = {
            'pkg_manager': 'apt',
            'instructions': [
                ('base', 'ubuntu:16.04'),
                (
                    'neurodebian',
                    {
                        'os_codename': 'stretch',
                        'server': 'usa-nh',
                        'full': True,
                    }
                ),
                ('install', ['dcm2niix']),
                ('user', 'neuro'),
            ]
        }

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