-
Notifications
You must be signed in to change notification settings - Fork 14
/
Dockerfile
211 lines (193 loc) · 5.49 KB
/
Dockerfile
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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
# Generated by: Neurodocker version 0.7.0+0.gdc97516.dirty
# Timestamp: 2023/06/05 22:47:49 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
FROM neurodebian:bookworm
USER root
ARG DEBIAN_FRONTEND="noninteractive"
RUN apt-get update -qq \
&& apt-get install -y -q --no-install-recommends neurodebian-freeze \
&& nd_freeze 20230604 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
ENV LANG="en_US.UTF-8" \
LC_ALL="en_US.UTF-8" \
ND_ENTRYPOINT="/neurodocker/startup.sh"
RUN 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/* \
&& 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 '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
ENTRYPOINT ["/neurodocker/startup.sh"]
RUN apt-get update -qq \
&& apt-get install -y -q --no-install-recommends \
vim \
wget \
strace \
time \
ncdu \
gnupg \
curl \
procps \
datalad \
pigz \
less \
tree \
git-annex \
python3-nibabel \
python3-nipype \
virtualenv \
shellcheck \
python3-dcmstack \
python3-funcsigs \
python3-etelemetry \
python3-pytest \
dcmtk \
python3-pip \
python3-wheel \
python3-setuptools \
python3-datalad \
python3-filelock \
dcm2niix \
python3-pytest \
python3-nose \
python3-venv \
heudiconv=0.13.1-1~nd120+1 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN :
RUN apt-get update && apt-get -y dist-upgrade
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get update -qq \
&& apt-get install -y -q --no-install-recommends \
nodejs \
npm \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN npm install -g [email protected]
RUN mkdir /afs /inbox
COPY ["bin/reproin", "/usr/local/bin/reproin"]
RUN chmod a+rx /usr/local/bin/reproin
RUN test "$(getent passwd reproin)" || useradd --no-user-group --create-home --shell /bin/bash reproin
USER reproin
ENTRYPOINT ["/usr/local/bin/reproin"]
RUN echo '{ \
\n "pkg_manager": "apt", \
\n "instructions": [ \
\n [ \
\n "base", \
\n "neurodebian:bookworm" \
\n ], \
\n [ \
\n "ndfreeze", \
\n { \
\n "date": "20230604" \
\n } \
\n ], \
\n [ \
\n "install", \
\n [ \
\n "vim", \
\n "wget", \
\n "strace", \
\n "time", \
\n "ncdu", \
\n "gnupg", \
\n "curl", \
\n "procps", \
\n "datalad", \
\n "pigz", \
\n "less", \
\n "tree", \
\n "git-annex", \
\n "python3-nibabel", \
\n "python3-nipype", \
\n "virtualenv", \
\n "shellcheck", \
\n "python3-dcmstack", \
\n "python3-funcsigs", \
\n "python3-etelemetry", \
\n "python3-pytest", \
\n "dcmtk", \
\n "python3-pip", \
\n "python3-wheel", \
\n "python3-setuptools", \
\n "python3-datalad", \
\n "python3-filelock", \
\n "dcm2niix", \
\n "python3-pytest", \
\n "python3-nose", \
\n "python3-venv", \
\n "heudiconv=0.13.1-1~nd120+1" \
\n ] \
\n ], \
\n [ \
\n "run", \
\n ":" \
\n ], \
\n [ \
\n "run", \
\n "apt-get update && apt-get -y dist-upgrade" \
\n ], \
\n [ \
\n "run", \
\n "curl -sL https://deb.nodesource.com/setup_16.x | bash - " \
\n ], \
\n [ \
\n "install", \
\n [ \
\n "nodejs", \
\n "npm" \
\n ] \
\n ], \
\n [ \
\n "run", \
\n "npm install -g [email protected]" \
\n ], \
\n [ \
\n "run", \
\n "mkdir /afs /inbox" \
\n ], \
\n [ \
\n "copy", \
\n [ \
\n "bin/reproin", \
\n "/usr/local/bin/reproin" \
\n ] \
\n ], \
\n [ \
\n "run", \
\n "chmod a+rx /usr/local/bin/reproin" \
\n ], \
\n [ \
\n "user", \
\n "reproin" \
\n ], \
\n [ \
\n "entrypoint", \
\n "/usr/local/bin/reproin" \
\n ] \
\n ] \
\n}' > /neurodocker/neurodocker_specs.json