-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSingularity.centos
183 lines (174 loc) · 4.18 KB
/
Singularity.centos
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
# Generated by: Neurodocker version 0.7.0+0.gdc97516.dirty
# Latest release: Neurodocker version 0.7.0
# Timestamp: 2020/08/20 20:27:47 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/ReproNim/neurodocker
Bootstrap: docker
From: centos:7
%post
su - root
export ND_ENTRYPOINT="/neurodocker/startup.sh"
yum install -y -q \
bzip2 \
ca-certificates \
curl \
localedef \
unzip
yum clean packages
rm -rf /var/cache/yum/*
localedef -i en_US -f UTF-8 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 'export USER="${USER:=`whoami`}"' >> "$ND_ENTRYPOINT"
echo 'if [ -n "$1" ]; then "$@"; else /usr/bin/env bash; fi' >> "$ND_ENTRYPOINT";
fi
chmod -R 777 /neurodocker && chmod a+s /neurodocker
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 -y --all && sync
conda install -y -q --name base \
"git-annex" \
"emacs" \
"numpy" \
"pandas" \
"scipy" \
"scikit-learn" \
"matplotlib" \
"seaborn" \
"networkx" \
"ipython" \
"joblib" \
"nibabel" \
"datalad" \
"jupyter" \
"numba" \
"shap" \
"libsndfile" \
"psutil" \
"tornado==4.5.3" \
"nbformat" \
"notebook==5.7.8" \
"jupyter_contrib_nbextensions" \
"pytest" \
"nbval"
sync && conda clean -y --all && sync
bash -c "source activate base
pip install --no-cache-dir \
"nibabel" \
"ply" \
"neurosynth" \
"nilearn" \
"pliers" \
"kmapper" \
"dyneusr" \
"pyns" \
"umap-learn" \
"librosa" \
"pydra" \
"tensorflow" \
"pysoundfile" \
"resampy" \
"pysrt" \
"rapidfuzz" \
"https://github.com/nipype/pydra-ml/tarball/master""
rm -rf ~/.cache/pip/*
sync
su - root
echo '{
\n "pkg_manager": "yum",
\n "instructions": [
\n [
\n "base",
\n "centos:7"
\n ],
\n [
\n "user",
\n "root"
\n ],
\n [
\n "_header",
\n {
\n "version": "generic",
\n "method": "custom"
\n }
\n ],
\n [
\n "miniconda",
\n {
\n "use_env": "base",
\n "conda_install": [
\n "git-annex",
\n "emacs",
\n "numpy",
\n "pandas",
\n "scipy",
\n "scikit-learn",
\n "matplotlib",
\n "seaborn",
\n "networkx",
\n "ipython",
\n "joblib",
\n "nibabel",
\n "datalad",
\n "jupyter",
\n "numba",
\n "shap",
\n "libsndfile",
\n "psutil",
\n "tornado==4.5.3",
\n "nbformat",
\n "notebook==5.7.8",
\n "jupyter_contrib_nbextensions",
\n "pytest",
\n "nbval"
\n ],
\n "pip_install": [
\n "nibabel",
\n "ply",
\n "neurosynth",
\n "nilearn",
\n "pliers",
\n "kmapper",
\n "dyneusr",
\n "pyns",
\n "umap-learn",
\n "librosa",
\n "pydra",
\n "tensorflow",
\n "pysoundfile",
\n "resampy",
\n "pysrt",
\n "rapidfuzz",
\n "https://github.com/nipype/pydra-ml/tarball/master"
\n ]
\n }
\n ],
\n [
\n "user",
\n "root"
\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 CONDA_DIR="/opt/miniconda-latest"
export PATH="/opt/miniconda-latest/bin:$PATH"
%runscript
/neurodocker/startup.sh "$@"