-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
executable file
·161 lines (142 loc) · 4.87 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
#Your version: 0.6.0 Latest version: 0.6.0
# Generated by Neurodocker version 0.6.0
# Timestamp: 2020-03-03 17:43:28 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
FROM neurodebian:bionic-non-free
ARG DEBIAN_FRONTEND="noninteractive"
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"]
COPY pd_dockerParallelized.sh /main.sh
RUN apt-get update -qq \
&& apt-get install -y -q --no-install-recommends \
afni \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update -qq \
&& apt-get install -y -q --no-install-recommends \
ants \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update -qq \
&& apt-get install -y -q --no-install-recommends \
fsl-complete \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update -qq \
&& apt-get install -y -q --no-install-recommends \
convert3d \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update -qq \
&& apt-get install -y -q --no-install-recommends \
libtiff5 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update -qq \
&& apt-get install -y -q --no-install-recommends \
awscli \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN ln -s /usr/lib/x86_64-linux-gnu/libtiff.so.5 /usr/lib/x86_64-linux-gnu/libtiff.so.3
ADD ROBEXv12.linux64.tar.gz /
ENV ANTSPATH="/usr/lib/ants"
ENV PATH="/usr/lib/ants:.:${PATH}"
ENV AWS_ACCESS_KEY_ID="AKIATU523SCUQEFJWBGW"
ENV AWS_SECRET_ACCESS_KEY="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"
#COPY batchjob_for_Docker.sh /batchjob.sh
#COPY pd_dockerParralelized.sh /Track_1_Preproc_awsN.sh
RUN echo '{ \
\n "pkg_manager": "apt", \
\n "instructions": [ \
\n [ \
\n "base", \
\n "neurodebian:bionic-non-free" \
\n ], \
\n [ \
\n "install", \
\n [ \
\n "afni" \
\n ] \
\n ], \
\n [ \
\n "install", \
\n [ \
\n "ants" \
\n ] \
\n ], \
\n [ \
\n "install", \
\n [ \
\n "fsl-complete" \
\n ] \
\n ], \
\n [ \
\n "install", \
\n [ \
\n "convert3d" \
\n ] \
\n ], \
\n [ \
\n "install", \
\n [ \
\n "libtiff5" \
\n ] \
\n ], \
\n [ \
\n "install", \
\n [ \
\n "awscli" \
\n ] \
\n ] \
\n ] \
\n}' > /neurodocker/neurodocker_specs.json
RUN apt-get update -qq && apt-get install -y tcsh xfonts-base python-qt4 \
python-matplotlib \
gsl-bin netpbm gnome-tweak-tool \
libjpeg62 xvfb xterm vim curl \
gedit evince eog \
libglu1-mesa-dev libglw1-mesa \
libxm4 build-essential \
libcurl4-openssl-dev libxml2-dev \
libssl-dev libgfortran3 \
gnome-terminal nautilus \
gnome-icon-theme-symbolic \
firefox xfonts-100dpi \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /app
WORKDIR /app
#RUN mkdir /temp && chmod 777 /temp
RUN curl -O https://afni.nimh.nih.gov/pub/dist/bin/misc/@update.afni.binaries
RUN ln -s /usr/lib/x86_64-linux-gnu/libgsl.so.23 /usr/lib/x86_64-linux-gnu/libgsl.so.19
RUN tcsh @update.afni.binaries -package linux_ubuntu_16_64 -do_extras -bindir /usr/local/AFNIbin