-
Notifications
You must be signed in to change notification settings - Fork 1
/
Singularity
63 lines (52 loc) · 1.19 KB
/
Singularity
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
BootStrap: docker
From: ubuntu:16.04
%help
Help will go here
Special thanks goes to https://gist.github.com/lvisintini/e07abae48f099b913f9cf1c1f0fe43ba
%labels
Maintainer: Chris Cotter
Version v0.01
%setup
mkdir ${SINGULARITY_ROOTFS}/opt/code/
%files
./* /opt/code
%post
#######################################################################################
# Install dependencies
apt update
apt install -y \
wget \
build-essential \
python3 \
unzip \
glew-utils \
imagemagick \
libgtk2.0-dev \
libglew-dev \
libdevil-dev \
libboost-all-dev \
libatlas-cpp-0.6-dev \
libatlas-dev \
libatlas-base-dev \
liblapack3 \
libblas3 \
libblas-dev \
libcminpack-dev \
libgfortran3 \
libmetis-edf-dev \
libparmetis-dev \
libjpeg-turbo8 \
libgsl-dev \
freeglut3-dev
cd /opt/code
make clean
make all
mkdir /lscratch /db /work /scratch
chmod -R a+rwx /opt/code
%environment
PATH=$PATH:/opt/code/vsfm/bin/
export PATH
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/code/vsfm/bin/
export LD_LIBRARY_PATH
%runscript
/opt/code/vsfm/bin/VisualSFM "$@"