-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile_TORTOISE
54 lines (46 loc) · 1.69 KB
/
Dockerfile_TORTOISE
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
ARG TAG_ANTS
FROM pennlinc/qsiprep-ants:${TAG_ANTS} as base
FROM base as builder
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
RUN apt update && apt full-upgrade -y && \
apt install --no-install-recommends -y software-properties-common && \
add-apt-repository -y ppa:ubuntu-toolchain-r/test && \
apt-get update && \
apt install -y --no-install-recommends \
zlib1g-dev \
wget \
git \
g++-9 gcc-9 \
libeigen3-dev fftw3 libfftw3-dev
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null \
| apt-key add - \
&& apt-add-repository -y 'deb https://apt.kitware.com/ubuntu/ bionic main' \
&& apt-get update \
&& apt-get -y install cmake=3.23.2-0kitware1ubuntu18.04.1 cmake-data=3.23.2-0kitware1ubuntu18.04.1
RUN \
mkdir /src \
&& cd /src \
&& wget https://boostorg.jfrog.io/artifactory/main/release/1.77.0/source/boost_1_77_0.tar.gz \
&& tar -xvf boost_1_77_0.tar.gz \
&& cd boost_1_77_0 \
&& rm /usr/bin/g++ \
&& ln -s /usr/bin/g++-9 /usr/bin/g++ \
&& ./bootstrap.sh --with-libraries=iostreams,filesystem,system,regex --prefix=/usr/local/boost176 \
&& ./b2 install
ARG TORTOISE_SHA=5d0c688e85fd12a974d2ecbd8b567913a0b46c4f
RUN \
cd /src \
&& git clone https://github.com/eurotomania/TORTOISEV4.git \
&& cd TORTOISEV4/TORTOISEV4 \
&& git checkout ${TORTOISE_SHA} \
&& sed -i '/BrukerBmatToTORTOISEBMTXT/d' CMakeLists.txt \
&& cmake . \
-DCMAKE_C_COMPILER=/usr/bin/gcc-9 \
-DCMAKE_CXX_COMPILER=/usr/bin/g++-9 \
-DUSECUDA=0 \
-DQSIPREP=1 \
-DITK_DIR=/tmp/ants/build/ITKv5-build \
-DISDEBUG=0 \
&& \
make
CMD ["/bin/bash"]