Newer
Older
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
Bootstrap: docker
From: ubuntu:20.04
%labels
Version v0.0.2
%help
With the python system-installatioon of this container can access all the ntrfc functionality
The container can render images.
Example cases will follow
%environment
export LIBGL_ALWAYS_INDIRECT=0
%post
CURDIR=$(pwd)
# Set timezone to Etc/UTC for tzdata. See issue #4365 for more details.
TZ=Etc/UTC && \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
echo $TZ > /etc/timezone
apt-get update -y
apt-get install -y tmux nano git
apt-get install -y --no-install-recommends \
build-essential \
gfortran \
libssl-dev \
zlib1g-dev \
libbz2-dev \
libreadline-dev \
libsqlite3-dev \
wget \
curl \
llvm \
libncurses5-dev \
xz-utils \
tk-dev \
libxml2-dev \
libxmlsec1-dev \
libffi-dev \
liblzma-dev \
liblapack-dev \
libopenblas-dev \
libhdf5-dev \
libgl1-mesa-glx xvfb \
gcc \
export PYENV_ROOT=/opt/pyenv
export PATH="/opt/pyenv/bin:$PATH"
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
pyenv install 3.9.10
echo 'export PATH=/opt/pyenv/versions/3.9.10/bin/:$PATH' >> $SINGULARITY_ENVIRONMENT
export PATH=/opt/pyenv/versions/3.9.10/bin/:$PATH
apt install python3-wheel -y
pip install git+https://gitlab.uni-hannover.de/tfd_public/tools/NTRfC.git#egg=NTRfC
pip install pandas tqdm
# clean the build
apt-get clean