forked from PennLINC/xcpEngine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DockerfileFromBase
29 lines (23 loc) · 1.24 KB
/
DockerfileFromBase
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
FROM pennbbl/baseimages:common
RUN sed -i '$iexport XCPEDIR=/xcpEngine-master' $ND_ENTRYPOINT
RUN sed -i '$iexport PATH=$PATH:$XCPEDIR' $ND_ENTRYPOINT
RUN bash -c 'cd / \
&& wget -nv https://github.com/PennBBL/xcpEngine/archive/master.zip \
&& unzip master.zip \
&& rm master.zip \
&& cd /xcpEngine-master \
&& wget -nv https://www.dropbox.com/s/92i491mrtslb56i/space.tar.xz \
&& tar xvfJm space.tar.xz \
&& rm space.tar.xz' \
&& echo 123456
RUN bash -c 'BRAINATLAS=/xcpEngine-master/atlas BRAINSPACE=/xcpEngine-master/space XCPEDIR=/xcpEngine-master FSLDIR=/opt/fsl-5.0.10 AFNI_PATH=/opt/afni-latest C3D_PATH=/opt/convert3d-nightly/bin ANTSPATH=/opt/ants-2.2.0 /xcpEngine-master/xcpReset \
&& BRAINATLAS=/xcpEngine-master/atlas BRAINSPACE=/xcpEngine-master/space XCPEDIR=/xcpEngine-master /xcpEngine-master/utils/repairMetadata'
# Compile genlouvain with octave
RUN apt-get update -qq \
&& apt-get install -y -q --no-install-recommends \
octave liboctave-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
&& cd /xcpEngine-master/thirdparty/genlouvain/MEX_SRC \
&& octave compile_mex.m
ENTRYPOINT ["/neurodocker/startup.sh", "/xcpEngine-master/xcpEngine", "\"$@\""]