forked from FCP-INDI/C-PAC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmsm.2.0-bionic.Dockerfile
56 lines (47 loc) · 2.08 KB
/
msm.2.0-bionic.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
# Copyright (C) 2021-2023 C-PAC Developers
# This file is part of C-PAC.
# C-PAC is free software: you can redistribute it and/or modify it under
# the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation, either version 3 of the License, or (at your
# option) any later version.
# C-PAC is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
# License for more details.
# You should have received a copy of the GNU Lesser General Public
# License along with C-PAC. If not, see <https://www.gnu.org/licenses/>.
# using neurodebian runtime as parent image
FROM neurodebian:bionic-non-free as MSM
USER root
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
libexpat1-dev \
&& apt-get autoremove -y \
&& apt-get autoclean -y
#---------------------
# Install MSM Binaries
#---------------------
COPY dev/docker_data/checksum/msm.2.0.sha384 /tmp/checksum.sha384
RUN mkdir /opt/msm \
&& curl -ksSL --retry 5 https://www.doc.ic.ac.uk/~ecr05/MSM_HOCR_v2/MSM_HOCR_v2-download.tgz -o msm.tgz \
&& sha384sum --check /tmp/checksum.sha384 \
&& tar zx -C /opt -f msm.tgz \
&& mv /opt/homes/ecr05/MSM_HOCR_v2/* /opt/msm/ \
&& rm -rf /opt/homes /opt/msm/MacOSX /opt/msm/Centos \
&& chmod +x /opt/msm/Ubuntu/* \
&& MSMBINDIR=/opt/msm/Ubuntu \
PATH=$PATH:/opt/msm/Ubuntu
ENTRYPOINT ["/bin/bash"]
# Link libraries for Singularity images
RUN ldconfig \
&& apt-get clean \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
FROM scratch
LABEL org.opencontainers.image.description "NOT INTENDED FOR USE OTHER THAN AS A STAGE IMAGE IN A MULTI-STAGE BUILD \
msm v2.0 stage \
Multimodal Surface Matching with Higher order Clique Reduction Version 2.00 (Feb 2017)"
LABEL org.opencontainers.image.source https://github.com/FCP-INDI/C-PAC
COPY --from=MSM /opt/msm/Ubuntu/msm /opt/msm/Ubuntu/msm