-
Notifications
You must be signed in to change notification settings - Fork 0
/
LAMA.def
31 lines (26 loc) · 876 Bytes
/
LAMA.def
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
Bootstrap:docker
From:amd64/ubuntu:bionic # 18.04
%files
requirements.txt requirements.txt
%post
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
apt-get update && DEBIAN_FRONTEND=noninteractive \
apt-get install -yqq git r-base \
python3 python3-pip python3-setuptools python3-wheel \
libgomp1 gcc g++ wget
git clone https://github.com/mpi2/LAMA.git
cd LAMA
# checkout latest commit as of 2024/12/20
git checkout 8ca9e4ef59c67c26f9778d951f05e792536404e3
pip3 install -U pip
# install from pip-tools generated lockfile (linux 3.6.9)
pip3 install --require-hashes --no-deps -r /requirements.txt
wget https://github.com/SuperElastix/elastix/releases/download/4.9.0/elastix-4.9.0-linux.tar.bz2
mkdir elastix
tar xjf elastix-4.9.0-linux.tar.bz2 -C elastix
%environment
LC_ALL=C.UTF-8
LANG=C.UTF-8
LD_LIBRARY_PATH=/LAMA/elastix/lib:$LD_LIBRARY_PATH
PATH=/LAMA/elastix/bin:$PATH