This repository has been archived by the owner on Aug 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsingularity.build
89 lines (75 loc) · 2.03 KB
/
singularity.build
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
Bootstrap: docker
From: ubuntu:17.10
%help
Singularity image based on ubuntu 17.10 with libraries for running CCB-ID
Maintained by Christopher Anderson ([email protected]) @christobal54
%labels
Maintainer Christopher Anderson
Website https://github.com/stanford-ccb/ccb-id
Version 0.1.0
%setup
# set the default directory for storing configuration files
mkdir $SINGULARITY_ROOTFS/ccb
%files
requirements.txt
%environment
# make sure you have a $CCBID environment variable set on your local machine
# that points to the ccb-id base directory
# here we set the path, python path, and ipython path to access the ccb-id install
export PYTHONPATH=$CCBID:$PYTHONPATH
export PATH=$CCBID/bin:$PATH
export IPYTHONDIR=$CCBID/ipython
%post
# set the default directory for storing configuration files
#export CCB=/ccb
#cd $CCB
# install packages via apt
apt-get update -y
apt-get install -y \
python-gdal \
gdal-bin \
libgdal20 \
ipython \
python-setuptools \
python-dev \
python-pip \
python-tk \
build-essential \
libfontconfig1 \
mesa-common-dev \
python-numpy \
python-scipy \
python-pandas \
python-geopandas \
python-qt4 \
python-sip \
python-pyside \
python-h5py \
gcc \
gfortran \
qt5.1 \
git \
vim
# clean up the apt files
apt-get clean
rm -rf /var/lib/apt/lists/*
# install pip packages
pip install matplotlib \
qtpy \
Pyro4 \
psutil \
rtree \
qtawesome \
qtpy \
six \
taskgraph \
Pyro4
# install ccb-id from git repo
#git clone https://github.com/stanford-ccb/ccb-id.git
# install the ccb-id dependencies
#pip install -r ccb-id/requirements.txt
pip install -r requirements.txt
# that's all, folks!
%runscript
echo "--- CCB-ID ---"
exec "$@"