bilgelm/tau_predictors_singularity_image:nipyper

$ singularity pull shub://bilgelm/tau_predictors_singularity_image:nipyper

Singularity Recipe

Docker image path: index.docker.io/kaczmarj/neurodocker:0.4.3
Cache folder set to /autofs/cog/home/murat/.singularity/docker
Creating container runtime...
# Generated by Neurodocker version 0.4.3-2-g01cdd22
# Timestamp: 2019-03-26 16:02:38 UTC
# 
# Thank you for using Neurodocker. If you discover any issues
# or ways to improve this software, please submit an issue or
# pull request on our GitHub repository:
# 
#     https://github.com/kaczmarj/neurodocker

Bootstrap: docker
From: neurodebian:stretch-non-free

%post
export ND_ENTRYPOINT="/neurodocker/startup.sh"
apt-get update -qq
apt-get install -y -q --no-install-recommends \
    apt-utils \
    bzip2 \
    ca-certificates \
    curl \
    locales \
    unzip
apt-get clean
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
dpkg-reconfigure --frontend=noninteractive locales
update-locale LANG="en_US.UTF-8"
chmod 777 /opt && chmod a+s /opt
mkdir -p /neurodocker
if [ ! -f "$ND_ENTRYPOINT" ]; then
  echo '#!/usr/bin/env bash' >> "$ND_ENTRYPOINT"
  echo 'set -e' >> "$ND_ENTRYPOINT"
  echo 'if [ -n "$1" ]; then "$@"; else /usr/bin/env bash; fi' >> "$ND_ENTRYPOINT";
fi
chmod -R 777 /neurodocker && chmod a+s /neurodocker

apt-get update -qq
apt-get install -y -q --no-install-recommends \
    make \
    gcc \
    g++ \
    graphviz \
    less \
    emacs-nox \
    default-jre \
    gnupg \
    xorg \
    libssl-dev \
    libcurl4-openssl-dev \
    libssh2-1-dev \
    texlive-latex-base \
    texlive-latex-recommended \
    texlive-latex-extra \
    texlive-fonts-recommended \
    texlive-publishers
apt-get clean
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

apt-get update -qq
apt-get install -y -q --no-install-recommends \
    bc \
    libncurses5 \
    libxext6 \
    libxmu6 \
    libxpm-dev \
    libxt6
apt-get clean
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
echo "Downloading MATLAB Compiler Runtime ..."
curl -sSL --retry 5 -o /tmp/toinstall.deb http://mirrors.kernel.org/debian/pool/main/libx/libxp/libxp6_1.0.2-2_amd64.deb
dpkg -i /tmp/toinstall.deb
rm /tmp/toinstall.deb
apt-get install -f
apt-get clean
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
curl -fsSL --retry 5 -o /tmp/MCRInstaller.bin https://dl.dropbox.com/s/zz6me0c3v4yq5fd/MCR_R2010a_glnxa64_installer.bin
chmod +x /tmp/MCRInstaller.bin
/tmp/MCRInstaller.bin -silent -P installLocation="/opt/matlabmcr-2010a"
rm -rf /tmp/*
echo "Downloading standalone SPM ..."
curl -fsSL --retry 5 -o /tmp/spm12.zip http://www.fil.ion.ucl.ac.uk/spm/download/restricted/utopia/previous/spm12_r7219_R2010a.zip
unzip -q /tmp/spm12.zip -d /tmp
mkdir -p /opt/spm12-r7219
mv /tmp/spm12/* /opt/spm12-r7219/
chmod -R 777 /opt/spm12-r7219
rm -rf /tmp/*
/opt/spm12-r7219/run_spm12.sh /opt/matlabmcr-2010a/v713 quit
sed -i '$iexport SPMMCRCMD=\"/opt/spm12-r7219/run_spm12.sh /opt/matlabmcr-2010a/v713 script\"' $ND_ENTRYPOINT

apt-get update -qq
apt-get install -y -q --no-install-recommends \
    bc \
    dc \
    file \
    libfontconfig1 \
    libfreetype6 \
    libgl1-mesa-dev \
    libglu1-mesa-dev \
    libgomp1 \
    libice6 \
    libmng1 \
    libxcursor1 \
    libxft2 \
    libxinerama1 \
    libxrandr2 \
    libxrender1 \
    libxt6 \
    wget
apt-get clean
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
echo "Downloading FSL ..."
mkdir -p /opt/fsl-5.0.11
curl -fsSL --retry 5 https://fsl.fmrib.ox.ac.uk/fsldownloads/fsl-5.0.11-centos6_64.tar.gz \
| tar -xz -C /opt/fsl-5.0.11 --strip-components 1 
sed -i '$iecho Some packages in this Docker container are non-free' $ND_ENTRYPOINT
sed -i '$iecho If you are considering commercial use of this container, please consult the relevant license:' $ND_ENTRYPOINT
sed -i '$iecho https://fsl.fmrib.ox.ac.uk/fsl/fslwiki/Licence' $ND_ENTRYPOINT
sed -i '$isource $FSLDIR/etc/fslconf/fsl.sh' $ND_ENTRYPOINT
echo "Installing FSL conda environment ..."
bash /opt/fsl-5.0.11/etc/fslconf/fslpython_install.sh -f /opt/fsl-5.0.11


export PATH="/opt/miniconda-latest/bin:$PATH"
echo "Downloading Miniconda installer ..."
conda_installer="/tmp/miniconda.sh"
curl -fsSL --retry 5 -o "$conda_installer" https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash "$conda_installer" -b -p /opt/miniconda-latest
rm -f "$conda_installer"
conda update -yq -nbase conda
conda config --system --prepend channels conda-forge
conda config --system --set auto_update_conda false
conda config --system --set show_channel_urls true
sync && conda clean -tipsy && sync
conda create -y -q --name neuro
conda install -y -q --name neuro \
    'python' \
    'pandas' \
    'matplotlib' \
    'scipy' \
    'ipython' \
    'nibabel' \
    'scikit-image' \
    'scikit-learn'
sync && conda clean -tipsy && sync
bash -c "source activate neuro
  pip install --no-cache-dir  \
      'https://github.com/nipy/nipype/tarball/master' \
      'nilearn' \
      'atlasreader' \
      'duecredit' \
      'xlrd' \
      'https://github.com/bilgelm/nanslice/tarball/annotate'"
rm -rf ~/.cache/pip/*
sync
sed -i '$isource activate neuro' $ND_ENTRYPOINT


conda install -y -q --name neuro -c r rstudio \
         r-devtools r-codetools r-roxygen2 r-testthat \
         r-png \
         r-ggplot2

conda install -y -q --name neuro -c conda-forge r-ggpubr r-kableextra

sync && conda clean -tipsy && sync

mkdir -p /opt/talairach

curl -fsSL --retry 5 -o /opt/talairach/talairach.jar http://www.talairach.org/talairach.jar

mkdir -p /opt/bisweb

curl -fsSL --retry 5 -o /opt/bisweb/colin_talairach_lookup_xy.png https://raw.githubusercontent.com/bioimagesuiteweb/bisweb/master/web/images/colin_talairach_lookup_xy.png

bash -c "source activate neuro && Rscript -e 'install.packages(\"stargazer\", repos=\"https://cran.rstudio.com\")'"

ln -s /bin/tar /bin/gtar

bash -c "source activate neuro && Rscript -e 'devtools::install_gitlab(\"bilgelm/blsacog\")'"

mkdir /input /output /code /templates

rm -rf /opt/conda/pkgs/*

rm -rf /var/lib/apt/lists/*

echo '{
\n  "pkg_manager": "apt",
\n  "instructions": [
\n    [
\n      "base",
\n      "neurodebian:stretch-non-free"
\n    ],
\n    [
\n      "_header",
\n      {
\n        "version": "generic",
\n        "method": "custom"
\n      }
\n    ],
\n    [
\n      "install",
\n      [
\n        "make",
\n        "gcc",
\n        "g++",
\n        "graphviz",
\n        "less",
\n        "emacs-nox",
\n        "default-jre",
\n        "gnupg",
\n        "xorg",
\n        "libssl-dev",
\n        "libcurl4-openssl-dev",
\n        "libssh2-1-dev",
\n        "texlive-latex-base",
\n        "texlive-latex-recommended",
\n        "texlive-latex-extra",
\n        "texlive-fonts-recommended",
\n        "texlive-publishers"
\n      ]
\n    ],
\n    [
\n      "spm12",
\n      {
\n        "version": "r7219"
\n      }
\n    ],
\n    [
\n      "fsl",
\n      {
\n        "version": "5.0.11"
\n      }
\n    ],
\n    [
\n      "miniconda",
\n      {
\n        "conda_install": [
\n          "python",
\n          "pandas",
\n          "matplotlib",
\n          "scipy",
\n          "ipython",
\n          "nibabel",
\n          "scikit-image",
\n          "scikit-learn"
\n        ],
\n        "pip_install": [
\n          "https://github.com/nipy/nipype/tarball/master",
\n          "nilearn",
\n          "atlasreader",
\n          "duecredit",
\n          "xlrd",
\n          "https://github.com/bilgelm/nanslice/tarball/annotate"
\n        ],
\n        "create_env": "neuro",
\n        "activate": true
\n      }
\n    ],
\n    [
\n      "run",
\n      "conda install -y -q --name neuro -c r rstudio \\\\n         r-devtools r-codetools r-roxygen2 r-testthat \\\\n         r-png \\\\n         r-ggplot2"
\n    ],
\n    [
\n      "run",
\n      "conda install -y -q --name neuro -c conda-forge r-ggpubr r-kableextra"
\n    ],
\n    [
\n      "run",
\n      "sync && conda clean -tipsy && sync"
\n    ],
\n    [
\n      "run",
\n      "mkdir -p /opt/talairach"
\n    ],
\n    [
\n      "run",
\n      "curl -fsSL --retry 5 -o /opt/talairach/talairach.jar http://www.talairach.org/talairach.jar"
\n    ],
\n    [
\n      "run",
\n      "mkdir -p /opt/bisweb"
\n    ],
\n    [
\n      "run",
\n      "curl -fsSL --retry 5 -o /opt/bisweb/colin_talairach_lookup_xy.png https://raw.githubusercontent.com/bioimagesuiteweb/bisweb/master/web/images/colin_talairach_lookup_xy.png"
\n    ],
\n    [
\n      "run",
\n      "bash -c \"source activate neuro && Rscript -e '"'"'install.packages(\\\"stargazer\\\", repos=\\\"https://cran.rstudio.com\\\")'"'"'\""
\n    ],
\n    [
\n      "run",
\n      "ln -s /bin/tar /bin/gtar"
\n    ],
\n    [
\n      "run",
\n      "bash -c \"source activate neuro && Rscript -e '"'"'devtools::install_gitlab(\\\"bilgelm/blsacog\\\")'"'"'\""
\n    ],
\n    [
\n      "run",
\n      "mkdir /input /output /code /templates"
\n    ],
\n    [
\n      "run",
\n      "rm -rf /opt/conda/pkgs/*"
\n    ],
\n    [
\n      "run",
\n      "rm -rf /var/lib/apt/lists/*"
\n    ]
\n  ]
\n}' > /neurodocker/neurodocker_specs.json

%environment
export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
export ND_ENTRYPOINT="/neurodocker/startup.sh"
export FORCE_SPMMCR="1"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib/x86_64-linux-gnu:/opt/matlabmcr-2010a/v713/runtime/glnxa64:/opt/matlabmcr-2010a/v713/bin/glnxa64:/opt/matlabmcr-2010a/v713/sys/os/glnxa64:/opt/matlabmcr-2010a/v713/extern/bin/glnxa64"
export MATLABCMD="/opt/matlabmcr-2010a/v713/toolbox/matlab"
export FSLDIR="/opt/fsl-5.0.11"
export PATH="/opt/fsl-5.0.11/bin:$PATH"
export CONDA_DIR="/opt/miniconda-latest"
export PATH="/opt/miniconda-latest/bin:$PATH"

%runscript
/neurodocker/startup.sh "$@"

Collection


View on Datalad

Metrics

key value
id /containers/bilgelm-tau_predictors_singularity_image-nipyper
collection name bilgelm/tau_predictors_singularity_image
branch master
tag nipyper
commit 595bd384c9bd777962430ee3e681890c061bb102
version (container hash) 3cf53751f13c3cab9ff29eb2c877bbaa
build date 2019-03-27T08:48:38.143Z
size (MB) 14572
size (bytes) 5810778143
SIF Download URL (please use pull with shub://)
Datalad URL View on Datalad
Singularity Recipe Singularity Recipe on Datalad
We cannot guarantee that all containers will still exist on GitHub.